mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 01:52:43 +00:00
init mario from save file on network shutdown
This commit is contained in:
parent
c7df4eb071
commit
99b8f31900
1 changed files with 4 additions and 3 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include "game/first_person_cam.h"
|
||||
#include "game/envfx_snow.h"
|
||||
#include "engine/math_util.h"
|
||||
#include "game/mario.h"
|
||||
|
||||
#ifdef DISCORD_SDK
|
||||
#include "pc/discord/discord.h"
|
||||
|
|
@ -673,9 +674,7 @@ void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnect
|
|||
gCurrActStarNum = 0;
|
||||
gCurrActNum = 0;
|
||||
gCurrCreditsEntry = NULL;
|
||||
gLightingDir[0] = 0;
|
||||
gLightingDir[1] = 0;
|
||||
gLightingDir[2] = 0;
|
||||
vec3f_set(gLightingDir, 0xFF, 0xFF, 0xFF);
|
||||
gLightingColor[0][0] = 255;
|
||||
gLightingColor[0][1] = 255;
|
||||
gLightingColor[0][2] = 255;
|
||||
|
|
@ -752,6 +751,8 @@ void network_shutdown(bool sendLeaving, bool exiting, bool popup, bool reconnect
|
|||
|
||||
reset_window_title();
|
||||
|
||||
init_mario_from_save_file();
|
||||
|
||||
djui_panel_shutdown();
|
||||
extern bool gDjuiInMainMenu;
|
||||
if (!gDjuiInMainMenu) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue