Resetting DemoDoLeft/Right correctly at start of each demo
This commit is contained in:
parent
61e67d9fe9
commit
1e6251a6ee
|
@ -8,6 +8,7 @@ arch/sdl/window.c, main/automap.c, main/escort.c, main/game.c, main/gamecntl.c,
|
||||||
main/kconfig.c, main/newmenu.c: Tidy up newmenu_show/hide_cursor calls
|
main/kconfig.c, main/newmenu.c: Tidy up newmenu_show/hide_cursor calls
|
||||||
main/newmenu.c: Allow user to abort close, for whatever reason (helps with my next commit)
|
main/newmenu.c: Allow user to abort close, for whatever reason (helps with my next commit)
|
||||||
main/gamesave.c, main/newdemo.c, main/object.c, main/object.h, main/state.c: Improved Object signature assignment and made sure there will be no duplicates; Also used short-ranged values only so Demo system won't screw up
|
main/gamesave.c, main/newdemo.c, main/object.c, main/object.h, main/state.c: Improved Object signature assignment and made sure there will be no duplicates; Also used short-ranged values only so Demo system won't screw up
|
||||||
|
main/newdemo.c: Resetting DemoDoLeft/Right correctly at start of each demo
|
||||||
|
|
||||||
20100127
|
20100127
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -3585,8 +3585,8 @@ void newdemo_start_playback(char * filename)
|
||||||
Function_mode = FMODE_GAME;
|
Function_mode = FMODE_GAME;
|
||||||
init_seismic_disturbances();
|
init_seismic_disturbances();
|
||||||
Newdemo_dead = Newdemo_rear = Newdemo_guided = 0;
|
Newdemo_dead = Newdemo_rear = Newdemo_guided = 0;
|
||||||
PlayerCfg.Cockpit3DView[0] = CV_NONE; //turn off 3d views on cockpit
|
PlayerCfg.Cockpit3DView[0] = PlayerCfg.Cockpit3DView[1] = CV_NONE; //turn off 3d views on cockpit
|
||||||
PlayerCfg.Cockpit3DView[1] = CV_NONE; //turn off 3d views on cockpit
|
DemoDoLeft = DemoDoRight = 0;
|
||||||
HUD_clear_messages();
|
HUD_clear_messages();
|
||||||
newdemo_playback_one_frame(); // this one loads new level
|
newdemo_playback_one_frame(); // this one loads new level
|
||||||
newdemo_playback_one_frame(); // get all of the objects to renderb game
|
newdemo_playback_one_frame(); // get all of the objects to renderb game
|
||||||
|
|
Loading…
Reference in a new issue