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/elements/SPRK.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/elements/SPRK.cpp')
| -rw-r--r-- | src/simulation/elements/SPRK.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/SPRK.cpp b/src/simulation/elements/SPRK.cpp index aa2efeb..4cccdbb 100644 --- a/src/simulation/elements/SPRK.cpp +++ b/src/simulation/elements/SPRK.cpp @@ -56,7 +56,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS) { if (ct==PT_WATR||ct==PT_SLTW||ct==PT_PSCN||ct==PT_NSCN||ct==PT_ETRD||ct==PT_INWR) parts[i].temp = R_TEMP + 273.15f; - if (ct<=0 || ct>=PT_NUM) + if (ct<=0 || ct>=PT_NUM || !sim->elements[parts[i].ctype].Enabled) ct = PT_METL; sim->part_change_type(i,x,y,ct); parts[i].ctype = PT_NONE; |
