diff options
author | Filippos Karapetis | 2010-10-07 15:30:30 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-10-07 15:30:30 +0000 |
commit | 8fcd25bccec61cdee86e2d28eed19a7395dc3b9f (patch) | |
tree | 62dc7eab651cbe078e624c5ce5f3e126000d694d | |
parent | 95118b172e2b2d545f6cdfe32119ce28b062bfd4 (diff) | |
download | scummvm-rg350-8fcd25bccec61cdee86e2d28eed19a7395dc3b9f.tar.gz scummvm-rg350-8fcd25bccec61cdee86e2d28eed19a7395dc3b9f.tar.bz2 scummvm-rg350-8fcd25bccec61cdee86e2d28eed19a7395dc3b9f.zip |
SCI: Added a define to disable room transitions
This is only useful for development, for speedy runs of games, and should NOT be
used in general, as it may introduce graphics glitches
svn-id: r53049
-rw-r--r-- | engines/sci/graphics/transitions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/graphics/transitions.cpp b/engines/sci/graphics/transitions.cpp index bd5e061094..3f4ce7bbc8 100644 --- a/engines/sci/graphics/transitions.cpp +++ b/engines/sci/graphics/transitions.cpp @@ -37,6 +37,8 @@ namespace Sci { +//#define DISABLE_TRANSITIONS // uncomment to disable room transitions (for development only! helps in testing games quickly) + GfxTransitions::GfxTransitions(GfxScreen *screen, GfxPalette *palette, bool isVGA) : _screen(screen), _palette(palette), _isVGA(isVGA) { init(); @@ -116,7 +118,11 @@ void GfxTransitions::init() { void GfxTransitions::setup(int16 number, bool blackoutFlag) { if (number != -1) { +#ifndef DISABLE_TRANSITIONS _number = number; +#else + _number = SCI_TRANSITIONS_NONE; +#endif _blackoutFlag = blackoutFlag; } } |