VIP bugfix

This commit is contained in:
Guy Perfect 2024-11-19 22:21:06 -06:00
parent c90b8137de
commit 9ce8c9c778
1 changed files with 4 additions and 4 deletions

View File

@ -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)