1
0
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:
Ewilhan 2019-05-03 06:20:32 +01:00
parent 4a21841ce2
commit 42114fa4fc

View File

@ -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);