diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index d28afa3f0..1cdec19d2 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -2904,12 +2904,6 @@ nullquote: continue; } - if (EDUKE32_PREDICT_FALSE(pos.x < -(320<<16) || pos.x >= (640<<16) || pos.y < -(200<<16) || pos.y >= (400<<16))) - { - CON_ERRPRINTF("invalid coordinates: %d, %d\n", pos.x, pos.y); - continue; - } - int32_t blendidx = 0; NEG_ALPHA_TO_BLEND(alpha, blendidx, orientation); diff --git a/polymer/eduke32/source/lunatic/control.lua b/polymer/eduke32/source/lunatic/control.lua index 173d6f8f2..3543edb3d 100644 --- a/polymer/eduke32/source/lunatic/control.lua +++ b/polymer/eduke32/source/lunatic/control.lua @@ -402,15 +402,6 @@ function _rotspr(x, y, zoom, ang, tilenum, shade, pal, orientation, y = 65536*y end - -- XXX: This is the same as the check in gameexec.c, but ideally we'd want - -- rotatesprite to accept all coordinates and simply draw nothing if the - -- tile's bounding rectange is beyond the screen. - -- XXX: Currently, classic rotatesprite() is not correct with some large - -- zoom values. - if (not (x >= -320*65536 and x < 640*65536) or not (y >= -200*65536 and y < 400*65536)) then - error(format("invalid coordinates (%.03f, %.03f)", x, y), 2) - end - local blendidx = 0 if (alpha < 0) then -- See NEG_ALPHA_TO_BLEND. diff --git a/polymer/eduke32/source/m32exec.c b/polymer/eduke32/source/m32exec.c index d4f00b8b8..35ab15a68 100644 --- a/polymer/eduke32/source/m32exec.c +++ b/polymer/eduke32/source/m32exec.c @@ -2999,8 +2999,6 @@ dodefault: y<<=16; } - // NOTE: Unlike CON, no error on large x/y. - orientation &= (ROTATESPRITE_MAX-1); rotatesprite_(x,y,z,a,tilenum,shade,pal,2|orientation,alpha,0,x1,y1,x2,y2);