No need to NULL check statically declared array entries.
This commit is contained in:
parent
c7eb4fb3b0
commit
bdb5df93a9
3 changed files with 3 additions and 4 deletions
|
@ -2553,7 +2553,6 @@ void Key_Unbindall_f (void)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i=0 ; i<K_MAX ; i++)
|
for (i=0 ; i<K_MAX ; i++)
|
||||||
if (keybindings[i])
|
|
||||||
Key_SetBinding (i, ~0, NULL, Cmd_ExecLevel);
|
Key_SetBinding (i, ~0, NULL, Cmd_ExecLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6759,7 +6759,7 @@ static void QCBUILTIN PF_resourcestatus(pubprogfuncs_t *prinst, struct globalvar
|
||||||
return;
|
return;
|
||||||
case RESTYPE_SOUND:
|
case RESTYPE_SOUND:
|
||||||
sfx = NULL;
|
sfx = NULL;
|
||||||
for (idx=1 ; idx<MAX_PRECACHE_SOUNDS && cl.sound_name[idx] ; idx++)
|
for (idx=1 ; idx<MAX_PRECACHE_SOUNDS; idx++)
|
||||||
{
|
{
|
||||||
if (!strcmp(cl.sound_name[idx], resname))
|
if (!strcmp(cl.sound_name[idx], resname))
|
||||||
{
|
{
|
||||||
|
|
|
@ -3052,7 +3052,7 @@ void Sbar_Draw (playerview_t *pv)
|
||||||
R2D_ImageColours(1, 1, 1, 1);
|
R2D_ImageColours(1, 1, 1, 1);
|
||||||
if (*cl.q2statusbar)
|
if (*cl.q2statusbar)
|
||||||
Sbar_ExecuteLayoutString(cl.q2statusbar, seat);
|
Sbar_ExecuteLayoutString(cl.q2statusbar, seat);
|
||||||
if (*cl.q2layout && (cl.q2frame.playerstate[seat].stats[Q2STAT_LAYOUTS] & 1))
|
if (cl.q2frame.playerstate[seat].stats[Q2STAT_LAYOUTS] & 1)
|
||||||
Sbar_ExecuteLayoutString(cl.q2layout[seat], seat);
|
Sbar_ExecuteLayoutString(cl.q2layout[seat], seat);
|
||||||
if (cl.q2frame.playerstate[seat].stats[Q2STAT_LAYOUTS] & 2)
|
if (cl.q2frame.playerstate[seat].stats[Q2STAT_LAYOUTS] & 2)
|
||||||
Sbar_Q2DrawInventory(seat);
|
Sbar_Q2DrawInventory(seat);
|
||||||
|
|
Loading…
Reference in a new issue