Fixed bad loop in RTV
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401538
This commit is contained in:
parent
2173773f35
commit
41ba6db2d6
@ -359,12 +359,12 @@ public Action:Timer_StartRTV(Handle:timer)
|
|||||||
for (new i = 0; i < limit; i++)
|
for (new i = 0; i < limit; i++)
|
||||||
{
|
{
|
||||||
decl String:map[64];
|
decl String:map[64];
|
||||||
new b = GetRandomInt(0, limit - 1);
|
new b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
|
||||||
GetArrayString(g_MapList, b, map, sizeof(map));
|
GetArrayString(g_MapList, b, map, sizeof(map));
|
||||||
|
|
||||||
while (IsStringInArray(g_RTVMapList, map))
|
while (IsStringInArray(g_RTVMapList, map))
|
||||||
{
|
{
|
||||||
b = GetRandomInt(0, limit - 1);
|
b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
|
||||||
GetArrayString(g_MapList, b, map, sizeof(map));
|
GetArrayString(g_MapList, b, map, sizeof(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user