remove fromNewerVersion TODOs in GameSave.cpp

This commit is contained in:
jacob1 2018-03-24 14:38:26 -04:00
parent fac996722b
commit b89ea68acd

View File

@ -28,7 +28,7 @@ GameSave::GameSave(GameSave & save):
airMode(save.airMode), airMode(save.airMode),
edgeMode(save.edgeMode), edgeMode(save.edgeMode),
signs(save.signs), signs(save.signs),
stkm(save.stkm), stkm(save.stkm),
palette(save.palette), palette(save.palette),
pmapbits(save.pmapbits), pmapbits(save.pmapbits),
expanded(save.expanded), expanded(save.expanded),
@ -1563,7 +1563,6 @@ void GameSave::readPSv(char * saveDataChar, int dataLength)
throw ParseException(ParseException::Corrupt, "Not enough data at line " MTOS(__LINE__) " in " MTOS(__FILE__)); throw ParseException(ParseException::Corrupt, "Not enough data at line " MTOS(__LINE__) " in " MTOS(__FILE__));
j=data[p++]; j=data[p++];
if (j >= PT_NUM) { if (j >= PT_NUM) {
//TODO: Possibly some server side translation
j = PT_DUST;//throw ParseException(ParseException::Corrupt, "Not enough data at line " MTOS(__LINE__) " in " MTOS(__FILE__)); j = PT_DUST;//throw ParseException(ParseException::Corrupt, "Not enough data at line " MTOS(__LINE__) " in " MTOS(__FILE__));
} }
if (j) if (j)
@ -1806,7 +1805,6 @@ void GameSave::readPSv(char * saveDataChar, int dataLength)
else else
p++; p++;
} }
//TODO: STKM_init_legs
// no more particle properties to load, so we can change type here without messing up loading // no more particle properties to load, so we can change type here without messing up loading
if (i && i<=NPART) if (i && i<=NPART)
{ {
@ -2172,7 +2170,6 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
fieldDesc |= 1 << 14; fieldDesc |= 1 << 14;
RESTRICTVERSION(93, 0); RESTRICTVERSION(93, 0);
RESTRICTRENDERVERSION(93, 0); RESTRICTRENDERVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
} }
//Extra Temperature (2nd byte optional, 1st required), 1 to 2 bytes //Extra Temperature (2nd byte optional, 1st required), 1 to 2 bytes
@ -2319,7 +2316,6 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
else if (particles[i].type == PT_PIPE || particles[i].type == PT_PPIP) else if (particles[i].type == PT_PIPE || particles[i].type == PT_PPIP)
{ {
RESTRICTVERSION(93, 0); RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
} }
if (particles[i].type == PT_TSNS || particles[i].type == PT_PSNS if (particles[i].type == PT_TSNS || particles[i].type == PT_PSNS
|| particles[i].type == PT_HSWC || particles[i].type == PT_PUMP) || particles[i].type == PT_HSWC || particles[i].type == PT_PUMP)
@ -2327,7 +2323,6 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
if (particles[i].tmp == 1) if (particles[i].tmp == 1)
{ {
RESTRICTVERSION(93, 0); RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
} }
} }
if (PMAPBITS > 8) if (PMAPBITS > 8)
@ -2335,17 +2330,14 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
if (TypeInCtype(particles[i].type, particles[i].ctype) && particles[i].ctype > 0xFF) if (TypeInCtype(particles[i].type, particles[i].ctype) && particles[i].ctype > 0xFF)
{ {
RESTRICTVERSION(93, 0); RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
} }
else if (TypeInTmp(particles[i].type) && particles[i].tmp > 0xFF) else if (TypeInTmp(particles[i].type) && particles[i].tmp > 0xFF)
{ {
RESTRICTVERSION(93, 0); RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
} }
else if (TypeInTmp2(particles[i].type, particles[i].tmp2) && particles[i].tmp2 > 0xFF) else if (TypeInTmp2(particles[i].type, particles[i].tmp2) && particles[i].tmp2 > 0xFF)
{ {
RESTRICTVERSION(93, 0); RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
} }
} }