summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
/*