mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 20:42:36 +02:00
Fix scary mutant spiders (many-headed stickmen)
They would sometimes show up in intentionally or otherwise corrupted saves.
This commit is contained in:
@@ -171,6 +171,14 @@ int Simulation::Load(const GameSave * originalSave, bool includePressure, int fu
|
|||||||
{
|
{
|
||||||
Particle tempPart = save->particles[n];
|
Particle tempPart = save->particles[n];
|
||||||
|
|
||||||
|
if (elements[tempPart.type].CreateAllowed)
|
||||||
|
{
|
||||||
|
if (!(*(elements[tempPart.type].CreateAllowed))(this, -3, int(tempPart.x + 0.5f), int(tempPart.y + 0.5f), tempPart.type))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Allocate particle (this location is guaranteed to be empty due to "full scan" logic above)
|
// Allocate particle (this location is guaranteed to be empty due to "full scan" logic above)
|
||||||
if (pfree == -1)
|
if (pfree == -1)
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user