From 5c84a2b60360fb956715456c5edc5a21628f1d74 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Tue, 7 Feb 2017 18:58:23 +0100 Subject: never set groundEntityNum to -1, use ENTITYNUM_NONE instead --- src/game/g_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/g_client.c') 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 ) -- cgit