mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 03:39:57 +02:00
restrict saves to version 94.0 when they use newer elements / features
This commit is contained in:
@@ -2043,6 +2043,10 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
|
||||
if (i>255) i=255;
|
||||
fanData[fanDataLen++] = i;
|
||||
}
|
||||
else if (blockMap[y][x] == WL_STASIS)
|
||||
{
|
||||
RESTRICTVERSION(94, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2294,7 +2298,7 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
|
||||
{
|
||||
RESTRICTVERSION(92, 0);
|
||||
}
|
||||
/*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);
|
||||
}
|
||||
@@ -2305,7 +2309,7 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
|
||||
{
|
||||
RESTRICTVERSION(93, 0);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
if (PMAPBITS > 8)
|
||||
{
|
||||
if (TypeInCtype(particles[i].type, particles[i].ctype) && particles[i].ctype > 0xFF)
|
||||
@@ -2321,6 +2325,17 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
|
||||
RESTRICTVERSION(93, 0);
|
||||
}
|
||||
}
|
||||
if (particles[i].type == PT_LDTC)
|
||||
{
|
||||
RESTRICTVERSION(94, 0);
|
||||
}
|
||||
if (particles[i].type == PT_TSNS || particles[i].type == PT_PSNS)
|
||||
{
|
||||
if (particles[i].tmp == 2)
|
||||
{
|
||||
RESTRICTVERSION(94, 0);
|
||||
}
|
||||
}
|
||||
|
||||
//Get the pmap entry for the next particle in the same position
|
||||
i = partsPosLink[i];
|
||||
|
Reference in New Issue
Block a user