Fix some typos and possible bugs.

This commit is contained in:
Arkshine
2014-07-20 17:31:43 +02:00
parent da63bcb24b
commit 0347571ee9
3 changed files with 4 additions and 4 deletions

View File

@ -248,7 +248,7 @@ public cmdReadyRoom(id,level,cid) {
else {
new cur=0;
new i=1;
while (i<MaxClients) {
while (i<=MaxClients) {
if (is_user_connected(i)) {
if (UTIL_IsSpectator(i) == 1 || g_Team[i] != 0) {
cur++;
@ -279,7 +279,7 @@ public rrStep(index) {
if (is_user_connected(index) && g_Team[index]!=0) {
client_cmd(index, "%s", g_ReadyRoomAck)
}
if (++index > MaxClients) {
if (++index >= MaxClients) {
return PLUGIN_HANDLED_MAIN
}
}