From e582e6364cf62ba89ac137fe26e825b9419b383d Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 26 Sep 2007 14:32:06 +0000 Subject: (svn r11171) -Fix [FS#1257]: disable autoslope for automatically changed stuff (like towns and industries) and enable it in the scenario editor. Patch by frosch. --- src/autoslope.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/autoslope.h') diff --git a/src/autoslope.h b/src/autoslope.h index c6f40eb52..652bce906 100644 --- a/src/autoslope.h +++ b/src/autoslope.h @@ -36,7 +36,9 @@ static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, uint z_new, Slo */ static inline bool AutoslopeEnabled() { - return (_patches.autoslope && IsValidPlayer(_current_player) && !_is_old_ai_player); + return (_patches.autoslope && + ((IsValidPlayer(_current_player) && !_is_old_ai_player) || + (_current_player == OWNER_NONE && _game_mode == GM_EDITOR))); } #endif /* AUTOSLOPE_H */ -- cgit v1.2.3-70-g09d2