equal
deleted
inserted
replaced
38 #include "sound.h" |
38 #include "sound.h" |
39 #include "economy.h" |
39 #include "economy.h" |
40 #include "fileio.h" |
40 #include "fileio.h" |
41 #include "hal.h" |
41 #include "hal.h" |
42 #include "airport.h" |
42 #include "airport.h" |
|
43 #include "aircraft.h" |
43 #include "console.h" |
44 #include "console.h" |
44 #include "screenshot.h" |
45 #include "screenshot.h" |
45 #include "network/network.h" |
46 #include "network/network.h" |
46 #include "signs.h" |
47 #include "signs.h" |
47 #include "depot.h" |
48 #include "depot.h" |
1816 FOR_ALL_STATIONS(st) { |
1817 FOR_ALL_STATIONS(st) { |
1817 if (st->IsBuoy() && IsTileOwner(st->xy, OWNER_NONE)) SetTileOwner(st->xy, OWNER_WATER); |
1818 if (st->IsBuoy() && IsTileOwner(st->xy, OWNER_NONE)) SetTileOwner(st->xy, OWNER_WATER); |
1818 } |
1819 } |
1819 } |
1820 } |
1820 |
1821 |
|
1822 if (CheckSavegameVersion(50)) { |
|
1823 Vehicle *v; |
|
1824 /* Aircraft units changed from 8 mph to 1 km/h */ |
|
1825 FOR_ALL_VEHICLES(v) { |
|
1826 if (v->type == VEH_Aircraft && v->subtype <= AIR_AIRCRAFT) { |
|
1827 const AircraftVehicleInfo *avi = AircraftVehInfo(v->engine_type); |
|
1828 v->cur_speed *= 129; |
|
1829 v->cur_speed /= 10; |
|
1830 v->max_speed = avi->max_speed; |
|
1831 v->acceleration = avi->acceleration; |
|
1832 } |
|
1833 } |
|
1834 } |
|
1835 |
1821 if (CheckSavegameVersion(49)) FOR_ALL_PLAYERS(p) p->face = ConvertFromOldPlayerFace(p->face); |
1836 if (CheckSavegameVersion(49)) FOR_ALL_PLAYERS(p) p->face = ConvertFromOldPlayerFace(p->face); |
1822 |
1837 |
1823 return true; |
1838 return true; |
1824 } |
1839 } |
1825 |
1840 |