aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-18 19:58:19 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit43cedc4c78a0565df6eb37b9e16ac07ba2e498e7 (patch)
tree47830304f17fde102a9abc3e9b1b95ade41aa163 /engines
parent78d8a8d3c842cfa94b011cf318680d4ad3e71bd0 (diff)
downloadscummvm-rg350-43cedc4c78a0565df6eb37b9e16ac07ba2e498e7.tar.gz
scummvm-rg350-43cedc4c78a0565df6eb37b9e16ac07ba2e498e7.tar.bz2
scummvm-rg350-43cedc4c78a0565df6eb37b9e16ac07ba2e498e7.zip
DM: Add F0003_MAIN_ProcessNewPartyMap_CPSE
Diffstat (limited to 'engines')
-rw-r--r--engines/dm/dm.cpp13
-rw-r--r--engines/dm/dm.h1
2 files changed, 10 insertions, 4 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index a669154ea3..d8eb3b817e 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -109,10 +109,7 @@ void DMEngine::startGame() {
_eventMan->_secondaryMouseInput = gSecondaryMouseInput_Movement;
warning("MISSING CODE: set primary/secondary keyboard input");
- // MISSING CODE: F0003_MAIN_ProcessNewPartyMap_CPSE
- // TODO:(next 2 lines) move to F0003_MAIN_ProcessNewPartyMap_CPSE
- _dungeonMan->setCurrentMapAndPartyMap(0);
- _displayMan->loadCurrentMapGraphics();
+ processNewPartyMap(_dungeonMan->_currMap._currPartyMapIndex);
if (!_dungeonMan->_messages._newGame) {
// MISSING CODE: loading game
@@ -127,6 +124,14 @@ void DMEngine::startGame() {
_gameTimeTicking = true;
}
+void DMEngine::processNewPartyMap(uint16 mapIndex) {
+ warning("MISSING CODE: F0194_GROUP_RemoveAllActiveGroups");
+ _dungeonMan->setCurrentMapAndPartyMap(mapIndex);
+ _displayMan->loadCurrentMapGraphics();
+ warning("MISSING CODE: F0195_GROUP_AddAllActiveGroups");
+ warning("MISSING CODE: F0337_INVENTORY_SetDungeonViewPalette");
+}
+
Common::Error DMEngine::run() {
// scummvm/engine specific
initGraphics(320, 200, false);
diff --git a/engines/dm/dm.h b/engines/dm/dm.h
index 468390dd2b..a900b863bf 100644
--- a/engines/dm/dm.h
+++ b/engines/dm/dm.h
@@ -80,6 +80,7 @@ enum {
class DMEngine : public Engine {
void startGame(); // @ F0462_START_StartGame_CPSF
+ void processNewPartyMap(uint16 mapIndex); // @ F0003_MAIN_ProcessNewPartyMap_CPSE
public:
DMEngine(OSystem *syst);
~DMEngine();