Skip to content

Commit

Permalink
Fix pavg loading behaviour of QRTZ/GLAS/TUNG again
Browse files Browse the repository at this point in the history
Was thought to have been fixed by 3de92f5; turns out the fix only worked with positive pressures.
  • Loading branch information
LBPHacker committed Feb 17, 2021
1 parent 92cb505 commit 31dda85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/GameSave.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 31dda85

Please sign in to comment.