Reset Rear_view at beginning and end of demo playback

This commit is contained in:
zicodxx 2007-10-07 14:46:52 +00:00
parent b31fd2367e
commit 3ef8539d83
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ D2X-Rebirth Changelog
--------
main/collide.c, main/laser.c: Changed collision handling between robots and controlcen; Aligned constant sounds to GameTime; Using turn radius of 0x0024*F1_0 for all homing objects while not aligning smart blobs to movement vector
arch/ogl/ogl.c, main/gauges.h: Changed name for Window Boxes - preventing redundancy in Windows build
main/newdemo.c: Reset Rear_view at beginning and end of demo playback
20071006
--------

View file

@ -1434,6 +1434,8 @@ int newdemo_read_demo_start(int rnd_demo)
sbyte c, energy, shield;
char text[128], current_mission[9];
Rear_view=0;
nd_read_byte(&c);
if ((c != ND_EVENT_START_DEMO) || nd_bad_read) {
newmenu_item m[1];
@ -3259,6 +3261,7 @@ void newdemo_stop_playback()
#endif
strncpy(Players[Player_num].callsign, nd_save_callsign, CALLSIGN_LEN);
Cockpit_mode = Newdemo_old_cockpit;
Rear_view=0;
Game_mode = GM_GAME_OVER;
Function_mode = FMODE_MENU;
longjmp(LeaveGame,0); // Exit game loop