Previous 15994 Revisions Next

r1001 Tuesday 18th September, 2007 at 15:09:22 UTC by Wilbert Pol
[PCE] The 16 sprite limit check should only count sprites which are actually drawn.
[src/mess/video]vdc.c

src/mess/video/vdc.c
r1000r1001
800800      if ( cgy & 2 )
801801         obj_i &= ~12;
802802
803      sprites_drawn++;
804      if(sprites_drawn > 16)
805      {
806         vdc[which].status |= VDC_OR;
807         if(vdc[which].vdc_data[CR].w&CR_OV)
808            cpunum_set_input_line(0, 0, ASSERT_LINE);
809         continue;  /* Should cause an interrupt */
810      }
803      if (obj_l < obj_h) {
811804
812      if (obj_l < obj_h)
813      {
805         sprites_drawn++;
806         if(sprites_drawn > 16) {
807            vdc[which].status |= VDC_OR;
808            if(vdc[which].vdc_data[CR].w&CR_OV)
809               cpunum_set_input_line(0, 0, ASSERT_LINE);
810            continue;  /* Should cause an interrupt */
811         }
812
814813         cgypos = (obj_l >> 4);
815814         if(vf) cgypos = ((obj_h - 1) >> 4) - cgypos;
816815

Previous 15994 Revisions Next


© 1998-2018 The MESS Team