Skip to content

Commit

Permalink
Corrected sleep action as these specific jobs don't need to actually …
Browse files Browse the repository at this point in the history
…delay all other jobs
  • Loading branch information
SMUnlimited committed Dec 7, 2024
1 parent 46a1838 commit 5931f1d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Jobs/FOCUSFIRE_CONTROL.eai
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function FocusEnemyUnitsNearGroup takes group g returns nothing
set u = FirstOfGroup(g)
exitwhen u == null
if (ModuloInteger(i, 200) == 0) then
call TQSleep(0.1)
call Sleep(0.1)
endif
set unit_life = GetUnitState(u, UNIT_STATE_LIFE)
if unit_life > 0 and not IsUnitHidden(u) then
Expand Down
2 changes: 1 addition & 1 deletion Jobs/MICRO_HERO.eai
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function GetDensities takes location l, player p, real r returns nothing
set u = FirstOfGroup(g)
exitwhen u == null
if (ModuloInteger(i, 200) == 0) then
call TQSleep(0.1)
call Sleep(0.1)
endif
if UnitAlive(u) then
set ul = GetUnitLoc(u)
Expand Down
2 changes: 1 addition & 1 deletion Jobs/RETREAT_CONTROL.eai
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ if attack_running then
exitwhen u == null
set unit_strength = GetUnitStrength(u)
if (ModuloInteger(i, 200) == 0) then
call TQSleep(0.1)
call Sleep(0.1)
endif
// set unit_life = GetUnitState(u, UNIT_STATE_LIFE)
// set unit_mana = GetUnitState(u, UNIT_STATE_MANA)
Expand Down
2 changes: 1 addition & 1 deletion common.eai
Original file line number Diff line number Diff line change
Expand Up @@ -5252,7 +5252,7 @@ function ReleaseTQLock takes nothing returns nothing
set tq_lock = true
endfunction

// To run a sleep within the job thread, will delay all other jobs as well
// To run a sleep within the job thread, that will delay all other jobs as well
function TQSleep takes real time returns nothing
local integer i = 1
call GetTQLock()
Expand Down

0 comments on commit 5931f1d

Please sign in to comment.