Prevent integer overflow with emp_decor

This commit is contained in:
Simon Robertshaw 2011-10-14 12:11:09 +01:00
parent 83b4f7e1ec
commit 56764a2309

View File

@ -1740,6 +1740,7 @@ void draw_other(pixel *vid) // EMP effect
if (r>255) r=255;
if (g>255) g=255;
if (b>255) g=255;
if (a>255) a=255;
for (j=0; j<YRES; j++)
for (i=0; i<XRES; i++)
{