never set groundEntityNum to -1, use ENTITYNUM_NONE instead

From /dev/humancontroller.
This commit is contained in:
Zack Middleton 2012-06-18 16:28:39 +00:00
parent 7f9a04fd80
commit 4bd24d3182
3 changed files with 5 additions and 5 deletions

View file

@ -953,8 +953,8 @@ void G_RunItem( gentity_t *ent ) {
int contents;
int mask;
// if groundentity has been set to -1, it may have been pushed off an edge
if ( ent->s.groundEntityNum == -1 ) {
// if its groundentity has been set to none, it may have been pushed off an edge
if ( ent->s.groundEntityNum == ENTITYNUM_NONE ) {
if ( ent->s.pos.trType != TR_GRAVITY ) {
ent->s.pos.trType = TR_GRAVITY;
ent->s.pos.trTime = level.time;