Skip to content

Commit

Permalink
fix tpt.reset_spark to also reset WIFI
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 11, 2015
1 parent f827e12 commit a629979
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/lua/LegacyLuaAPI.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit a629979

Please sign in to comment.