summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSaveliy Skresanov <savask@yandex.ru>2013-05-08 16:08:29 (GMT)
committer Saveliy Skresanov <savask@yandex.ru>2013-05-08 16:08:29 (GMT)
commit9893f596573046131a28d4ac3e8adeb501526477 (patch)
treed7e04c7a08b28556192a07c7030fc8b018142d32 /src/simulation/Simulation.cpp
parent645bcb1bcd1095efc1ab1d113e9282aef5774d1f (diff)
downloadpowder-9893f596573046131a28d4ac3e8adeb501526477.zip
powder-9893f596573046131a28d4ac3e8adeb501526477.tar.gz
Fix "blow power" for stick man, disable rocket boots on E-hole.
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 1ab97fd..c1f56f7 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2709,7 +2709,7 @@ int Simulation::create_part(int p, int x, int y, int tv)
if (x<0 || y<0 || x>=XRES || y>=YRES || ((t<=0 || t>=PT_NUM)&&t!=SPC_HEAT&&t!=SPC_COOL&&t!=SPC_AIR&&t!=SPC_VACUUM&&t!=SPC_PGRV&&t!=SPC_NGRV))
return -1;
- if (t>=0 && t<PT_NUM && !elements[t].Enabled)
+ if (t>=0 && t<PT_NUM && !elements[t].Enabled && t!=SPC_AIR)
return -1;
if(t==SPC_PROP) {
return -1; //Prop tool works on a mouse click basic, make sure it doesn't do anything here