mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Foxed #943
This commit is contained in:
parent
75283bf0fd
commit
385be09248
@ -2713,7 +2713,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
|
|||||||
//used when hovering -> tooltip message and cursor to be set
|
//used when hovering -> tooltip message and cursor to be set
|
||||||
std::string consoleMsg;
|
std::string consoleMsg;
|
||||||
bool setCursor = true; //if we want to suppress setting cursor
|
bool setCursor = true; //if we want to suppress setting cursor
|
||||||
int cursorType = ECursor::COMBAT, cursorFrame = ECursor::COMBAT_POINTER;
|
int cursorType = ECursor::COMBAT, cursorFrame = ECursor::COMBAT_POINTER; //TODO: is this line used?
|
||||||
|
|
||||||
//used when l-clicking -> action to be called upon the click
|
//used when l-clicking -> action to be called upon the click
|
||||||
std::function<void()> realizeAction;
|
std::function<void()> realizeAction;
|
||||||
@ -3093,6 +3093,9 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
|
|||||||
consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[181]) % sp->name); //No room to place %s here
|
consoleMsg = boost::str(boost::format(CGI->generaltexth->allTexts[181]) % sp->name); //No room to place %s here
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if (myNumber == -1)
|
||||||
|
CCS->curh->changeGraphic(ECursor::COMBAT, ECursor::COMBAT_POINTER); //set neutral cursor over menu etc.
|
||||||
|
else
|
||||||
cursorFrame = ECursor::COMBAT_BLOCKED;
|
cursorFrame = ECursor::COMBAT_BLOCKED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user