Only call show_netplayerinfo() if GM_MULTI is set and reset netplayerinfo_on in game_setup()

This commit is contained in:
zicodxx 2011-07-04 11:23:53 +02:00
parent c3ddbe0580
commit dc0400205b
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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
}