Fix near-RTEMP temperatures being loaded incorrectly in some cases

This commit is contained in:
Tamás Bálint Misius 2021-09-03 08:16:19 +02:00
parent 46d7682ed9
commit 6cb54b1857
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -1083,7 +1083,11 @@ void GameSave::readOPS(char * data, int dataLength)
else
{
//1 Byte room temp offset
tempTemp = (char)partsData[i++];
tempTemp = partsData[i++];
if (tempTemp >= 0x80)
{
tempTemp -= 0x100;
}
particles[newIndex].temp = tempTemp+294.15f;
}