Changeset - r8404:573c1d3ad42e
[Not reviewed]
master
0 1 0
frosch - 17 years ago 2008-01-24 14:57:43
frosch@openttd.org
(svn r11974) -Fix [FS#1684]: Shore and sea tiles under bridges were converted to canals in old savegames.
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -1710,7 +1710,15 @@ bool AfterLoadGame()
 
						if (GB(_m[t].m5, 3, 2) == 0) {
 
							MakeClear(t, CLEAR_GRASS, 3);
 
						} else {
 
							MakeCanal(t, (GetTileOwner(t) == OWNER_WATER) ? OWNER_NONE : GetTileOwner(t), Random());
 
							if (GetTileSlope(t, NULL) != SLOPE_FLAT) {
 
								MakeShore(t);
 
							} else {
 
								if (GetTileOwner(t) == OWNER_WATER) {
 
									MakeWater(t);
 
								} else {
 
									MakeCanal(t, GetTileOwner(t), Random());
 
								}
 
							}
 
						}
 
					}
 
					SetBridgeMiddle(t, axis);
0 comments (0 inline, 0 general)