X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=cdf55ac3368dc4be36c79aa47fe4b73158306cbd;hp=606652248307a0eb8a1b05964695d43c2e066781;hb=98d421667c21a07ab69dd881f1435c2f595ddd4c;hpb=b6b5161dc056ea9b3b03aa9899487ba343f8feb6 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);