In briefing_init() init robot angles properly because in show_spinning_robot_frame() robot_angles.h is incremented only but not initialized

This commit is contained in:
zicodxx 2010-09-04 08:17:54 +00:00
parent 34db780dbf
commit 78bbd77b35
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20100904
--------
main/titles.c: In briefing_init() init robot angles properly because in show_spinning_robot_frame() robot_angles.h is incremented only but not initialized
20100903
--------
main/game.h, main/gameseq.c, main/state.c: Reset Fusion_next_sound_time in init_player_stats_level() to hopefully fix Fusion not doing damage or playing sounds

View file

@ -330,7 +330,9 @@ void briefing_init(briefing *br, short level_num)
br->screen = NULL;
gr_init_bitmap_data (&br->background);
strncpy(br->background_name, DEFAULT_BRIEFING_BKG, sizeof(br->background_name));
br->robot_num = 0;
br->robot_canv = NULL;
br->robot_angles.p = br->robot_angles.b = br->robot_angles.h = 0;
br->bitmap_name[0] = '\0';
br->door_dir = 1;
br->door_div_count = 0;