Skip to content

Commit

Permalink
Add more breaks.
Browse files Browse the repository at this point in the history
Fixes tmp values being set to 0 for CRAY.
  • Loading branch information
jacksonmj committed Oct 13, 2015
1 parent 31b1e6a commit bb455ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/GameSave.cpp
Expand Up @@ -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)
{
Expand All @@ -1085,6 +1086,7 @@ void GameSave::readOPS(char * data, int dataLength)
particles[newIndex].tmp2 = 0;
}
}
break;
case PT_CONV:
if (savedVersion < 91)
{
Expand All @@ -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++;
Expand Down

0 comments on commit bb455ea

Please sign in to comment.