aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-28 11:40:29 +0300
committerEugene Sandulenko2016-07-28 11:40:29 +0300
commit12728cf4ddad2b8a9bd58293398f1af79730c8d9 (patch)
treec7232d61d7031fe042869c4eef66fab87227508f /engines/mads
parentfa071211554663e34b6ecc995d8123aae5d1fdf5 (diff)
downloadscummvm-rg350-12728cf4ddad2b8a9bd58293398f1af79730c8d9.tar.gz
scummvm-rg350-12728cf4ddad2b8a9bd58293398f1af79730c8d9.tar.bz2
scummvm-rg350-12728cf4ddad2b8a9bd58293398f1af79730c8d9.zip
MADS: Fix debug channel initialization
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/mads.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp
index 5776d813cf..414473bb82 100644
--- a/engines/mads/mads.cpp
+++ b/engines/mads/mads.cpp
@@ -38,6 +38,11 @@ namespace MADS {
MADSEngine::MADSEngine(OSystem *syst, const MADSGameDescription *gameDesc) :
_gameDescription(gameDesc), Engine(syst), _randomSource("MADS") {
+ // Set up debug channels
+ DebugMan.addDebugChannel(kDebugPath, "Path", "Pathfinding debug level");
+ DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");
+ DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling");
+
// Initialize game/engine options
_easyMouse = true;
_invObjectsAnimated = true;
@@ -78,11 +83,6 @@ MADSEngine::~MADSEngine() {
}
void MADSEngine::initialize() {
- // Set up debug channels
- DebugMan.addDebugChannel(kDebugPath, "Path", "Pathfinding debug level");
- DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");
- DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling");
-
// Initial sub-system engine references
MSurface::setVm(this);
MSprite::setVm(this);