mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
API for custom events no longer requires SDL access
This commit is contained in:
@@ -454,7 +454,7 @@ void CBonusSelection::restartMap()
|
||||
close();
|
||||
LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[67], [=]()
|
||||
{
|
||||
LOCPLINT->sendCustomEvent(EUserEvent::RESTART_GAME);
|
||||
GH.pushUserEvent(EUserEvent::RESTART_GAME);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user