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_client.c | |
parent | 069a74c854991bba55770a4f2143a4576bc47dcb (diff) |
never set groundEntityNum to -1, use ENTITYNUM_NONE instead
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index d9f7e541..5e15162f 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -256,7 +256,7 @@ static gentity_t *G_SelectSpawnBuildable( vec3_t preference, buildable_t buildab if( search->health <= 0 ) continue; - if( !search->s.groundEntityNum ) + if( search->s.groundEntityNum == ENTITYNUM_NONE ) continue; if( search->clientSpawnTime > 0 ) |