(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.

This commit is contained in:
rubidium
2010-08-08 10:59:30 +00:00
parent 67be093e57
commit 1f2276b785
101 changed files with 789 additions and 763 deletions

View File

@@ -16,7 +16,7 @@
#include "stdafx.h"
#include "rail_map.h"
#include "landscape.h"
#include "unmovable.h"
#include "object.h"
#include "viewport_func.h"
#include "cmd_helper.h"
#include "command_func.h"
@@ -395,8 +395,8 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
if (z_start < GetBridgeHeight(tile)) goto not_valid_below;
break;
case MP_UNMOVABLE: {
const UnmovableSpec *spec = UnmovableSpec::GetByTile(tile);
case MP_OBJECT: {
const ObjectSpec *spec = ObjectSpec::GetByTile(tile);
if ((spec->flags & OBJECT_FLAG_ALLOW_UNDER_BRIDGE) == 0) goto not_valid_below;
break;
}