Permalink
Browse files

resetting sparks resets any sparks in WIFI too

  • Loading branch information...
jacob1 committed Sep 1, 2015
1 parent 476c2cc commit fbbc7552831b145ed9c977d58ff7e8002bda8786
Showing with 2 additions and 8 deletions.
  1. +1 −0 src/gui/game/GameController.cpp
  2. +1 −8 src/lua/TPTScriptInterface.cpp
@@ -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")
{

0 comments on commit fbbc755

Please sign in to comment.