mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
Use K_LAST instead of 256 in some loops
It's not 256 anymore, hasn't been in a long time..
This commit is contained in:
parent
ff9f9accd3
commit
c67d82dd53
2 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,7 @@ CL_DrawInventory(void)
|
|||
cl.configstrings[CS_ITEMS + item]);
|
||||
bind = "";
|
||||
|
||||
for (j = 0; j < 256; j++)
|
||||
for (j = 0; j < K_LAST; j++)
|
||||
{
|
||||
if (keybindings[j] && !Q_stricmp(keybindings[j], binding))
|
||||
{
|
||||
|
|
|
@ -842,7 +842,7 @@ M_UnbindCommand(char *command)
|
|||
|
||||
l = strlen(command);
|
||||
|
||||
for (j = 0; j < 256; j++)
|
||||
for (j = 0; j < K_LAST; j++)
|
||||
{
|
||||
char *b;
|
||||
b = keybindings[j];
|
||||
|
@ -870,7 +870,7 @@ M_FindKeysForCommand(char *command, int *twokeys)
|
|||
l = strlen(command);
|
||||
count = 0;
|
||||
|
||||
for (j = 0; j < 256; j++)
|
||||
for (j = 0; j < K_LAST; j++)
|
||||
{
|
||||
char *b;
|
||||
b = keybindings[j];
|
||||
|
|
Loading…
Reference in a new issue