summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-02 22:10:05 +0000
committerrubidium <rubidium@openttd.org>2010-08-02 22:10:05 +0000
commit49cee72fa4af41abd2d4a3c19928fcce36b7c10d (patch)
tree1fa3703d3d95293570a1da622e487f1bc9e0140d /src/company_gui.cpp
parentf2d71c1196f0fcd19b54ba9c02b59369b1853508 (diff)
downloadopenttd-49cee72fa4af41abd2d4a3c19928fcce36b7c10d.tar.xz
(svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 745bef62b..dc8ecfc22 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -30,6 +30,7 @@
#include "sprite.h"
#include "company_base.h"
#include "core/geometry_func.hpp"
+#include "unmovable.h"
#include "table/strings.h"
@@ -2012,7 +2013,7 @@ struct CompanyWindow : Window
virtual void OnPlaceObject(Point pt, TileIndex tile)
{
- if (DoCommandP(tile, 0, 0, CMD_BUILD_COMPANY_HQ | CMD_MSG(STR_ERROR_CAN_T_BUILD_COMPANY_HEADQUARTERS))) {
+ if (DoCommandP(tile, UNMOVABLE_HQ, 0, CMD_BUILD_UNMOVABLE | CMD_MSG(STR_ERROR_CAN_T_BUILD_COMPANY_HEADQUARTERS))) {
ResetObjectToPlace();
this->RaiseButtons();
}