(svn r13066) -Fix [FS#2005]: loading of TTDP savegames with rivers in them.

This commit is contained in:
rubidium
2008-05-13 12:15:52 +00:00
parent d0c79e1164
commit e6f96da537
2 changed files with 8 additions and 4 deletions

View File

@@ -1664,7 +1664,13 @@ static bool LoadOldMain(LoadgameState *ls)
* clear it for ourselves and let OTTD's rebuild PBS itself */
_m[i].m4 &= 0xF; /* Only keep the lower four bits; upper four is PBS */
break;
default: break;
case MP_WATER:
if (GetWaterClass(i) == 3) MakeRiver(i, Random());
break;
default:
break;
}
}