add -1 check for driftgauge too

This commit is contained in:
Alug committed 2024-02-24 19:16:33 +01:00
1 parent 9173bc8ebe
commit 1d177b6a35
1 file changed
+4
+4
View File
@@ -9286,6 +9286,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))