Permalink
Browse files

Add more breaks.

Fixes tmp values being set to 0 for CRAY.
  • Loading branch information...
jacksonmj committed Oct 13, 2015
1 parent 31b1e6a commit bb455ea893b77b0f0e59490597f855a6f4de6c56
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/client/GameSave.cpp
@@ -1076,6 +1076,7 @@ void GameSave::readOPS(char * data, int dataLength)
{
particles[newIndex].temp = particles[newIndex].temp - 1.0f;
}
break;
case PT_CRAY:
if (savedVersion < 91)
{
@@ -1085,6 +1086,7 @@ void GameSave::readOPS(char * data, int dataLength)
particles[newIndex].tmp2 = 0;
}
}
break;
case PT_CONV:
if (savedVersion < 91)
{
@@ -1094,6 +1096,7 @@ void GameSave::readOPS(char * data, int dataLength)
particles[newIndex].tmp = 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++;

0 comments on commit bb455ea

Please sign in to comment.