# HG changeset patch # User Charles Pigott # Date 2021-02-13 17:26:55 # Node ID 166b026340d2c6331468d17f128db4534fde7223 # Parent 8ef8971e1e4110233eeecddf7964055da686cd39 Change: Use a more specific error message when attempting to bulldoze your own HQ diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -497,7 +497,10 @@ static CommandCost ClearTile_Object(Tile return_cmd_error(STR_ERROR_OWNED_BY); } else if ((spec->flags & OBJECT_FLAG_CANNOT_REMOVE) != 0 && (spec->flags & OBJECT_FLAG_AUTOREMOVE) == 0) { /* In the game editor or with cheats we can remove, otherwise we can't. */ - if (!_cheats.magic_bulldozer.value) return CMD_ERROR; + if (!_cheats.magic_bulldozer.value) { + if (type == OBJECT_HQ) return_cmd_error(STR_ERROR_COMPANY_HEADQUARTERS_IN); + return CMD_ERROR; + } /* Removing with the cheat costs more in TTDPatch / the specs. */ cost.MultiplyCost(25);