refactor: un-magic #define INVUL_RADIUS 42
This commit is contained in:
1 parent
db533030ea
commit
e3881a4d70
4 files changed
+6
-6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user