Skip to content

Commit

Permalink
fix DLAY delay in older saves
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jun 28, 2015
1 parent 6a88e42 commit 7b904c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client/GameSave.cpp
Expand Up @@ -1027,6 +1027,14 @@ void GameSave::readOPS(char * data, int dataLength)
particles[newIndex].tmp = 1;
}
break;
case PT_DLAY:
// correct DLAY temperature in older saves
// due to either the +.5f now done in DLAY (higher temps), or rounding errors in the old DLAY code (room temperature temps),
// the delay in all DLAY from older versions will always be one greater than it should
if (savedVersion < 91)
{
particles[newIndex].temp = particles[newIndex].temp - 1.0f;
}
}
//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 7b904c6

Please sign in to comment.