Previous 15994 Revisions Next

r6262 Monday 2nd November, 2009 at 18:36:56 UTC by Harmony
[Odyssey 2] Bugzilla #1517: Multisession issue with Invaders from Hyperspace [Harmony]
Clearing global variables on startup isn't just a good idea, it's the law.
[src/mess/video]odyssey2.c

src/mess/video/odyssey2.c
r6261r6262
606606   int width = video_screen_get_width(screen);
607607   int height = video_screen_get_height(screen);
608608
609   memset(o2_vdc.reg, 0, 0x100);
610
611   o2_snd_shift[0] = o2_snd_shift[1] = 0;
612   x_beam_pos = 0;
613   y_beam_pos = 0;
614   control_status = 0;
615   collision_status = 0;
616   iff = 0;
617   start_vpos = 0;
618   start_vblank = 0;
619   lum = 0;
620   lfsr = 0;
621
609622   o2_snd_shift[0] = machine->sample_rate / 983;
610623   o2_snd_shift[1] = machine->sample_rate / 3933;
611624

Previous 15994 Revisions Next


© 1998-2018 The MESS Team