Remove useless loop/waituntil

This commit is contained in:
icomrade
2014-03-27 01:02:05 -04:00
parent 094c127e7b
commit 2fb92a00a1

View File

@@ -1,6 +1,5 @@
[] spawn { [] spawn {
while {1 == 1} do { BIS_Effects_Init = true; //A2 won't overwrite this if var is not nil
waitUntil {((isNil "BIS_Effects_Rifle") OR {(count(toArray(str(BIS_Effects_Rifle)))!=7)})};
diag_log "Res3tting B!S effects..."; diag_log "Res3tting B!S effects...";
/* BIS_Effects_* fixes from Dwarden */ /* BIS_Effects_* fixes from Dwarden */
BIS_Effects_Rifle = {false}; BIS_Effects_Rifle = {false};
@@ -33,8 +32,5 @@
"BIS_effects_gepv" addPublicVariableEventHandler { "BIS_effects_gepv" addPublicVariableEventHandler {
(_this select 1) call BIS_Effects_startEvent; (_this select 1) call BIS_Effects_startEvent;
}; };
sleep 1;
};
}; };