diff options
author | /dev/humancontroller <devhc@example.com> | 2017-02-07 18:58:23 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:09 +0100 |
commit | 5c84a2b60360fb956715456c5edc5a21628f1d74 (patch) | |
tree | f35fd29f5a0b30b470a8d85b4b9d8fc3c43c00ae /src/game/g_mover.c | |
parent | 069a74c854991bba55770a4f2143a4576bc47dcb (diff) |
never set groundEntityNum to -1, use ENTITYNUM_NONE instead
Diffstat (limited to 'src/game/g_mover.c')
-rw-r--r-- | src/game/g_mover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_mover.c b/src/game/g_mover.c index a0df546b..0ff748eb 100644 --- a/src/game/g_mover.c +++ b/src/game/g_mover.c @@ -177,7 +177,7 @@ qboolean G_TryPushingEntity( gentity_t *check, gentity_t *pusher, vec3_t move, v // may have pushed them off an edge if( check->s.groundEntityNum != pusher->s.number ) - check->s.groundEntityNum = -1; + check->s.groundEntityNum = ENTITYNUM_NONE; block = G_TestEntityPosition( check ); @@ -206,7 +206,7 @@ qboolean G_TryPushingEntity( gentity_t *check, gentity_t *pusher, vec3_t move, v if( !block ) { - check->s.groundEntityNum = -1; + check->s.groundEntityNum = ENTITYNUM_NONE; pushed_p--; return qtrue; } |