(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.

This commit is contained in:
rubidium
2007-09-26 14:32:06 +00:00
parent 7455676941
commit a85e18c922
2 changed files with 17 additions and 3 deletions

View File

@@ -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 */