summaryrefslogtreecommitdiff
path: root/src/simulation/elements/THDR.cpp
diff options
context:
space:
mode:
authorcracker64 <cracker642@gmail.com>2013-03-01 05:41:53 (GMT)
committer cracker64 <cracker642@gmail.com>2013-03-01 05:41:53 (GMT)
commit0d70547cf059b5bd0a7a4a0acd9251fb94c6115e (patch)
tree99a0b212eeecee83662d963da052b439375acbf3 /src/simulation/elements/THDR.cpp
parent5873d6958641af21b92fcb039d26c336331f19e7 (diff)
downloadpowder-0d70547cf059b5bd0a7a4a0acd9251fb94c6115e.zip
powder-0d70547cf059b5bd0a7a4a0acd9251fb94c6115e.tar.gz
More fixes to fix fixes and new fixes to fix stuff.
Diffstat (limited to 'src/simulation/elements/THDR.cpp')
-rw-r--r--src/simulation/elements/THDR.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/THDR.cpp b/src/simulation/elements/THDR.cpp
index 9d35b52..f309628 100644
--- a/src/simulation/elements/THDR.cpp
+++ b/src/simulation/elements/THDR.cpp
@@ -50,7 +50,7 @@ Element_THDR::Element_THDR()
int Element_THDR::update(UPDATE_FUNC_ARGS)
{
int r, rx, ry, rt;
- bool kill;
+ bool kill=false;
for (rx=-2; rx<3; rx++)
for (ry=-2; ry<3; ry++)
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
@@ -64,7 +64,7 @@ int Element_THDR::update(UPDATE_FUNC_ARGS)
parts[r>>8].ctype = parts[r>>8].type;
sim->part_change_type(r>>8,x+rx,y+ry,PT_SPRK);
parts[r>>8].life = 4;
- kill = true;
+ kill=true;
}
else if (rt!=PT_CLNE&&rt!=PT_THDR&&rt!=PT_SPRK&&rt!=PT_DMND&&rt!=PT_FIRE)
{