never set groundEntityNum to -1, use ENTITYNUM_NONE instead
From /dev/humancontroller.
This commit is contained in:
1 parent
7f9a04fd80
commit
4bd24d3182
3 files changed
+5
-5
No files matched your search
+2
-2
@@ -164,7 +164,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 );
|
||||
@@ -189,7 +189,7 @@ qboolean G_TryPushingEntity( gentity_t *check, gentity_t *pusher, vec3_t move, v
|
||||
VectorCopy( (pushed_p-1)->angles, check->s.apos.trBase );
|
||||
block = G_TestEntityPosition (check);
|
||||
if ( !block ) {
|
||||
check->s.groundEntityNum = -1;
|
||||
check->s.groundEntityNum = ENTITYNUM_NONE;
|
||||
pushed_p--;
|
||||
return qtrue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user