diff options
Diffstat (limited to 'engines/dm/dmglobals.cpp')
-rw-r--r-- | engines/dm/dmglobals.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/dm/dmglobals.cpp b/engines/dm/dmglobals.cpp index c138453c31..044659aa2e 100644 --- a/engines/dm/dmglobals.cpp +++ b/engines/dm/dmglobals.cpp @@ -25,6 +25,7 @@ * maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) */ +#include "common/system.h" #include "dm/dm.h" #include "gfx.h" #include "dungeonman.h" @@ -36,6 +37,8 @@ #include "inventory.h" #include "text.h" #include "movesens.h" +#include "string.h" + namespace DM { @@ -52,4 +55,12 @@ void DMEngine::initArrays() { _dirIntoStepCountNorth[2] = 1; // West _dirIntoStepCountNorth[3] = 0; // South } + +void DMEngine::f19_displayErrorAndStop(int16 errorIndex) { + debug("Stuff hit the fun: "); + debug(Common::String::format("%d", errorIndex).c_str()); + Common::Event event; + while (_system->getEventManager()->pollEvent(event) || true) + ; +} } // End of namespace DM |