Permalink
Browse files

fix tpt.reset_spark to also reset WIFI

  • Loading branch information...
jacob1 committed Sep 11, 2015
1 parent f827e12 commit a629979d8bfd0b5bf90b814079bfb36c7470c222
Showing with 1 addition and 14 deletions.
  1. +1 −14 src/lua/LegacyLuaAPI.cpp
@@ -1037,20 +1037,7 @@ int luatpt_reset_velocity(lua_State* l)

int luatpt_reset_spark(lua_State* l)
{
int i;
for (i=0; i<NPART; i++)
{
if (luacon_sim->parts[i].type == PT_SPRK)
{
if (luacon_sim->parts[i].ctype > 0 && luacon_sim->parts[i].ctype < PT_NUM && luacon_sim->elements[luacon_sim->parts[i].ctype].Enabled)
{
luacon_sim->parts[i].type = luacon_sim->parts[i].ctype;
luacon_sim->parts[i].life = luacon_sim->parts[i].ctype = 0;
}
else
luacon_sim->kill_part(i);
}
}
luacon_controller->ResetSpark();
return 0;
}

0 comments on commit a629979

Please sign in to comment.