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:50 +02:00
parent 53fca9dd44
commit 1bc5378f78
3 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,9 @@
D1X-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

@ -925,6 +925,8 @@ void game_disable_cheats()
int game_handler(window *wind, d_event *event, void *data);
extern int netplayerinfo_on;
window *game_setup(void)
{
window *game_wind;
@ -940,6 +942,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

@ -380,7 +380,7 @@ void game_render_frame_mono(int flip)
game_draw_hud_stuff();
#ifdef NETWORK
if (netplayerinfo_on)
if (netplayerinfo_on && Game_mode & GM_MULTI)
show_netplayerinfo();
#endif
}