Skip to content

Commit

Permalink
Fix building aborted on burning oil wells.
Browse files Browse the repository at this point in the history
Not caused by 24c8416.

Fixes ticket:4379.
  • Loading branch information
Cyp committed May 14, 2016
1 parent 4781bc6 commit 2da9286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action.cpp
Expand Up @@ -1404,7 +1404,7 @@ void actionUpdateDroid(DROID *psDroid)
objTrace(psDroid->id, "DACTION_MOVETOBUILD: !validLocation");
cancelBuild(psDroid);
}
else if (droidStartBuild(psDroid))
else if (droidStartBuild(psDroid) == DroidStartBuildSuccess) // If DroidStartBuildPending, then there's a burning oil well, and we don't want to change to DACTION_BUILD until it stops burning.
{
syncDebug("Reached build target: build");
psDroid->action = DACTION_BUILD;
Expand Down

0 comments on commit 2da9286

Please sign in to comment.