Skip to content

Commit

Permalink
fixes #4656: show crosshair cursor when targeting own units and struc…
Browse files Browse the repository at this point in the history
…tures (patch 2/2)
  • Loading branch information
Forgon2100 committed May 7, 2018
1 parent b817ab8 commit fb354bd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/display3d.cpp
Expand Up @@ -2762,10 +2762,6 @@ static void drawStructureSelections()

for (i = 0; i < MAX_PLAYERS; i++)
{
if (i == selectedPlayer)
{
continue; // not interesting in our own buildings
}
for (psStruct = apsStructLists[i]; psStruct; psStruct = psStruct->psNext)
{
/* If it's targetted and on-screen */
Expand Down Expand Up @@ -3047,7 +3043,7 @@ static void drawDroidSelections()
{
drawDroidOrder(psDroid);
}
if (i != selectedPlayer && !psDroid->died && psDroid->sDisplay.frameNumber == currentGameFrame)
if (!psDroid->died && psDroid->sDisplay.frameNumber == currentGameFrame)
{
/* If it's selected */
if (psDroid->flags.test(OBJECT_FLAG_TARGETED) && psDroid->visible[selectedPlayer] == UBYTE_MAX)
Expand Down

0 comments on commit fb354bd

Please sign in to comment.