Fix near-RTEMP temperatures being loaded incorrectly in some cases
This commit is contained in:
parent
46d7682ed9
commit
6cb54b1857
@ -1083,7 +1083,11 @@ void GameSave::readOPS(char * data, int dataLength)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//1 Byte room temp offset
|
//1 Byte room temp offset
|
||||||
tempTemp = (char)partsData[i++];
|
tempTemp = partsData[i++];
|
||||||
|
if (tempTemp >= 0x80)
|
||||||
|
{
|
||||||
|
tempTemp -= 0x100;
|
||||||
|
}
|
||||||
particles[newIndex].temp = tempTemp+294.15f;
|
particles[newIndex].temp = tempTemp+294.15f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user