diff options
author | Strangerke | 2012-03-11 23:06:33 +0100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:23:12 +0200 |
commit | aa184ef1b44832365886eaa9e364b03457f8feee (patch) | |
tree | 11bd8ead887c220f169eb62825c2e6c5e111c880 /engines/mortevielle/mortevielle.cpp | |
parent | 28eaf257038f6ecc86b4138eb683e3fb29d6ed74 (diff) | |
download | scummvm-rg350-aa184ef1b44832365886eaa9e364b03457f8feee.tar.gz scummvm-rg350-aa184ef1b44832365886eaa9e364b03457f8feee.tar.bz2 scummvm-rg350-aa184ef1b44832365886eaa9e364b03457f8feee.zip |
MORTEVIELLE: move couple of functions to menu class, more renaming
Diffstat (limited to 'engines/mortevielle/mortevielle.cpp')
-rw-r--r-- | engines/mortevielle/mortevielle.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/mortevielle/mortevielle.cpp b/engines/mortevielle/mortevielle.cpp index 1ef69a6b5b..b328271fc9 100644 --- a/engines/mortevielle/mortevielle.cpp +++ b/engines/mortevielle/mortevielle.cpp @@ -181,7 +181,7 @@ Common::ErrorCode MortevielleEngine::initialise() { init_nbrepm(); initMouse(); - init_lieu(); + loadPlaces(); _soundOff = false; _largestClearScreen = false; @@ -677,4 +677,22 @@ void MortevielleEngine::handleAction() { } } +/** + * Engine function - Init Places + * @remarks Originally called 'init_lieu' + */ +void MortevielleEngine::loadPlaces() { + Common::File f; + + if (!f.open("MXX.mor")) + error("Missing file - MXX.mor"); + + for (int i = 0; i < 7; ++i) { + for (int j = 0; j < 25; ++j) + _v_lieu[i][j] = f.readByte(); + } + + f.close(); +} + } // End of namespace Mortevielle |