Skip to content

Commit

Permalink
DM: Add fix gDungeonViewport, some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent afd844b commit 4b83ebc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions engines/dm/dm.cpp
Expand Up @@ -171,6 +171,7 @@ void DMEngine::gameloop() {

warning("DUMMY CODE: setting InventoryMan::_inventoryChampionOrdinal to zero");
_inventoryMan->_inventoryChampionOrdinal = 0;
warning("DUMMY CODE: clearing screen to black");
while (true) {
_stopWaitingForPlayerInput = false;
//do {
Expand All @@ -179,6 +180,7 @@ void DMEngine::gameloop() {
//} while (!_stopWaitingForPlayerInput || !_gameTimeTicking);

if (!_inventoryMan->_inventoryChampionOrdinal && !_championMan->_partyIsSleeping) {
_displayMan->clearScreen(kColorBlack); // dummy code
_displayMan->drawDungeon(_dungeonMan->_currMap._partyDir, _dungeonMan->_currMap._partyPosX, _dungeonMan->_currMap._partyPosY);
}
// DUMMY CODE: next line
Expand Down
2 changes: 1 addition & 1 deletion engines/dm/gfx.cpp
Expand Up @@ -548,7 +548,7 @@ byte gPalChangesCreature_D2[16] = {0, 10, 20, 30, 40, 30, 60, 70, 50, 0, 0, 110,

Viewport gDefultViewPort = {0, 0};
// TODO: I guessed the numbers
Viewport gDungeonViewport = {0, 64}; // @ G0296_puc_Bitmap_Viewport
Viewport gDungeonViewport = {0, 33}; // @ G0296_puc_Bitmap_Viewport

byte gPalChangesNoChanges[16] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150}; // @ G0017_auc_Graphic562_PaletteChanges_NoChanges

Expand Down
2 changes: 1 addition & 1 deletion engines/dm/menus.h
Expand Up @@ -15,7 +15,7 @@ class MenuMan {
void clearActingChampion(); // @ F0388_MENUS_ClearActingChampion
void drawActionIcon(ChampionIndex championIndex); // @ F0386_MENUS_DrawActionIcon

void drawMovementArrows();
void drawMovementArrows(); // @ F0395_MENUS_DrawMovementArrows
void drawDisabledMenu(); // @ F0456_START_DrawDisabledMenus
};

Expand Down

0 comments on commit 4b83ebc

Please sign in to comment.