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 167e042d60
commit eba88d78b8
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20071007
--------
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
main/newdemo.c: Reset Rear_view at beginning and end of demo playback
20071006
--------

View file

@ -1281,6 +1281,8 @@ int newdemo_read_demo_start(int rnd_demo)
sbyte i, laser_level;
char current_mission[9];
Rear_view=0;
nd_read_byte((sbyte *)&c);
if ((c != ND_EVENT_START_DEMO) || nd_bad_read) {
newmenu_item m[1];
@ -2952,6 +2954,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,1); // Exit game loop