mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
HUD: fix Input Display being covered by dialogue box in non-green resolutions
This commit is contained in:
parent
198f80e20d
commit
30b129b284
1 changed files with 5 additions and 2 deletions
|
|
@ -5228,9 +5228,12 @@ static void K_drawInput(void)
|
|||
INT32 flags = def[k][2] | V_SPLITSCREEN;
|
||||
char mode = ((stplyr->pflags & PF_ANALOGSTICK) ? '4' : '2') + (r_splitscreen > 1);
|
||||
bool local = !demo.playback && P_IsMachineLocalPlayer(stplyr);
|
||||
fixed_t slide = K_GetDialogueSlide(FRACUNIT);
|
||||
if (slide)
|
||||
flags &= ~(V_SNAPTORIGHT); // don't draw underneath the dialogue box in non-green resolutions
|
||||
K_DrawInputDisplay(
|
||||
def[k][0] - FixedToFloat(K_GetDialogueSlide(34 * FRACUNIT)),
|
||||
def[k][1] - FixedToFloat(K_GetDialogueSlide(51 * FRACUNIT)),
|
||||
def[k][0] - FixedToFloat(34 * slide),
|
||||
def[k][1] - FixedToFloat(51 * slide),
|
||||
flags,
|
||||
mode,
|
||||
(local ? G_LocalSplitscreenPartyPosition : G_PartyPosition)(stplyr - players),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue