diff options
author | rubidium <rubidium@openttd.org> | 2010-08-08 10:59:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-08 10:59:30 +0000 |
commit | 3da3d131c6a1e17db81d08c161b944c2c00533da (patch) | |
tree | 1793f2ebfc20fc2be1e028ad2252f8140f45334a /src/company_gui.cpp | |
parent | abc14d8fbfb9ca313d6a5ab50fc726a2507de6a4 (diff) | |
download | openttd-3da3d131c6a1e17db81d08c161b944c2c00533da.tar.xz |
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 441572709..e8f40dc00 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -30,7 +30,7 @@ #include "sprite.h" #include "company_base.h" #include "core/geometry_func.hpp" -#include "unmovable.h" +#include "object.h" #include "table/strings.h" @@ -2004,7 +2004,7 @@ struct CompanyWindow : Window virtual void OnPlaceObject(Point pt, TileIndex tile) { - if (DoCommandP(tile, UNMOVABLE_HQ, 0, CMD_BUILD_UNMOVABLE | CMD_MSG(STR_ERROR_CAN_T_BUILD_COMPANY_HEADQUARTERS))) { + if (DoCommandP(tile, OBJECT_HQ, 0, CMD_BUILD_OBJECT | CMD_MSG(STR_ERROR_CAN_T_BUILD_COMPANY_HEADQUARTERS))) { ResetObjectToPlace(); this->RaiseButtons(); } |