From cde65455acbc10a3f64bb9d43c03b37cdf9b1c55 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 18 Jul 2008 16:40:29 +0000 Subject: (svn r13731) -Codechange: make a pool of the array of players. --- src/autoslope.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/autoslope.h') 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))); } -- cgit v1.2.3-70-g09d2