Restrict saves with ambient air temp set to v96.0

This commit is contained in:
Tamás Bálint Misius 2021-06-04 22:54:31 +02:00
parent ffe730c615
commit 788c9cf9fc
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 6 additions and 2 deletions

View File

@ -2568,7 +2568,11 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
bson_append_bool(&b, "paused", paused);
bson_append_int(&b, "gravityMode", gravityMode);
bson_append_int(&b, "airMode", airMode);
bson_append_double(&b, "ambientAirTemp", double(ambientAirTemp));
if (fabsf(ambientAirTemp - (R_TEMP + 273.15f)) > 0.0001f)
{
bson_append_double(&b, "ambientAirTemp", double(ambientAirTemp));
RESTRICTVERSION(96, 0);
}
bson_append_int(&b, "edgeMode", edgeMode);
if (stkm.hasData())

View File

@ -113,7 +113,7 @@ public:
void SetEdgeMode(int edgeMode);
int GetEdgeMode();
void SetAmbientAirTemperature(float edgeMode);
void SetAmbientAirTemperature(float ambientAirTemp);
float GetAmbientAirTemperature();
void SetDecoSpace(int decoSpace);
int GetDecoSpace();