From 8d3b5621028093f29888c8faac651e35e3892e8c Mon Sep 17 00:00:00 2001 From: raczman Date: Sun, 12 Apr 2009 12:45:17 +0200 Subject: Allow GM's to see invisible/stealthed players correctly. <3 Machiavelli. --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 24d36a42558..addabe73eeb 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17637,7 +17637,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool return false; } - if(u->GetVisibility() == VISIBILITY_OFF) + if(u->GetVisibility() == VISIBILITY_OFF || u->m_invisibilityMask ) { // GMs see any players, not higher GMs and all units if(isGameMaster()) -- cgit v1.2.3