From 120552464d63ac2c719e8f996be879156eed6ddf Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 1 Apr 2005 23:06:52 +0000 Subject: [PATCH] Fixes part of bug #685 (Sa-matra turret bop in step-zoom) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1610 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/process.c b/sc2/src/sc2code/process.c index e911d1d72..55f20ec98 100644 --- a/sc2/src/sc2code/process.c +++ b/sc2/src/sc2code/process.c @@ -287,8 +287,8 @@ CalcView (PPOINT pNewScrollPt, SIZE next_reduction, dy = WRAP_DELTA_Y (dy); if (ships_alive == 1) { -#define ORG_JUMP_X (LOG_SPACE_WIDTH / 75) -#define ORG_JUMP_Y (LOG_SPACE_HEIGHT / 75) +#define ORG_JUMP_X ((SIZE)DISPLAY_ALIGN(LOG_SPACE_WIDTH / 75)) +#define ORG_JUMP_Y ((SIZE)DISPLAY_ALIGN(LOG_SPACE_HEIGHT / 75)) if (dx > ORG_JUMP_X) dx = ORG_JUMP_X; else if (dx < -ORG_JUMP_X)