mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 21:50:18 +02: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:
@@ -1187,6 +1187,8 @@ void GameSave::readOPS(char * data, int dataLength)
|
|||||||
case PT_QRTZ:
|
case PT_QRTZ:
|
||||||
case PT_GLAS:
|
case PT_GLAS:
|
||||||
case PT_TUNG:
|
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[0] /= 64;
|
||||||
particles[newIndex].pavg[1] /= 64;
|
particles[newIndex].pavg[1] /= 64;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user