mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Use GameController::ClearSim in sim.clearSim
Unlike Simulation::clear_sim, this also resets the save info in GameModel, i.e. is equivalent to pressing the 'Erase everything' button.
This commit is contained in:
@@ -1669,8 +1669,7 @@ int LuaScriptInterface::simulation_decoColor(lua_State * l)
|
||||
|
||||
int LuaScriptInterface::simulation_clearSim(lua_State * l)
|
||||
{
|
||||
luacon_sim->clear_sim();
|
||||
Client::Ref().ClearAuthorInfo();
|
||||
luacon_controller->ClearSim();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user