diff options
| author | jacob1 <jfu614@gmail.com> | 2013-08-30 02:18:35 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-08-30 02:18:35 (GMT) |
| commit | d38af2764c682370b4f604d54142b984fdd079cf (patch) | |
| tree | ba2c8b7c001798bf85f33ee3fd2e4922e47634c2 /src/client | |
| parent | b17ef7f938808fe972030757921e958793a17943 (diff) | |
| download | powder-d38af2764c682370b4f604d54142b984fdd079cf.zip powder-d38af2764c682370b4f604d54142b984fdd079cf.tar.gz | |
move QRTZ .tmp into .tmp2 and .ctype into .tmp, fixes bug where sparking QRTZ resets .ctype and stops it from growing
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/GameSave.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 941228e..df76c00 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -972,7 +972,16 @@ void GameSave::readOPS(char * data, int dataLength) particles[newIndex].tmp = 6; particles[newIndex].ctype = 0; } + case PT_QRTZ: + case PT_PQRT: + if (savedVersion < 89) + { + particles[newIndex].tmp2 = particles[newIndex].tmp; + particles[newIndex].tmp = particles[newIndex].ctype; + particles[newIndex].ctype = 0; + } } + //note: PSv was used in version 77.0 and every version before, add something in PSv too if the element is that old newIndex++; } } @@ -1602,6 +1611,12 @@ void GameSave::readPSv(char * data, int dataLength) particles[i-1].tmp = 6; particles[i-1].ctype = 0; } + else if (particles[i-1].type == PT_QRTZ || particles[i-1].type == PT_PQRT) + { + particles[i-1].tmp2 = particles[i-1].tmp; + particles[i-1].tmp = particles[i-1].ctype; + particles[i-1].ctype = 0; + } } } } |
