mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Small fix, revert 1 frame uisleep to regular sleep
I wasn't getting errors without if (gear_done) then {}; surrounding the
uiSleeps, so I don't quite trust the engine was executing them, I also
question the ability of uisleep to handle single frame precision (but I
haven't tested anything regarding this yet).
This commit is contained in:
@@ -48,7 +48,7 @@ if ((typeOf (unitBackPack player)) != "") then {
|
||||
ctrlActivate (_dialog displayCtrl 157);
|
||||
if (gear_done) then {
|
||||
waitUntil {ctrlShown (_dialog displayCtrl 159)};
|
||||
uisleep 0.001;
|
||||
sleep 0.001;
|
||||
};
|
||||
|
||||
for "_i" from 5000 to (5000 + _count) do {
|
||||
@@ -67,6 +67,6 @@ if ((typeOf (unitBackPack player)) != "") then {
|
||||
};
|
||||
|
||||
(findDisplay 106) closeDisplay 0;
|
||||
if (gear_done) then {uisleep 0.001;};
|
||||
if (gear_done) then {sleep 0.001;};
|
||||
|
||||
_magazineArray;
|
||||
Reference in New Issue
Block a user