resetting sparks resets any sparks in WIFI too

This commit is contained in:
jacob1 2015-09-01 01:27:03 -04:00
parent 476c2cce06
commit fbbc755283
2 changed files with 2 additions and 8 deletions

View File

@ -821,6 +821,7 @@ void GameController::ResetSpark()
else
sim->kill_part(i);
}
memset(sim->wireless, 0, sizeof(sim->wireless));
}
void GameController::SwitchGravity()

View File

@ -560,14 +560,7 @@ AnyType TPTScriptInterface::tptS_reset(std::deque<std::string> * words)
}
else if (resetStr == "sparks")
{
for (int i = 0; i < NPART; i++)
{
if (sim->parts[i].type == PT_SPRK)
{
sim->parts[i].type = sim->parts[i].ctype;
sim->parts[i].life = 4;
}
}
c->ResetSpark();
}
else if (resetStr == "temp")
{