Only call show_netplayerinfo() if GM_MULTI is set and reset netplayerinfo_on in game_setup()
This commit is contained in:
parent
c3ddbe0580
commit
dc0400205b
|
@ -1,5 +1,9 @@
|
||||||
D2X-Rebirth Changelog
|
D2X-Rebirth Changelog
|
||||||
|
|
||||||
|
20110704
|
||||||
|
--------
|
||||||
|
main/game.c, main/gamerend.c: Only call show_netplayerinfo() if GM_MULTI is set and reset netplayerinfo_on in game_setup()
|
||||||
|
|
||||||
20110702
|
20110702
|
||||||
--------
|
--------
|
||||||
main/ai.c: When initializing ai object correctly initialize Ai_local_info to prevent glitches like random submodel angles
|
main/ai.c: When initializing ai object correctly initialize Ai_local_info to prevent glitches like random submodel angles
|
||||||
|
|
|
@ -1069,6 +1069,8 @@ void game_disable_cheats()
|
||||||
memset(&cheats, 0, sizeof(cheats));
|
memset(&cheats, 0, sizeof(cheats));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int netplayerinfo_on;
|
||||||
|
|
||||||
// game_setup()
|
// game_setup()
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1089,6 +1091,7 @@ window *game_setup(void)
|
||||||
reset_palette_add();
|
reset_palette_add();
|
||||||
init_cockpit();
|
init_cockpit();
|
||||||
init_gauges();
|
init_gauges();
|
||||||
|
netplayerinfo_on = 0;
|
||||||
|
|
||||||
#ifdef EDITOR
|
#ifdef EDITOR
|
||||||
if (Segments[ConsoleObject->segnum].segnum == -1) //segment no longer exists
|
if (Segments[ConsoleObject->segnum].segnum == -1) //segment no longer exists
|
||||||
|
|
|
@ -733,7 +733,7 @@ void game_render_frame_mono(int flip)
|
||||||
show_extra_views(); //missile view, buddy bot, etc.
|
show_extra_views(); //missile view, buddy bot, etc.
|
||||||
|
|
||||||
#ifdef NETWORK
|
#ifdef NETWORK
|
||||||
if (netplayerinfo_on)
|
if (netplayerinfo_on && Game_mode & GM_MULTI)
|
||||||
show_netplayerinfo();
|
show_netplayerinfo();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue