add -1 check for driftgauge too

This commit is contained in:
Alug committed 2024-02-24 20:05:07 +01:00
1 parent 7706aa0bf0
commit d11780f62d
1 file changed
+4
+4
View File
@@ -9310,6 +9310,10 @@ static void K_drawDriftGauge(void)
return;
K_GetScreenCoords(&pos, stplyr, camera, stplyr->mo->x, stplyr->mo->y, stplyr->mo->z+FixedMul(cv_driftgaugeofs.value, cv_driftgaugeofs.value > 0 ? stplyr->mo->scale : mapobjectscale));
//Check for negative screencoords
if (pos.x == -1 || pos.y == -1)
return;
//Flipcam on
if (stplyr->mo->eflags & MFE_VERTICALFLIP && (stplyr->pflags & PF_FLIPCAM))