Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rts/Sim/Units/CommandAI/BuilderCAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ void CBuilderCAI::ExecuteBuildCmd(Command& c)

// <build> is never parsed (except in PostLoad) so just copy it
build = bi;
// snap to the position the build will actually use, so the early check
// below tests the same footprint the rest of this function does
build.pos = CGameHelper::Pos2BuildPos(build, true);
inCommand = c.GetID();

// One-time early check: if repeating the order (or first run), skip immediately if now blocked
Expand Down