Skip to content

Commit

Permalink
remove fromNewerVersion TODOs in GameSave.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Mar 24, 2018
1 parent fac9967 commit b89ea68
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/client/GameSave.cpp
Expand Up @@ -28,7 +28,7 @@ GameSave::GameSave(GameSave & save):
airMode(save.airMode),
edgeMode(save.edgeMode),
signs(save.signs),
stkm(save.stkm),
stkm(save.stkm),
palette(save.palette),
pmapbits(save.pmapbits),
expanded(save.expanded),
Expand Down Expand Up @@ -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__));
j=data[p++];
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__));
}
if (j)
Expand Down Expand Up @@ -1806,7 +1805,6 @@ void GameSave::readPSv(char * saveDataChar, int dataLength)
else
p++;
}
//TODO: STKM_init_legs
// no more particle properties to load, so we can change type here without messing up loading
if (i && i<=NPART)
{
Expand Down Expand Up @@ -2172,7 +2170,6 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
fieldDesc |= 1 << 14;
RESTRICTVERSION(93, 0);
RESTRICTRENDERVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
}

//Extra Temperature (2nd byte optional, 1st required), 1 to 2 bytes
Expand Down Expand Up @@ -2319,33 +2316,28 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
else if (particles[i].type == PT_PIPE || particles[i].type == PT_PPIP)
{
RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
}
if (particles[i].type == PT_TSNS || particles[i].type == PT_PSNS
|| particles[i].type == PT_HSWC || particles[i].type == PT_PUMP)
{
if (particles[i].tmp == 1)
{
RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
}
}
if (PMAPBITS > 8)
{
if (TypeInCtype(particles[i].type, particles[i].ctype) && particles[i].ctype > 0xFF)
{
RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
}
else if (TypeInTmp(particles[i].type) && particles[i].tmp > 0xFF)
{
RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
}
else if (TypeInTmp2(particles[i].type, particles[i].tmp2) && particles[i].tmp2 > 0xFF)
{
RESTRICTVERSION(93, 0);
fromNewerVersion = true; // TODO: remove on 93.0 release
}
}

Expand Down

0 comments on commit b89ea68

Please sign in to comment.