Previous 199869 Revisions Next

r20296 Thursday 17th January, 2013 at 11:36:47 UTC by Oliver Stöneberg
fixed some clang warnings (nw)
[src/mame/drivers]mpu4hw.c
[src/mame/machine]vsnes.c
[src/mame/video]carpolo.c

trunk/src/mame/drivers/mpu4hw.c
r20295r20296
277277
278278   lamp_ext_data = 0x1f - ((data & 0xf8) >> 3);//remove the mux lines from the data
279279
280   if ((state->m_lamp_strobe_ext_persistence == 0))
280   if (state->m_lamp_strobe_ext_persistence == 0)
281281   //One write to reset the drive lines, one with the data, one to clear the lines, so only the 2nd write does anything
282282   //Once again, lamp persistences would take care of this, but we can't do that
283283   {
trunk/src/mame/machine/vsnes.c
r20295r20296
657657   if (scanline < PPU_BOTTOM_VISIBLE_SCANLINE)
658658   {
659659      int priorCount = state->m_IRQ_count;
660      if ((state->m_IRQ_count == 0))
660      if (state->m_IRQ_count == 0)
661661      {
662662         state->m_IRQ_count = state->m_IRQ_count_latch;
663663      }
trunk/src/mame/video/carpolo.c
r20295r20296
427427
428428      for (x = x1; x < x1 + SPRITE_WIDTH; x++)
429429         for (y = y1; y < y1 + SPRITE_HEIGHT; y++)
430            if ((state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1))
430            if (state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1)
431431            {
432432               pen_t pix = state->m_sprite_goal_collision_bitmap2->pix16(y, x);
433433
r20295r20296
485485
486486      for (x = x1; x < x1 + SPRITE_WIDTH; x++)
487487         for (y = y1; y < y1 + SPRITE_HEIGHT; y++)
488            if ((state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1))
488            if (state->m_sprite_goal_collision_bitmap1->pix16(y, x) == 1)
489489            {
490490               pen_t pix = state->m_sprite_goal_collision_bitmap2->pix16(y, x);
491491
r20295r20296
525525
526526   for (x = 0; x < SPRITE_WIDTH; x++)
527527      for (y = 0; y < SPRITE_HEIGHT; y++)
528         if ((state->m_sprite_border_collision_bitmap->pix16(y, x) == 1))
528         if (state->m_sprite_border_collision_bitmap->pix16(y, x) == 1)
529529         {
530530            if (((UINT8)(x1 + x) == LEFT_BORDER) ||
531531               ((UINT8)(x1 + x) == RIGHT_BORDER))

Previous 199869 Revisions Next


© 1997-2024 The MAME Team