From ed131fdad1a7d614c2d7c901fdf226fc7b6c38b9 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 5 Apr 2005 16:33:38 +0000 Subject: This change does not make sense to me, but GCC was screaming bloody murder about not being able to find a matching call for `MAX(int16&, int)'. svn-id: r17395 --- gob/scenery.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gob') diff --git a/gob/scenery.cpp b/gob/scenery.cpp index c42f3e879d..f6b13ebebc 100644 --- a/gob/scenery.cpp +++ b/gob/scenery.cpp @@ -520,10 +520,10 @@ void scen_updateAnim(int16 layer, int16 frame, int16 animation, int16 flags, MAX(scen_toRedrawTop, anim_animAreaTop); scen_toRedrawRight = MIN(scen_toRedrawRight, - anim_animAreaLeft + anim_animAreaWidth - 1); + (int16)(anim_animAreaLeft + anim_animAreaWidth - 1)); scen_toRedrawBottom = MIN(scen_toRedrawBottom, - anim_animAreaTop + anim_animAreaHeight - 1); + (int16)(anim_animAreaTop + anim_animAreaHeight - 1)); } transp = layerPtr->transp ? 3 : 0; @@ -651,10 +651,10 @@ void scen_updateAnim(int16 layer, int16 frame, int16 animation, int16 flags, MIN(scen_toRedrawTop, destY); scen_toRedrawRight = MAX(scen_toRedrawRight, - destX + right - left); + (int16)(destX + right - left)); scen_toRedrawBottom = MAX(scen_toRedrawBottom, - destY + bottom - top); + (int16)(destY + bottom - top)); } } } while (framePtr->notFinal == 1); -- cgit v1.2.3