diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:26:58 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:57 +0000 |
commit | 0705bbb92f8a591e30a9a2a31daf94baf8658064 (patch) | |
tree | c2c5c48215f00d7700810e808b9f89fe2ad02209 | |
parent | 4532671c56ccdf2e6a1c8aee3b78cf436922181b (diff) |
* Fix crashbug introduced last revision. This time I'm going to just revert that part of 1121 instead of trying to fix what wasn't broken.
-rw-r--r-- | src/game/g_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 50da23db..88b73c95 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -795,9 +795,12 @@ int G_GetSpawnQueueLength( spawnQueue_t *sq ) { int length = sq->back - sq->front + 1; - if( length < 0 ) + while( length < 0 ) length += MAX_CLIENTS; + while( length >= MAX_CLIENTS ) + length -= MAX_CLIENTS; + return length; } |