1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

better start menu switching for online

This commit is contained in:
Zeno Rogue 2018-02-12 16:21:19 +01:00
parent 6cf800859e
commit 11d7b6e9e4
2 changed files with 4 additions and 1 deletions

View File

@ -61,8 +61,10 @@ int main(int argc, const char **argv) {
#if CAP_COMMANDLINE
arg::read(3);
#endif
#if !ISWEB
if(showstartmenu)
pushScreen(showStartMenu);
#endif
mainloop();
finishAll();
profile_info();

View File

@ -136,7 +136,8 @@ void initweb() {
rug::renderonce = true;
// toggleanim(false);
emscripten_set_fullscreenchange_callback(0, NULL, false, fsc_callback);
pushScreen(showDemo);
printf("showstartmenu = %d\n", showstartmenu);
if(showstartmenu) pushScreen(showDemo);
}
transmatrix getOrientation() {