(svn r4073) Add functions to make and test for (most) unmovable tiles

This commit is contained in:
tron
2006-03-23 20:47:56 +00:00
parent 6d4e7d565d
commit 541703a2f6
5 changed files with 95 additions and 37 deletions

View File

@@ -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;
}