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:
parent
6bd1289bdd
commit
cb52495472
@ -1669,8 +1669,7 @@ int LuaScriptInterface::simulation_decoColor(lua_State * l)
|
|||||||
|
|
||||||
int LuaScriptInterface::simulation_clearSim(lua_State * l)
|
int LuaScriptInterface::simulation_clearSim(lua_State * l)
|
||||||
{
|
{
|
||||||
luacon_sim->clear_sim();
|
luacon_controller->ClearSim();
|
||||||
Client::Ref().ClearAuthorInfo();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user