mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-09 16:32:33 +00:00
K_drawButton: Explicitly convert boolean inputs to numerical index, instead of assuming false is 0 and true is 1
This commit is contained in:
parent
aa4c3ab4a2
commit
2949495c76
1 changed files with 1 additions and 1 deletions
|
|
@ -4849,7 +4849,7 @@ K_drawMiniPing (void)
|
|||
|
||||
void K_drawButton(fixed_t x, fixed_t y, INT32 flags, patch_t *button[2], boolean pressed)
|
||||
{
|
||||
V_DrawFixedPatch(x, y, FRACUNIT, flags, button[pressed], NULL);
|
||||
V_DrawFixedPatch(x, y, FRACUNIT, flags, button[(pressed == true) ? 1 : 0], NULL);
|
||||
}
|
||||
|
||||
void K_drawButtonAnim(INT32 x, INT32 y, INT32 flags, patch_t *button[2], tic_t animtic)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue