(svn r4553) int and magic numbers -> Slope and DiagDirection

This commit is contained in:
tron
2006-04-23 19:08:33 +00:00
parent 72d3fabb58
commit 8ef2c13c65
5 changed files with 38 additions and 40 deletions

View File

@@ -838,8 +838,8 @@ static void AiNew_State_FindDepot(Player *p)
if (IsTileType(tile, MP_TUNNELBRIDGE)) continue;
// Is the terrain clear?
if (IsTileType(t, MP_CLEAR) || IsTileType(t, MP_TREES)) {
// If the current tile is on a slope (tileh != 0) then we do not allow this
if (GetTileSlope(tile, NULL) != 0) continue;
// If the current tile is on a slope then we do not allow this
if (GetTileSlope(tile, NULL) != SLOPE_FLAT) continue;
// Check if everything went okay..
r = AiNew_Build_Depot(p, t, ReverseDiagDir(j), 0);
if (CmdFailed(r)) continue;