mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +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)
|
if (gStartNewGame)
|
||||||
{
|
{
|
||||||
STAT_StartNewGame(gVolumeNames[gGameOptions.nEpisode], gGameOptions.nDifficulty);
|
|
||||||
StartLevel(&gGameOptions);
|
StartLevel(&gGameOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
#include "pragmas.h"
|
#include "pragmas.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "baselayer.h"
|
#include "baselayer.h"
|
||||||
|
#include "statistics.h"
|
||||||
|
|
||||||
void RegisterDukeMenus();
|
void RegisterDukeMenus();
|
||||||
void RegisterRedneckMenus();
|
void RegisterRedneckMenus();
|
||||||
|
@ -463,6 +464,7 @@ bool M_SetMenu(FName menu, int param, FName caller)
|
||||||
{
|
{
|
||||||
case NAME_StartGame:
|
case NAME_StartGame:
|
||||||
M_ClearMenus(); // must be done before starting the level.
|
M_ClearMenus(); // must be done before starting the level.
|
||||||
|
STAT_StartNewGame(gVolumeNames[GameStartupInfo.Episode], GameStartupInfo.Skill);
|
||||||
gi->StartGame(GameStartupInfo);
|
gi->StartGame(GameStartupInfo);
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "duke3d.h"
|
#include "duke3d.h"
|
||||||
#include "menus.h"
|
#include "menus.h"
|
||||||
#include "savegame.h"
|
#include "savegame.h"
|
||||||
#include "statistics.h"
|
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
BEGIN_DUKE_NS
|
BEGIN_DUKE_NS
|
||||||
|
|
||||||
|
@ -1340,7 +1339,6 @@ void G_NewGame(int volumeNum, int levelNum, int skillNum)
|
||||||
ud.secretlevel = 0;
|
ud.secretlevel = 0;
|
||||||
ud.skill_voice = -1;
|
ud.skill_voice = -1;
|
||||||
ud.volume_number = volumeNum;
|
ud.volume_number = volumeNum;
|
||||||
STAT_StartNewGame(gVolumeNames[volumeNum], skillNum);
|
|
||||||
|
|
||||||
// we don't want the intro to play after the multiplayer setup screen
|
// we don't want the intro to play after the multiplayer setup screen
|
||||||
if ((!g_netServer && ud.multimode < 2) && !Menu_HaveUserMap()
|
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 "demo.h"
|
||||||
#include "savegame.h"
|
#include "savegame.h"
|
||||||
#include "cmdline.h"
|
#include "cmdline.h"
|
||||||
#include "statistics.h"
|
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
|
|
||||||
BEGIN_RR_NS
|
BEGIN_RR_NS
|
||||||
|
@ -1901,7 +1900,6 @@ void G_NewGame(int volumeNum, int levelNum, int skillNum)
|
||||||
ud.player_skill = skillNum;
|
ud.player_skill = skillNum;
|
||||||
ud.secretlevel = 0;
|
ud.secretlevel = 0;
|
||||||
ud.from_bonus = 0;
|
ud.from_bonus = 0;
|
||||||
STAT_StartNewGame(gVolumeNames[volumeNum], skillNum);
|
|
||||||
|
|
||||||
ud.last_level = -1;
|
ud.last_level = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue