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
|
else
|
||||||
sim->kill_part(i);
|
sim->kill_part(i);
|
||||||
}
|
}
|
||||||
|
memset(sim->wireless, 0, sizeof(sim->wireless));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameController::SwitchGravity()
|
void GameController::SwitchGravity()
|
||||||
|
@ -560,14 +560,7 @@ AnyType TPTScriptInterface::tptS_reset(std::deque<std::string> * words)
|
|||||||
}
|
}
|
||||||
else if (resetStr == "sparks")
|
else if (resetStr == "sparks")
|
||||||
{
|
{
|
||||||
for (int i = 0; i < NPART; i++)
|
c->ResetSpark();
|
||||||
{
|
|
||||||
if (sim->parts[i].type == PT_SPRK)
|
|
||||||
{
|
|
||||||
sim->parts[i].type = sim->parts[i].ctype;
|
|
||||||
sim->parts[i].life = 4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (resetStr == "temp")
|
else if (resetStr == "temp")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user