mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- call STAT_StartNewGame globally from the menu
This commit is contained in:
parent
9f25c9c117
commit
4ef9ec6708
4 changed files with 2 additions and 5 deletions
|
@ -1357,7 +1357,6 @@ RESTART:
|
|||
//}
|
||||
if (gStartNewGame)
|
||||
{
|
||||
STAT_StartNewGame(gVolumeNames[gGameOptions.nEpisode], gGameOptions.nDifficulty);
|
||||
StartLevel(&gGameOptions);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
#include "pragmas.h"
|
||||
#include "build.h"
|
||||
#include "baselayer.h"
|
||||
#include "statistics.h"
|
||||
|
||||
void RegisterDukeMenus();
|
||||
void RegisterRedneckMenus();
|
||||
|
@ -463,6 +464,7 @@ bool M_SetMenu(FName menu, int param, FName caller)
|
|||
{
|
||||
case NAME_StartGame:
|
||||
M_ClearMenus(); // must be done before starting the level.
|
||||
STAT_StartNewGame(gVolumeNames[GameStartupInfo.Episode], GameStartupInfo.Skill);
|
||||
gi->StartGame(GameStartupInfo);
|
||||
return false;
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "duke3d.h"
|
||||
#include "menus.h"
|
||||
#include "savegame.h"
|
||||
#include "statistics.h"
|
||||
#include "menu/menu.h"
|
||||
BEGIN_DUKE_NS
|
||||
|
||||
|
@ -1340,7 +1339,6 @@ void G_NewGame(int volumeNum, int levelNum, int skillNum)
|
|||
ud.secretlevel = 0;
|
||||
ud.skill_voice = -1;
|
||||
ud.volume_number = volumeNum;
|
||||
STAT_StartNewGame(gVolumeNames[volumeNum], skillNum);
|
||||
|
||||
// we don't want the intro to play after the multiplayer setup screen
|
||||
if ((!g_netServer && ud.multimode < 2) && !Menu_HaveUserMap()
|
||||
|
|
|
@ -27,7 +27,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "demo.h"
|
||||
#include "savegame.h"
|
||||
#include "cmdline.h"
|
||||
#include "statistics.h"
|
||||
#include "menu/menu.h"
|
||||
|
||||
BEGIN_RR_NS
|
||||
|
@ -1901,7 +1900,6 @@ void G_NewGame(int volumeNum, int levelNum, int skillNum)
|
|||
ud.player_skill = skillNum;
|
||||
ud.secretlevel = 0;
|
||||
ud.from_bonus = 0;
|
||||
STAT_StartNewGame(gVolumeNames[volumeNum], skillNum);
|
||||
|
||||
ud.last_level = -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue