mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-13 00:24:44 +00:00
Inventory screen keys/buttons display fix
When a key/button name is too long, and its bound to an inventory element, its display in the inventory screen misaligns the item it is bound to, even pushing it out of the inventory frame. This commit limits its display to the maximum of 6 characters the inventory screen allows.
This commit is contained in:
parent
b59077b972
commit
0419cd7931
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ CL_DrawInventory(void)
|
|||
}
|
||||
}
|
||||
|
||||
Com_sprintf(string, sizeof(string), "%6s %3i %s", bind,
|
||||
Com_sprintf(string, sizeof(string), "%6.6s %3i %s", bind,
|
||||
cl.inventory[item], cl.configstrings[CS_ITEMS + item]);
|
||||
|
||||
if (item != selected)
|
||||
|
|
Loading…
Reference in a new issue