Skip to content

Commit

Permalink
WAGE: Unstub redrawScene()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent 851c2d6 commit 2fba6e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
17 changes: 7 additions & 10 deletions engines/wage/wage.cpp
Expand Up @@ -386,21 +386,18 @@ void WageEngine::onMove(Designed *what, Designed *from, Designed *to) {

void WageEngine::redrawScene() {
Scene *currentScene = _world->_player->_currentScene;
if (currentScene != NULL) {
//bool firstTime = (_lastScene != currentScene);

warning("STUB: WageEngine::redrawScene()");
if (currentScene != NULL) {
bool firstTime = (_lastScene != currentScene);

//updateConsoleForScene(console, currentScene);
//updateSceneViewerForScene(viewer, currentScene);
//viewer.paintImmediately(viewer.getBounds());
//getContentPane().validate();
//getContentPane().repaint();
//console.postUpdateUI();
//soundManager.updateSoundTimerForScene(currentScene, firstTime);
updateSoundTimerForScene(currentScene, firstTime);
}
}

void WageEngine::updateSoundTimerForScene(Scene *scene, bool firstTime) {
//warning("STUB: WageEngine::updateSoundTimerForScene()");
}

void WageEngine::processTurnInternal(Common::String *textInput, Designed *clickInput) {
Scene *playerScene = _world->_player->_currentScene;
if (playerScene == _world->_storageScene)
Expand Down
1 change: 1 addition & 0 deletions engines/wage/wage.h
Expand Up @@ -152,6 +152,7 @@ class WageEngine : public Engine {
void performHealingMagic(Chr *chr, Obj *magicalObject);

void doClose();
void updateSoundTimerForScene(Scene *scene, bool firstTime);

public:
void takeObj(Obj *obj);
Expand Down

0 comments on commit 2fba6e3

Please sign in to comment.