From 4532671c56ccdf2e6a1c8aee3b78cf436922181b Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:26:46 +0000 Subject: * Fix broken spawn queue bug introduced in r1121 --- src/game/g_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/g_main.c b/src/game/g_main.c index 6daa841e..50da23db 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -795,7 +795,10 @@ int G_GetSpawnQueueLength( spawnQueue_t *sq ) { int length = sq->back - sq->front + 1; - return length % MAX_CLIENTS; + if( length < 0 ) + length += MAX_CLIENTS; + + return length; } /* -- cgit