Do not show waypoints for enemy units (when SHIFT key is down)

This commit is contained in:
Pali Rohár 2010-09-09 10:11:38 +02:00
parent b2397c05f2
commit fb71b5a463

View file

@ -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;