summaryrefslogtreecommitdiff
path: root/src/autoslope.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-18 16:40:29 +0000
committerrubidium <rubidium@openttd.org>2008-07-18 16:40:29 +0000
commit3a799389ebf915cc59b6e85346d837621ebe771a (patch)
tree82319a3d42401c6d6fa4944e99863807f05c6f5f /src/autoslope.h
parent891bec7e23a0a077df93b8fd1fe156ef059df8b4 (diff)
downloadopenttd-3a799389ebf915cc59b6e85346d837621ebe771a.tar.xz
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/autoslope.h')
-rw-r--r--src/autoslope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoslope.h b/src/autoslope.h
index 025ed1347..9b5766c09 100644
--- a/src/autoslope.h
+++ b/src/autoslope.h
@@ -39,7 +39,7 @@ static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, uint z_new, Slo
static inline bool AutoslopeEnabled()
{
return (_settings_game.construction.autoslope &&
- ((IsValidPlayerID(_current_player) && !_is_old_ai_player) ||
+ ((_current_player < MAX_PLAYERS && !_is_old_ai_player) ||
(_current_player == OWNER_NONE && _game_mode == GM_EDITOR)));
}