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

+1 -2
View File
@@ -753,8 +753,7 @@ int G_InvulnerabilityEffect( gentity_t *targ, vec3_t dir, vec3_t point, vec3_t i
}
VectorCopy(dir, vec);
VectorInverse(vec);
// sphere model radius = 42 units
n = RaySphereIntersections( targ->client->ps.origin, 42, point, vec, intersections);
n = RaySphereIntersections( targ->client->ps.origin, INVUL_RADIUS, point, vec, intersections);
if (n > 0) {
impact = G_TempEntity( targ->client->ps.origin, EV_INVUL_IMPACT );
VectorSubtract(intersections[0], targ->client->ps.origin, vec);