Skip to content

Commit

Permalink
Fix CursorBuilding layer color (especially for base too near of gold …
Browse files Browse the repository at this point in the history
…mine).
  • Loading branch information
Jarod42 committed May 8, 2024
1 parent 9fbeb12 commit f95bf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ static void DrawBuildingCursor()
if (!Selected.empty()) {
bool f = true;
for (size_t i = 0; f && i < Selected.size(); ++i) {
f = ((ontop = CanBuildHere(Selected[i], *CursorBuilding, mpos).value_or(nullptr)) != nullptr);
f = ((ontop = CanBuildHere(Selected[i], *CursorBuilding, mpos)).value_or(nullptr) != nullptr);
// Assign ontop or nullptr
ontop = (ontop == Selected[i] ? nullptr : ontop);
}
Expand Down

0 comments on commit f95bf2b

Please sign in to comment.