Permalink
Browse files

move more stuff around, remove loop through particles to decrease lif…

…e and put it in the pmap one instead (like in my mod)
  • Loading branch information...
jacob1 committed Jan 11, 2015
1 parent 577ae34 commit 3a524535618253b779af9b482b2c06446988a370
Showing with 212 additions and 197 deletions.
  1. +1 −1 src/lua/LuaScriptInterface.cpp
  2. +209 −196 src/simulation/Simulation.cpp
  3. +2 −0 src/simulation/Simulation.h
@@ -1786,7 +1786,7 @@ int LuaScriptInterface::simulation_update_particles(lua_State * l)
int start = luaL_optint(l, 1, 0);
int end = luaL_optint(l, 2, luacon_sim->parts_lastActiveIndex);
if (start < 0 || end >= NPART || start > end)
return luaL_error(l, "Invalid start / end positions: (%i, %i)", start, end);
return luaL_error(l, "Invalid start / end positions: (%d, %d)", start, end);
luacon_sim->UpdateParticles(start, end);
return 0;
}
Oops, something went wrong.

0 comments on commit 3a52453

Please sign in to comment.