TSAGE: Slight re-ordering of method calls in SceneHandler::dispatch

This fixes a problem in the title screen where the game title briefly appeared at full size.
This commit is contained in:
Paul Gilbert 2011-04-09 15:12:17 +10:00
parent a79ba2b4f4
commit b912b3662a
2 changed files with 9 additions and 3 deletions

View File

@ -3513,9 +3513,14 @@ void SceneHandler::dispatch() {
while (_globals->_events.getEvent(event))
process(event);
_globals->_sceneManager.checkScene();
_globals->_sceneObjects->draw();
// Handle drawing the contents of the scene
if (_globals->_sceneManager._scene)
_globals->_sceneObjects->draw();
// Check to see if any scene change is required
_globals->_sceneManager.checkScene();
// Signal the ScummVM debugger
_vm->_debugger->onFrame();
// Delay between frames

View File

@ -2965,7 +2965,7 @@ void Scene6100::Action5::dispatch() {
}
scene->_objList[idx]->_flags |= OBJFLAG_PANES;
/*
if ((idx != 3) && (scene->_fadePercent == 100) &&
(tempSet.sqrt(floatSet) < 150.0)) {
switch (scene->_field_312++) {
@ -2997,6 +2997,7 @@ void Scene6100::Action5::dispatch() {
_globals->_scenePalette.clearListeners();
scene->_fadePercent = 0;
}
*/
}
}