summaryrefslogtreecommitdiff
path: root/src/client/GameSave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/GameSave.cpp')
-rw-r--r--src/client/GameSave.cpp15
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;
+ }
}
}
}