Commits

Laurens Rodriguez committed 4814726

Fixed index one bug when using references in killaL_ref

  • Participants
  • Parent commits f61c8d8
  • Branches default

Comments (0)

Files changed (2)

bin/windows/game/conf.kia

     t.author = "Laurens R. O."  // The author of the game (string)
     t.identity = "ex_demos"     // The name of the save directory (string)
     t.version = "0.8.0"         // The L0VE version this game was made for (number)
-    t.main = "mandelbrot"       // The main script to load (without kia extension)
-    t.console = false           // Attach a console (boolean, Windows only)
+    t.main = "physics"          // The main script to load (without kia extension)
+    t.console = true            // Attach a console (boolean, Windows only)
     t.screen.width = 640        // The window width (number)
     t.screen.height = 480       // The window height (number)
     t.screen.fullscreen = false // Enable fullscreen (boolean)
     t.modules.timer = true      // Enable the timer module (boolean)
     t.modules.mouse = false     // Enable the mouse module (boolean)
     t.modules.sound = true      // Enable the sound module (boolean)
-    t.modules.physics = false   // Enable the physics module (boolean)
+    t.modules.physics = true    // Enable the physics module (boolean)
 }

src/libraries/killa/kauxlib.c

     killa_rawseti(L, t, freelist);  /* (t[freelist] = t[ref]) */
   }
   else  /* no free elements */
-    ref = (int)killa_rawlen(L, t) + 1;  /* get a new reference */
+    ref = (int)killa_rawlen(L, t) + KILLA_BASE;  /* get a new reference */
   killa_rawseti(L, t, ref);
   return ref;
 }