diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-15 16:55:14 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 16:55:14 +0200 |
commit | 7bfcf1fae886456c17e7e2fe9d47530ad1fd8162 (patch) | |
tree | f4aa7e2a417e90b10f741d0a11c6e3ce35480875 /src/game/g_client.c | |
parent | b0c9d60a370a1ae651e2850c3b07d6ffa1da69ce (diff) |
do not treat a clipmask of 0 as MASK_DEADSOLID in some cases
remove the clipmask == 0 special cases from G_TestEntityPosition() and G_Physics(). when spawning corpses, set their clipmask to MASK_DEADSOLID instead of 0.
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index abdfa8e..00ed443 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -759,6 +759,7 @@ void SpawnCorpse( gentity_t *ent ) body->timestamp = level.time; body->s.event = 0; body->r.contents = CONTENTS_CORPSE; + body->clipmask = MASK_DEADSOLID; body->s.clientNum = ent->client->ps.stats[ STAT_PCLASS ]; body->nonSegModel = ent->client->ps.persistant[ PERS_STATE ] & PS_NONSEGMODEL; |