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
|
||||
|
||||
20110704
|
||||
--------
|
||||
main/game.c, main/gamerend.c: Only call show_netplayerinfo() if GM_MULTI is set and reset netplayerinfo_on in game_setup()
|
||||
|
||||
20110702
|
||||
--------
|
||||
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));
|
||||
}
|
||||
|
||||
extern int netplayerinfo_on;
|
||||
|
||||
// game_setup()
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
@ -1089,6 +1091,7 @@ window *game_setup(void)
|
|||
reset_palette_add();
|
||||
init_cockpit();
|
||||
init_gauges();
|
||||
netplayerinfo_on = 0;
|
||||
|
||||
#ifdef EDITOR
|
||||
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.
|
||||
|
||||
#ifdef NETWORK
|
||||
if (netplayerinfo_on)
|
||||
if (netplayerinfo_on && Game_mode & GM_MULTI)
|
||||
show_netplayerinfo();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue