summaryrefslogtreecommitdiff
path: root/src/simulation/elements/EMP.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-21 12:00:31 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-21 12:00:31 (GMT)
commitb6736f967e9889c7fc8a68b11abd5be1ad4cc5d7 (patch)
tree693cf90faed1cef2ec0e7ff6859e062134316859 /src/simulation/elements/EMP.cpp
parente25d934856fdd7c2288e3a515cac907a0451e9c4 (diff)
downloadpowder-b6736f967e9889c7fc8a68b11abd5be1ad4cc5d7.zip
powder-b6736f967e9889c7fc8a68b11abd5be1ad4cc5d7.tar.gz
Add EMP flash, fixes #137
Diffstat (limited to 'src/simulation/elements/EMP.cpp')
-rw-r--r--src/simulation/elements/EMP.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/EMP.cpp b/src/simulation/elements/EMP.cpp
index 175e7e7..e21f69c 100644
--- a/src/simulation/elements/EMP.cpp
+++ b/src/simulation/elements/EMP.cpp
@@ -68,9 +68,9 @@ int Element_EMP::update(UPDATE_FUNC_ARGS)
if (!ok)
return 0;
parts[i].life=220;
- //emp_decor+=3; TODO: Fix
- //if (emp_decor>40)
- // emp_decor=40;
+ sim->emp_decor += 3;
+ if (sim->emp_decor > 40)
+ sim->emp_decor = 40;
for (r=0; r<=sim->parts_lastActiveIndex; r++)
{
t=parts[r].type;