aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/scenes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tsage/scenes.cpp')
-rw-r--r--engines/tsage/scenes.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/engines/tsage/scenes.cpp b/engines/tsage/scenes.cpp
index 9a175ea08f..53e48a1d21 100644
--- a/engines/tsage/scenes.cpp
+++ b/engines/tsage/scenes.cpp
@@ -22,14 +22,11 @@
#include "tsage/scenes.h"
#include "tsage/globals.h"
-#include "tsage/ringworld_logic.h"
+#include "tsage/ringworld/ringworld_logic.h"
#include "tsage/tsage.h"
#include "tsage/saveload.h"
-namespace tSage {
-
-// TODO: Doesn't seem to be ever set
-const bool _v52C9F = false;
+namespace TsAGE {
SceneManager::SceneManager() {
_scene = NULL;
@@ -427,6 +424,11 @@ void Scene::refreshBackground(int xAmount, int yAmount) {
(xSectionSrc + 1) * 160, (ySectionSrc + 1) * 100);
Rect destBounds(xSectionDest * 160, ySectionDest * 100,
(xSectionDest + 1) * 160, (ySectionDest + 1) * 100);
+ if (_vm->getGameID() == GType_BlueForce) {
+ // For Blue Force, if the scene has an interface area, exclude it from the copy
+ srcBounds.bottom = MIN<int16>(srcBounds.bottom, BF_GLOBALS._interfaceY);
+ destBounds.bottom = MIN<int16>(destBounds.bottom, BF_GLOBALS._interfaceY);
+ }
_backSurface.copyFrom(_backSurface, srcBounds, destBounds);
}
@@ -504,11 +506,6 @@ void Scene::setZoomPercents(int yStart, int minPercent, int yEnd, int maxPercent
_zoomPercents[yEnd++] = minPercent;
}
-byte *Scene::preloadVisage(int resNum) {
- assert(!_v52C9F);
- return _resourceManager->getResource(RES_VISAGE, resNum, 9999, false);
-}
-
/*--------------------------------------------------------------------------*/
void Game::execute() {
@@ -527,4 +524,4 @@ void Game::execute() {
} while (activeFlag && !_vm->shouldQuit());
}
-} // End of namespace tSage
+} // End of namespace TsAGE