Add flipcam support to object tracking
This commit is contained in:
parent
85817c57d3
commit
3d8d167cf4
1 changed files with 11 additions and 0 deletions
11
src/k_hud.c
11
src/k_hud.c
|
|
@ -928,6 +928,11 @@ void K_ObjectTracking(trackingResult_t *result, const vector3_t *point, boolean
|
|||
result->x = -result->x;
|
||||
}
|
||||
|
||||
if (camera[cameraNum].postimgflags && POSTIMG_FLIP)
|
||||
{
|
||||
result->y = -result->y;
|
||||
}
|
||||
|
||||
// Center results.
|
||||
result->x += screenHalfW;
|
||||
result->y += screenHalfH;
|
||||
|
|
@ -6107,6 +6112,12 @@ void K_DrawDriftGauge(void)
|
|||
basex = res.x;
|
||||
basey = res.y;
|
||||
|
||||
// good ol' flipcam sigh...
|
||||
if ((stplyr->pflags & PF_FLIPCAM) && (stplyr->mo->eflags & MFE_VERTICALFLIP))
|
||||
basey += 25*FRACUNIT;
|
||||
else if (stplyr->mo->eflags & MFE_VERTICALFLIP)
|
||||
basey += 5*FRACUNIT;
|
||||
|
||||
driftgauge_t *gauge = &driftgauges[cv_driftgauge.value];
|
||||
// Deal with Wifi-Style when no purps
|
||||
SINT8 holdupoffset = ((cv_driftgauge.value == DGAUGE_WIFI) && K_PurpleDriftActive()) + (K_UseColorHud() ? 1 : 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue