summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-14 17:08:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-14 17:08:06 (GMT)
commitf9883b31e0e9b9a3efeec67fcc3b62d1294e7b29 (patch)
tree7355284db4072b17a159051e127e413116221c18 /src
parent3f4d55fbcca99a0459fb1e6cba43894e9b263ecd (diff)
downloadpowder-f9883b31e0e9b9a3efeec67fcc3b62d1294e7b29.zip
powder-f9883b31e0e9b9a3efeec67fcc3b62d1294e7b29.tar.gz
Reset emp-decor if out of bounds
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 7a1e483..a462a8b 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1730,6 +1730,7 @@ void draw_other(pixel *vid) // EMP effect
int i, j;
if (emp_decor>0 && !sys_pause) emp_decor-=emp_decor/25+2;
if (emp_decor>40) emp_decor=40;
+ if (emp_decor<0) emp_decor = 0;
if (cmode==CM_NOTHING) // no in nothing mode
return;
if (emp_decor>0)