mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Add hotkey to track human player hero in MP. Fixed broken 'toggle grid'
hotkey
This commit is contained in:
@ -302,7 +302,7 @@ bool MapViewController::isEventVisible(const CGObjectInstance * obj, const Playe
|
||||
{
|
||||
if (LOCPLINT->makingTurn)
|
||||
return false;
|
||||
if (LOCPLINT->cb->getStartInfo()->playerInfos.at(initiator).isControlledByHuman())
|
||||
if (LOCPLINT->cb->getStartInfo()->playerInfos.at(initiator).isControlledByHuman() && !settings["session"]["adventureTrackHero"].Bool())
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@ bool MapViewController::isEventVisible(const CGHeroInstance * obj, const int3 &
|
||||
{
|
||||
if (LOCPLINT->makingTurn)
|
||||
return false;
|
||||
if (LOCPLINT->cb->getStartInfo()->playerInfos.at(obj->getOwner()).isControlledByHuman())
|
||||
if (LOCPLINT->cb->getStartInfo()->playerInfos.at(obj->getOwner()).isControlledByHuman() && !settings["session"]["adventureTrackHero"].Bool())
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user