fix tpt.reset_spark to also reset WIFI

This commit is contained in:
jacob1 2015-09-10 23:59:13 -04:00
parent f827e125cb
commit a629979d8b

View File

@ -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;
}