add RESTRICT_VERSION check to digitation stuff, update readme date
This commit is contained in:
parent
f2ac8a951c
commit
c861d69f9c
@ -1,4 +1,4 @@
|
|||||||
The Powder Toy - November 2017
|
The Powder Toy - March 2018
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
Get the latest version here: http://powdertoy.co.uk/Download.html
|
Get the latest version here: http://powdertoy.co.uk/Download.html
|
||||||
|
@ -2246,6 +2246,15 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
|
|||||||
RESTRICTVERSION(93, 0);
|
RESTRICTVERSION(93, 0);
|
||||||
fromNewerVersion = true; // TODO: remove on 93.0 release
|
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 (PMAPBITS > 8)
|
||||||
{
|
{
|
||||||
if (Simulation::TypeInCtype(particles[i].type) && particles[i].ctype > 0xFF)
|
if (Simulation::TypeInCtype(particles[i].type) && particles[i].ctype > 0xFF)
|
||||||
|
@ -4113,12 +4113,10 @@ void Simulation::UpdateParticles(int start, int end)
|
|||||||
kill_part(i);
|
kill_part(i);
|
||||||
goto killed;
|
goto killed;
|
||||||
}
|
}
|
||||||
if (part_change_type(i,x,y,t))
|
|
||||||
goto killed;
|
|
||||||
// part_change_type could refuse to change the type and kill the particle
|
// part_change_type could refuse to change the type and kill the particle
|
||||||
// for example, changing type to STKM but one already exists
|
// for example, changing type to STKM but one already exists
|
||||||
// we need to account for that to not cause simulation corruption issues
|
// we need to account for that to not cause simulation corruption issues
|
||||||
if (parts[i].type == PT_NONE)
|
if (part_change_type(i,x,y,t))
|
||||||
goto killed;
|
goto killed;
|
||||||
|
|
||||||
if (t==PT_FIRE || t==PT_PLSM || t==PT_CFLM)
|
if (t==PT_FIRE || t==PT_PLSM || t==PT_CFLM)
|
||||||
|
Reference in New Issue
Block a user