Skip to content

Commit

Permalink
resetting sparks resets any sparks in WIFI too
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 1, 2015
1 parent 476c2cc commit fbbc755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/gui/game/GameController.cpp
Expand Up @@ -821,6 +821,7 @@ void GameController::ResetSpark()
else
sim->kill_part(i);
}
memset(sim->wireless, 0, sizeof(sim->wireless));
}

void GameController::SwitchGravity()
Expand Down
9 changes: 1 addition & 8 deletions src/lua/TPTScriptInterface.cpp
Expand Up @@ -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")
{
Expand Down

0 comments on commit fbbc755

Please sign in to comment.