Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ AskExitGameCallback
Function
AskExitGameCallback
src/intro_gui.cpp:403–409 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
401
}
402
403
static void AskExitGameCallback(Window *, bool confirmed)
404
{
405
if (confirmed) {
406
_survey.Transmit(NetworkSurveyHandler::Reason::EXIT, true);
407
_exit_game = true;
408
}
409
}
410
411
void AskExitGame()
412
{
Callers
nothing calls this directly
Calls
1
Transmit
Method · 0.80
Tested by
no test coverage detected