mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
Codechange: use MakeSea/AllocateMap in the oldloader instead of MemSetT
This commit is contained in:
parent
3b0b572ebf
commit
953445a5ac
@ -47,9 +47,7 @@ void FixOldMapArray()
|
|||||||
{
|
{
|
||||||
/* TTO/TTD/TTDP savegames could have buoys at tile 0
|
/* TTO/TTD/TTDP savegames could have buoys at tile 0
|
||||||
* (without assigned station struct) */
|
* (without assigned station struct) */
|
||||||
MemSetT(&_m[0], 0);
|
MakeSea(0);
|
||||||
SetTileType(0, MP_WATER);
|
|
||||||
SetTileOwner(0, OWNER_WATER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void FixTTDMapArray()
|
static void FixTTDMapArray()
|
||||||
@ -1467,8 +1465,7 @@ static bool LoadOldGameDifficulty(LoadgameState *ls, int num)
|
|||||||
static bool LoadOldMapPart1(LoadgameState *ls, int num)
|
static bool LoadOldMapPart1(LoadgameState *ls, int num)
|
||||||
{
|
{
|
||||||
if (_savegame_type == SGT_TTO) {
|
if (_savegame_type == SGT_TTO) {
|
||||||
MemSetT(_m, 0, OLD_MAP_SIZE);
|
AllocateMap(OLD_MAP_SIZE, OLD_MAP_SIZE);
|
||||||
MemSetT(_me, 0, OLD_MAP_SIZE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint i = 0; i < OLD_MAP_SIZE; i++) {
|
for (uint i = 0; i < OLD_MAP_SIZE; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user