1
0
mirror of https://github.com/The-Powder-Toy/The-Powder-Toy.git synced 2025-03-20 14:20:02 +01:00

93.0 save loading fix (todo: remove this stuff on 93.0 release)

This commit is contained in:
jacob1 2018-03-10 20:30:20 -05:00
parent c861d69f9c
commit 3b95ff7983

@ -567,7 +567,9 @@ void GameSave::readOPS(char * data, int dataLength)
unsigned partsCount = 0;
unsigned int blockX, blockY, blockW, blockH, fullX, fullY, fullW, fullH;
int savedVersion = inputData[4];
#if defined(SNAPSHOT) || defined(DEBUG)
bool fakeNewerVersion = false; // used for development builds only
#endif
bson b;
b.data = NULL;
@ -1201,7 +1203,11 @@ void GameSave::readOPS(char * data, int dataLength)
break;
case PT_PIPE:
case PT_PPIP:
#if defined(SNAPSHOT) || defined(DEBUG)
if (savedVersion < 93 && !fakeNewerVersion)
#else
if (savedVersion < 93)
#endif
{
if (particles[newIndex].ctype == 1)
particles[newIndex].tmp |= 0x00020000; //PFLAG_INITIALIZING