mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix some off-by one errors I induced last night
This commit is contained in:
parent
d6f82b6370
commit
77694855e7
1 changed files with 2 additions and 2 deletions
|
@ -302,10 +302,10 @@ SV_PreSpawn_f (void)
|
|||
host_client->checksum = check;
|
||||
}
|
||||
|
||||
if (++buf == sv.num_signon_buffers - 1)
|
||||
if (buf == sv.num_signon_buffers - 1)
|
||||
command = va ("cmd spawn %i 0\n", svs.spawncount);
|
||||
else
|
||||
command = va ("cmd prespawn %i %i\n", svs.spawncount, buf);
|
||||
command = va ("cmd prespawn %i %i\n", svs.spawncount, buf + 1);
|
||||
|
||||
size = sv.signon_buffer_size[buf] + 1 + strlen(command) + 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue