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:
parent
d366d92838
commit
e45bb6b2bf
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue