guardat dels canvis en la habitacio
This commit is contained in:
@@ -630,7 +630,7 @@ static auto cmd_scene(const std::vector<std::string>& args) -> std::string {
|
||||
return "Unknown scene: " + args[0];
|
||||
}
|
||||
|
||||
// EDIT [ON|OFF|SAVE]
|
||||
// EDIT [ON|OFF|REVERT]
|
||||
static auto cmd_edit(const std::vector<std::string>& args) -> std::string {
|
||||
if (args.empty() || args[0] == "ON") {
|
||||
if (GameControl::enter_editor) {
|
||||
@@ -646,13 +646,13 @@ static auto cmd_edit(const std::vector<std::string>& args) -> std::string {
|
||||
}
|
||||
return "Not in game";
|
||||
}
|
||||
if (args[0] == "SAVE") {
|
||||
if (GameControl::save_editor) {
|
||||
return GameControl::save_editor();
|
||||
if (args[0] == "REVERT") {
|
||||
if (GameControl::revert_editor) {
|
||||
return GameControl::revert_editor();
|
||||
}
|
||||
return "Editor not active";
|
||||
}
|
||||
return "usage: edit [on|off|save]";
|
||||
return "usage: edit [on|off|revert]";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user