Skip to content

Commit 6ad8e44

Browse files
committed
lolwut
1 parent 37c57fb commit 6ad8e44

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

addons/sourcemod/scripting/boss_selection.sp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,17 @@ void ResetRotationArray(char[] characterSet)
329329
for(int loop = 0; loop < count; loop++)
330330
{
331331
random = tempArray.Get(GetRandomInt(0, tempArray.Length-1));
332-
RotationIndexArray.Set(random, true);
332+
if(!RotationIndexArray.Get(random))
333+
RotationIndexArray.Set(random, true);
334+
else
335+
loop--;
333336

337+
/*
334338
while((index = tempArray.FindValue(random)) != -1)
335339
{
336340
tempArray.ShiftUp(index);
337341
}
342+
*/
338343
}
339344

340345
delete tempArray;
@@ -510,7 +515,6 @@ public Action Command_SetMyBoss(int client, int args)
510515
Format(menutext, sizeof(menutext), "%s", bossName);
511516
}
512517

513-
Format(menutext, sizeof(menutext), "%s", bossName);
514518
AddMenuItem(dMenu, spcl, menutext, itemflags);
515519
}
516520
SetMenuExitButton(dMenu, true);

0 commit comments

Comments
 (0)