aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorlukaslw2014-07-26 19:15:20 +0200
committerlukaslw2014-07-26 19:15:20 +0200
commit0d1b5533db2ec543f34a51b9a4b0fac0231db411 (patch)
treec41185178ff1335c23fffa5119f90d278f0514d3 /engines
parent7c777e755c7b34e3e5da9f5f28e081a1a478da42 (diff)
downloadscummvm-rg350-0d1b5533db2ec543f34a51b9a4b0fac0231db411.tar.gz
scummvm-rg350-0d1b5533db2ec543f34a51b9a4b0fac0231db411.tar.bz2
scummvm-rg350-0d1b5533db2ec543f34a51b9a4b0fac0231db411.zip
PRINCE: drawScreen() update
Diffstat (limited to 'engines')
-rw-r--r--engines/prince/prince.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index d1a142fab4..14e9e2844b 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -1749,6 +1749,14 @@ void PrinceEngine::freeDrawNodes() {
}
void PrinceEngine::drawScreen() {
+
+ clsMasks();
+
+ _mainHero->showHero();
+ _secondHero->showHero();
+
+ _mainHero->scrollHero();
+
if (!_showInventoryFlag || _inventoryBackgroundRemember) {
const Graphics::Surface *roomSurface;
if (_locationNr != 50) {
@@ -1790,9 +1798,11 @@ void PrinceEngine::drawScreen() {
}
}
+ showBackAnims();
+
showNormAnims();
- showBackAnims();
+ playNextFrame();
showObjects();
@@ -1811,10 +1821,6 @@ void PrinceEngine::drawScreen() {
delete mainHeroSurface;
}
- clsMasks();
-
- playNextFrame();
-
if (!_inventoryBackgroundRemember && !_dialogFlag) {
if (!_optionsFlag) {
_selectedMob = checkMob(_graph->_frontScreen, _mobList, true);
@@ -4465,12 +4471,6 @@ void PrinceEngine::mainLoop() {
if (shouldQuit())
return;
- // TODO: Update all structures, animations, naks, heros etc.
- _mainHero -> showHero();
- if(_mainHero->_visible == 1) {
- _mainHero -> scrollHero();
- }
-
_interpreter->step();
drawScreen();