Skip to content

Commit

Permalink
Remove unessecary check for upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
SMUnlimited committed Mar 10, 2024
1 parent d2061b8 commit 2ba054a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.eai
Expand Up @@ -10251,7 +10251,7 @@ function StartUnitAM takes integer ask_qty, integer unitid, integer town, intege
//

if needed3[unitid] == UPGRADED then
if (needed1[unitid] != 0 and GetUnitCountEx(needed1[unitid],true,town) < 1) or (needed2[unitid] != 0 and TownCountDone(needed2[unitid]) < 1) then
if (needed1[unitid] != 0 and GetUnitCountEx(needed1[unitid],true,town) < 1) then
return CANNOT_BUILD
endif
endif
Expand Down

0 comments on commit 2ba054a

Please sign in to comment.