mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-17 14:28:30 +01:00
Fix pavg loading behaviour of QRTZ/GLAS/TUNG again
Was thought to have been fixed by 3de92f5; turns out the fix only worked with positive pressures.
This commit is contained in:
parent
92cb50505d
commit
31dda85504
@ -1187,6 +1187,8 @@ void GameSave::readOPS(char * data, int dataLength)
|
||||
case PT_QRTZ:
|
||||
case PT_GLAS:
|
||||
case PT_TUNG:
|
||||
if (particles[newIndex].pavg[0] >= 0x8000) particles[newIndex].pavg[0] -= 0x10000;
|
||||
if (particles[newIndex].pavg[1] >= 0x8000) particles[newIndex].pavg[1] -= 0x10000;
|
||||
particles[newIndex].pavg[0] /= 64;
|
||||
particles[newIndex].pavg[1] /= 64;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user