Skip to content

Commit 9b8e734

Browse files
committed
Fix some residual problems
1 parent 43bf0fa commit 9b8e734

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Ext/TAction/Hooks.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,20 @@ DEFINE_HOOK(0x6E427D, TActionClass_CreateBuildingAt, 0x9)
5151
}
5252
else
5353
{
54+
// Sep 9, 2025 - Starkku: There is some kind of discrepancy between AI and human players
55+
// in how missions are assigned to buildings after unlimbo that I have not been able to figure out.
56+
// Setting IsReadyToCommence to false and forcing missions to flush out any queued ones here is
57+
// for now the safest approach.
58+
pBld->IsReadyToCommence = false;
59+
5460
if (bPlayBuildUp)
5561
{
5662
pBld->ForceMission(Mission::Construction);
5763
}
5864
else
5965
{
60-
pBld->EnterIdleMode(false, false);
66+
pBld->BeginMode(BStateType::Idle);
67+
pBld->ForceMission(Mission::Guard);
6168
pBld->Place(false);
6269
}
6370

0 commit comments

Comments
 (0)