summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-23 20:47:56 +0000
committertron <tron@openttd.org>2006-03-23 20:47:56 +0000
commit541703a2f6687fcb7d9f4d1453f84d80b67cd58c (patch)
tree5fe90832d23bf4493a9bb128090d8109bf163cc1 /town_cmd.c
parent6d4e7d565da547888f0cf5a0fdff038924b3a9a4 (diff)
downloadopenttd-541703a2f6687fcb7d9f4d1453f84d80b67cd58c.tar.xz
(svn r4073) Add functions to make and test for (most) unmovable tiles
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/town_cmd.c b/town_cmd.c
index c9eede7c8..34af05731 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -21,6 +21,7 @@
#include "saveload.h"
#include "economy.h"
#include "gui.h"
+#include "unmovable_map.h"
#include "variables.h"
enum {
@@ -1577,9 +1578,8 @@ static bool DoBuildStatueOfCompany(TileIndex tile)
if (CmdFailed(r)) return false;
- ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAPOWNER_CURRENT | MP_MAP5,
- 2 /* map5 */
- );
+ MakeStatue(tile, _current_player);
+ MarkTileDirtyByTile(tile);
return true;
}