Changeset - r17843:827535b88816
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-07-09 18:10:48
frosch@openttd.org
(svn r22644) -Codechange: Use IsShipDepotTile() instead of single water- and depottests. (adf88)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -1511,13 +1511,13 @@ bool AfterLoadGame()
 
	 * the correct values when it gets destroyed. This prevents that
 
	 * someone can remove canals owned by somebody else and it prevents
 
	 * making floods using the removal of ship depots.
 
	 */
 
	if (IsSavegameVersionBefore(83)) {
 
		for (TileIndex t = 0; t < map_size; t++) {
 
			if (IsTileType(t, MP_WATER) && IsShipDepot(t)) {
 
			if (IsShipDepotTile(t)) {
 
				_m[t].m4 = (TileHeight(t) == 0) ? OWNER_WATER : OWNER_NONE;
 
			}
 
		}
 
	}
 

	
 
	if (IsSavegameVersionBefore(74)) {
0 comments (0 inline, 0 general)