diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 18:42:53 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 18:42:53 (GMT) |
| commit | a033fe7e496cfb5c6f4ec78e607408418858e765 (patch) | |
| tree | a94e07b4cad1b0e81809682c5b48eee88c075e7e /src/simulation/Simulation.cpp | |
| parent | a5d6c56f8cb5eab1d0c9823142c61de97230ee94 (diff) | |
| download | powder-a033fe7e496cfb5c6f4ec78e607408418858e765.zip powder-a033fe7e496cfb5c6f4ec78e607408418858e765.tar.gz | |
TPT: Add ptypes.enabled checks to a few more places 61f39f5464
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index b5d07bc..88457c3 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -167,7 +167,8 @@ GameSave * Simulation::Save(int fullX, int fullY, int fullX2, int fullY2) Particle tempPart = parts[i]; tempPart.x -= fullX; tempPart.y -= fullY; - *newSave << tempPart; + if(elements[tempPart.type].Enabled) + *newSave << tempPart; } } |
