summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-03 12:26:46 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:57 +0000
commit4532671c56ccdf2e6a1c8aee3b78cf436922181b (patch)
tree3bb80b1c3b27a05e524c27b573af231637189194 /src/game/g_main.c
parent54249920dea34a3b848e91c106eafbbf9e6cfe45 (diff)
* Fix broken spawn queue bug introduced in r1121
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c5
1 files changed, 4 insertions, 1 deletions
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;
}
/*