summaryrefslogtreecommitdiff
path: root/src/client/GameSave.cpp
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2013-09-08 17:14:12 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2013-09-08 17:14:12 (GMT)
commit9eccad80b1c58f66cd1f23cefef922b55db5c39d (patch)
tree947f2ccf37aee515fb7dfc01379ed34c43ad552f /src/client/GameSave.cpp
parent2e52e209a66335cece95e58f98141e1ba30a14aa (diff)
downloadpowder-9eccad80b1c58f66cd1f23cefef922b55db5c39d.zip
powder-9eccad80b1c58f66cd1f23cefef922b55db5c39d.tar.gz
Missing breaks in readOPS
Causing some elements to be loaded incorrectly
Diffstat (limited to 'src/client/GameSave.cpp')
-rw-r--r--src/client/GameSave.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp
index df76c00..ddb4ef4 100644
--- a/src/client/GameSave.cpp
+++ b/src/client/GameSave.cpp
@@ -960,11 +960,13 @@ void GameSave::readOPS(char * data, int dataLength)
case PT_PSTN:
if (savedVersion < 87 && particles[newIndex].ctype)
particles[newIndex].life = 1;
+ break;
case PT_STKM:
case PT_STKM2:
case PT_FIGH:
if (savedVersion < 88 && particles[newIndex].ctype == OLD_SPC_AIR)
particles[newIndex].ctype = SPC_AIR;
+ break;
case PT_FILT:
if (savedVersion < 89)
{
@@ -972,6 +974,7 @@ void GameSave::readOPS(char * data, int dataLength)
particles[newIndex].tmp = 6;
particles[newIndex].ctype = 0;
}
+ break;
case PT_QRTZ:
case PT_PQRT:
if (savedVersion < 89)
@@ -980,6 +983,7 @@ void GameSave::readOPS(char * data, int dataLength)
particles[newIndex].tmp = particles[newIndex].ctype;
particles[newIndex].ctype = 0;
}
+ break;
}
//note: PSv was used in version 77.0 and every version before, add something in PSv too if the element is that old
newIndex++;