refactor: un-magic #define INVUL_RADIUS 42

This commit is contained in:
WofWca authored and Tim Angus committed 2025-11-18 14:06:59 +00:00
1 parent db533030ea
commit e3881a4d70
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -879,8 +879,8 @@ void ClientThink_real( gentity_t *ent ) {
// check for invulnerability expansion before doing the Pmove
if (client->ps.powerups[PW_INVULNERABILITY] ) {
if ( !(client->ps.pm_flags & PMF_INVULEXPAND) ) {
vec3_t mins = { -42, -42, -42 };
vec3_t maxs = { 42, 42, 42 };
vec3_t mins = { -INVUL_RADIUS, -INVUL_RADIUS, -INVUL_RADIUS };
vec3_t maxs = { INVUL_RADIUS, INVUL_RADIUS, INVUL_RADIUS };
vec3_t oldmins, oldmaxs;
VectorCopy (ent->r.mins, oldmins);