From: Holger Schemel Date: Mon, 3 Dec 2018 21:49:26 +0000 (+0100) Subject: fixed bug with comparing wrong viewport variables X-Git-Tag: 4.1.2.0~85 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=98d421667c21a07ab69dd881f1435c2f595ddd4c;hp=b6b5161dc056ea9b3b03aa9899487ba343f8feb6 fixed bug with comparing wrong viewport variables --- diff --git a/src/tools.c b/src/tools.c index 60665224..cdf55ac3 100644 --- a/src/tools.c +++ b/src/tools.c @@ -9554,8 +9554,8 @@ void ChangeViewportPropertiesIfNeeded(void) } // add current and new door 2 area if position or size has changed - if (new_dx != VX || new_dy != VY || - new_dxsize != VXSIZE || new_dysize != VYSIZE) + if (new_vx != VX || new_vy != VY || + new_vxsize != VXSIZE || new_vysize != VYSIZE) { JoinRectangles(&FADE_SX, &FADE_SY, &FADE_SXSIZE, &FADE_SYSIZE, VX, VY, VXSIZE, VYSIZE);