Only call show_netplayerinfo() if GM_MULTI is set and reset netplayerinfo_on in game_setup()
This commit is contained in:
parent
53fca9dd44
commit
1bc5378f78
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue