Refactoring patch by DevHC
This commit is contained in:
parent
21668c0616
commit
fef4d12d68
31 changed files with 60 additions and 98 deletions
|
@ -486,7 +486,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
|
|||
killerName = "<world>";
|
||||
}
|
||||
|
||||
if ( meansOfDeath < 0 || meansOfDeath >= sizeof( modNames ) / sizeof( modNames[0] ) ) {
|
||||
if ( meansOfDeath < 0 || meansOfDeath >= ARRAY_LEN( modNames ) ) {
|
||||
obit = "<bad obituary>";
|
||||
} else {
|
||||
obit = modNames[meansOfDeath];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue