mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +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);
|
CCS->curh->changeGraphic(ECursor::ADVENTURE, 3);
|
||||||
else if(objAtTile->ID == Obj::HERO && objRelations == PlayerRelations::SAME_PLAYER)
|
else if(objAtTile->ID == Obj::HERO && objRelations == PlayerRelations::SAME_PLAYER)
|
||||||
CCS->curh->changeGraphic(ECursor::ADVENTURE, 2);
|
CCS->curh->changeGraphic(ECursor::ADVENTURE, 2);
|
||||||
|
else
|
||||||
|
CCS->curh->changeGraphic(ECursor::ADVENTURE, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
CCS->curh->changeGraphic(ECursor::ADVENTURE, 0);
|
CCS->curh->changeGraphic(ECursor::ADVENTURE, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user