Bump savegame for object ground types
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
#include "../company_func.h"
|
||||
#include "../infrastructure_func.h"
|
||||
#include "../event_logs.h"
|
||||
#include "../newgrf_object.h"
|
||||
|
||||
|
||||
#include "saveload_internal.h"
|
||||
@@ -3979,6 +3980,17 @@ bool AfterLoadGame()
|
||||
}
|
||||
}
|
||||
|
||||
if (SlXvIsFeatureMissing(XSLFI_OBJECT_GROUND_TYPES)) {
|
||||
for (TileIndex t = 0; t < map_size; t++) {
|
||||
if (IsTileType(t, MP_OBJECT)) {
|
||||
_m[t].m4 = 0;
|
||||
ObjectType type = GetObjectType(t);
|
||||
extern void SetShouldObjectHaveNoFoundation(TileIndex tile, Slope tileh, ObjectType type, const ObjectSpec *spec);
|
||||
SetShouldObjectHaveNoFoundation(t, SLOPE_ELEVATED, type, ObjectSpec::Get(type));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
InitializeRoadGUI();
|
||||
|
||||
/* This needs to be done after conversion. */
|
||||
|
Reference in New Issue
Block a user