mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Fixed wrongCursorOnFriendlyDwelling
Added else condition that covers cases "ObjectAtTile that is not enemy nor is Town nor is current Hero". This should cover all cases of friendly dwellings/mines not having the correct cursor.
This commit is contained in:
parent
4a21841ce2
commit
42114fa4fc
@ -1755,6 +1755,8 @@ void CAdvMapInt::tileHovered(const int3 &mapPos)
|
||||
CCS->curh->changeGraphic(ECursor::ADVENTURE, 3);
|
||||
else if(objAtTile->ID == Obj::HERO && objRelations == PlayerRelations::SAME_PLAYER)
|
||||
CCS->curh->changeGraphic(ECursor::ADVENTURE, 2);
|
||||
else
|
||||
CCS->curh->changeGraphic(ECursor::ADVENTURE, 0);
|
||||
}
|
||||
else
|
||||
CCS->curh->changeGraphic(ECursor::ADVENTURE, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user