resetting sparks resets any sparks in WIFI too
This commit is contained in:
parent
476c2cce06
commit
fbbc755283
@ -821,6 +821,7 @@ void GameController::ResetSpark()
|
||||
else
|
||||
sim->kill_part(i);
|
||||
}
|
||||
memset(sim->wireless, 0, sizeof(sim->wireless));
|
||||
}
|
||||
|
||||
void GameController::SwitchGravity()
|
||||
|
@ -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")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user