mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Fixed Duel mode. Integrated some changes from programmingChallenge branch - it's possible to define duel parameters using JSON.
This commit is contained in:
@ -480,7 +480,11 @@ void CBattleResultWindow::bExitf()
|
||||
{
|
||||
if(LOCPLINT->cb->getStartInfo()->mode == StartInfo::DUEL)
|
||||
{
|
||||
std::exit(0);
|
||||
SDL_Event ev;
|
||||
ev.type = SDL_QUIT;
|
||||
ev.user.code = 0;
|
||||
SDL_PushEvent(&ev);
|
||||
return;
|
||||
}
|
||||
|
||||
CPlayerInterface * intTmp = owner->curInt;
|
||||
|
Reference in New Issue
Block a user