Previous 199869 Revisions Next

r33244 Thursday 6th November, 2014 at 17:13:48 UTC by Osso
Fixed MT04990 (nw)
[src/mame/drivers]tumbleb.c
[src/mame/includes]tumbleb.h
[src/mame/video]tumbleb.c

trunk/src/mame/drivers/tumbleb.c
r241755r241756
20262026   save_item(NAME(m_music_is_playing));
20272027
20282028   save_item(NAME(m_control_0));
2029   save_item(NAME(m_flipscreen));
20302029   save_item(NAME(m_tilebank));
20312030}
20322031
r241755r241756
20352034   m_music_command = 0;
20362035   m_music_bank = 0;
20372036   m_music_is_playing = 0;
2038   m_flipscreen = 0;
20392037   m_tilebank = 0;
20402038   memset(m_control_0, 0, sizeof(m_control_0));
20412039}
trunk/src/mame/includes/tumbleb.h
r241755r241756
4040   tilemap_t   *m_pf2_tilemap;
4141   tilemap_t   *m_pf2_alt_tilemap;
4242   UINT16      m_control_0[8];
43   int         m_flipscreen;
4443   UINT16      m_tilebank;
4544
4645   /* devices */
trunk/src/mame/video/tumbleb.c
r241755r241756
304304{
305305   int offs, offs2;
306306
307   m_flipscreen = m_control_0[0] & 0x80;
308   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
307   flip_screen_set(m_control_0[0] & 0x80);
308   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
309309
310   if (m_flipscreen)
310   if (flip_screen())
311311      offs = 1;
312312   else
313313      offs = -1;
314314
315   if (m_flipscreen)
315   if (flip_screen())
316316      offs2 = -3;
317317   else
318318      offs2 = -5;
r241755r241756
326326{
327327   int offs, offs2;
328328
329   m_flipscreen = m_control_0[0] & 0x80;
330   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
329   flip_screen_set(m_control_0[0] & 0x80);
330   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
331331
332   if (m_flipscreen)
332   if (flip_screen())
333333      offs = 1;
334334   else
335335      offs = -1;
336336
337   if (m_flipscreen)
337   if (flip_screen())
338338      offs2 = -3;
339339   else
340340      offs2 = -5;
r241755r241756
347347{
348348   int offs, offs2;
349349
350   m_flipscreen = m_control_0[0] & 0x80;
351   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
350   flip_screen_set(m_control_0[0] & 0x80);
351   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
352352
353   if (m_flipscreen)
353   if (flip_screen())
354354      offs = 1;
355355   else
356356      offs = -1;
357357
358   if (m_flipscreen)
358   if (flip_screen())
359359      offs2 = -3;
360360   else
361361      offs2 = -5;
r241755r241756
368368{
369369   int offsx, offsy, offsx2;
370370
371   m_flipscreen = m_control_0[0] & 0x80;
371   flip_screen_set(m_control_0[0] & 0x80);
372372
373373   offsx = -1;
374374   offsy = 2;
r241755r241756
383383{
384384   int offs, offs2;
385385
386   m_flipscreen = m_control_0[0] & 0x80;
387   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
386   flip_screen_set(m_control_0[0] & 0x80);
387   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
388388
389389   /* not sure of this */
390   if (m_flipscreen)
390   if (flip_screen())
391391      offs = 1;
392392   else
393393      offs = 8;
394394
395395   /* not sure of this */
396   if (m_flipscreen)
396   if (flip_screen())
397397      offs2 = -3;
398398   else
399399      offs2 = 8;
r241755r241756
406406{
407407   int offs, offs2;
408408
409   m_flipscreen = m_control_0[0] & 0x80;
410   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
409   flip_screen_set(m_control_0[0] & 0x80);
410   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
411411   offs = -1;
412412   offs2 = -2;
413413
r241755r241756
420420{
421421   int offs, offs2;
422422
423   m_flipscreen = m_control_0[0] & 0x80;
424   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
423   flip_screen_set(m_control_0[0] & 0x80);
424   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
425425   offs = -1;
426426   offs2 = -5; // foreground scroll..
427427
r241755r241756
435435{
436436   int offs, offs2;
437437
438   m_flipscreen = m_control_0[0] & 0x80;
439   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
438   flip_screen_set(m_control_0[0] & 0x80);
439   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
440440
441   if (m_flipscreen)
441   if (flip_screen())
442442      offs = 1;
443443   else
444444      offs = -1;
445445
446   if (m_flipscreen)
446   if (flip_screen())
447447      offs2 = -3;
448448   else
449449      offs2 = -5;
r241755r241756
457457{
458458   int offs, offs2;
459459
460   m_flipscreen = m_control_0[0] & 0x80;
461   machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
460   flip_screen_set(m_control_0[0] & 0x80);
461   machine().tilemap().set_flip_all(flip_screen() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
462462
463   if (m_flipscreen)
463   if (flip_screen())
464464      offs = 1;
465465   else
466466      offs = -1;
467467
468   if (m_flipscreen)
468   if (flip_screen())
469469      offs2 = -3;
470470   else
471471      offs2 = -5;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team