Do not show waypoints for enemy units (when SHIFT key is down)
This commit is contained in:
parent
b2397c05f2
commit
fb71b5a463
1 changed files with 4 additions and 0 deletions
|
@ -846,6 +846,10 @@ void ShowOrder(const CUnit *unit)
|
|||
return;
|
||||
}
|
||||
|
||||
if (unit->Player != ThisPlayer && !ThisPlayer->IsAllied(unit)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Get current position
|
||||
x1 = CurrentViewport->Map2ViewportX(
|
||||
unit->X) + unit->IX + unit->Type->TileWidth * TileSizeX / 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue