From 9ce8c9c778ee8d19c95b40bae447458cd7a52b92 Mon Sep 17 00:00:00 2001 From: Guy Perfect Date: Tue, 19 Nov 2024 22:21:06 -0600 Subject: [PATCH] VIP bugfix --- core/vip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/vip.c b/core/vip.c index f2e96f8..c0e33ce 100644 --- a/core/vip.c +++ b/core/vip.c @@ -891,10 +891,10 @@ static void vipDrawNormal(VB *sim, World *world) { wnd.y1 = world->gy; if (wnd.y1 >= 224) return; - wnd.y2 = wnd.y1 + world->height; + wnd.y2 = world->gy + world->height; if (wnd.y2 <= 0) return; - my = wnd.y1 - world->my; + my = world->gy - world->my; if (wnd.y1 < 0) wnd.y1 = 0; if (wnd.y2 > 224) @@ -944,10 +944,10 @@ static void vipDrawHBias(VB *sim, World *world) { y1 = world->gy; if (y1 >= 224) return; - y2 = y1 + world->height; + y2 = world->gy + world->height; if (y2 <= 0) return; - my = y1 - world->my; + my = world->gy - world->my; if (y1 < 0) y1 = 0; if (y2 > 224)