fix some off-by one errors I induced last night

This commit is contained in:
Bill Currie 2001-07-22 18:44:55 +00:00
parent d6f82b6370
commit 77694855e7
1 changed files with 2 additions and 2 deletions

View File

@ -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;