mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
changed most of std::cout to tlogX
Alt+F4 quits the game
This commit is contained in:
@ -81,8 +81,8 @@ void CGarrisonSlot::hover (bool on)
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Warning - shouldn't be - highlighted void slot "<<owner->highlighted<<std::endl;
|
||||
std::cout << "Highlighted set to NULL"<<std::endl;
|
||||
tlog2 << "Warning - shouldn't be - highlighted void slot "<<owner->highlighted<<std::endl;
|
||||
tlog2 << "Highlighted set to NULL"<<std::endl;
|
||||
owner->highlighted = NULL;
|
||||
}
|
||||
}
|
||||
@ -1721,6 +1721,14 @@ void CPlayerInterface::handleKeyDown(SDL_Event *sEvent)
|
||||
LOCPLINT->adventureInt->scrollingDown = true;
|
||||
break;
|
||||
}
|
||||
case (SDLK_F4):
|
||||
{
|
||||
if(sEvent->key.keysym.mod & KMOD_LALT) //Alt+F4
|
||||
{
|
||||
exit(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
//case (SDLK_q):
|
||||
// {
|
||||
// exit(0);
|
||||
|
Reference in New Issue
Block a user