branch | 0.5 |
changeset 5443 | 4ef33c0ddab7 |
parent 5442 | 427c81cfd6f6 |
child 5449 | b5b26de8e06a |
--- a/openttd.c Sat Feb 24 01:02:15 2007 +0000 +++ b/openttd.c Sat Feb 24 01:14:54 2007 +0000 @@ -1585,6 +1585,15 @@ SettingsDisableElrail(_patches.disable_elrails); } + /* Buoys do now store the owner of the previous water tile, which can never + * be OWNER_NONE. So replace OWNER_NONE with OWNER_WATER. */ + if (CheckSavegameVersion(46)) { + Station *st; + FOR_ALL_STATIONS(st) { + if (IsBuoy(st) && IsTileOwner(st->xy, OWNER_NONE)) SetTileOwner(st->xy, OWNER_WATER); + } + } + return true; }