Reset emp-decor if out of bounds

This commit is contained in:
Simon Robertshaw 2011-10-14 18:08:06 +01:00
parent 3f4d55fbcc
commit f9883b31e0

View File

@ -1730,6 +1730,7 @@ void draw_other(pixel *vid) // EMP effect
int i, j; int i, j;
if (emp_decor>0 && !sys_pause) emp_decor-=emp_decor/25+2; if (emp_decor>0 && !sys_pause) emp_decor-=emp_decor/25+2;
if (emp_decor>40) emp_decor=40; if (emp_decor>40) emp_decor=40;
if (emp_decor<0) emp_decor = 0;
if (cmode==CM_NOTHING) // no in nothing mode if (cmode==CM_NOTHING) // no in nothing mode
return; return;
if (emp_decor>0) if (emp_decor>0)