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:
Daniel Gibson 2020-04-08 04:19:10 +02:00
parent ff9f9accd3
commit c67d82dd53
2 changed files with 3 additions and 3 deletions

View file

@ -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))
{

View file

@ -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];