Do not show waypoints for enemy units when SHIFT key is pressed down.

Fix by Pali Rohár in the stratagus engine 
(http://bazaar.launchpad.net/~stratagus/stratagus/trunk/revision/7857).

Reported by cybermind (https://bugs.launchpad.net/stratagus/+bug/633863).
This commit is contained in:
feb 2012-01-08 12:11:40 +00:00
parent d366d92838
commit e45bb6b2bf

View file

@ -609,6 +609,10 @@ void ShowOrder(const CUnit *unit)
if (unit->Destroyed) {
return;
}
if (unit->Player != ThisPlayer && !ThisPlayer->IsAllied(unit)) {
return;
}
// Get current position
x1 = CurrentViewport->Map2ViewportX(