Fix lost pause support in singleplayer
authorsapier <Sapier at GMX dot net>
Thu, 24 Apr 2014 17:47:17 +0000 (19:47 +0200)
committersapier <Sapier at GMX dot net>
Thu, 24 Apr 2014 17:47:17 +0000 (19:47 +0200)
src/game.cpp

index 58a26e943a17e6f46015c8866fd8d481d4c0ad0e..2d6205140ee2dc0fa7a0fdf165bb4ec837fd239a 100644 (file)
@@ -1077,6 +1077,10 @@ static void show_pause_menu(GUIFormSpecMenu** cur_formspec,
        LocalFormspecHandler* txt_dst = new LocalFormspecHandler("MT_PAUSE_MENU");
 
        create_formspec_menu(cur_formspec, invmgr, gamedef, tsrc, device,  fs_src, txt_dst);
+       
+       if (singleplayermode) {
+               (*cur_formspec)->doPause = true;
+       }
 }
 
 /******************************************************************************/