aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorPaul Gilbert2011-04-19 21:07:37 +1000
committerPaul Gilbert2011-04-19 21:07:37 +1000
commit95b4713ffaf3be9e31bf54cad71c76aa637de510 (patch)
tree565a80468eb0bed144b2964953fd22c34dfe580e /engines/tsage
parent5dcfd1e32c185e88b09a3ff1341aaf78b674572b (diff)
downloadscummvm-rg350-95b4713ffaf3be9e31bf54cad71c76aa637de510.tar.gz
scummvm-rg350-95b4713ffaf3be9e31bf54cad71c76aa637de510.tar.bz2
scummvm-rg350-95b4713ffaf3be9e31bf54cad71c76aa637de510.zip
TSAGE: Changed Scene::_sceneNumber to avoid confusion with SceneManager::_sceneNumber
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/converse.cpp6
-rw-r--r--engines/tsage/ringworld_scenes1.cpp2
-rw-r--r--engines/tsage/ringworld_scenes10.cpp2
-rw-r--r--engines/tsage/scenes.cpp4
-rw-r--r--engines/tsage/scenes.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/engines/tsage/converse.cpp b/engines/tsage/converse.cpp
index d77e536d5b..57c5c48975 100644
--- a/engines/tsage/converse.cpp
+++ b/engines/tsage/converse.cpp
@@ -530,7 +530,7 @@ void StripManager::start(int stripNum, EventHandler *owner, StripCallback *callb
_stripNum = stripNum;
_callbackObject = callback;
- _sceneNumber = _globals->_sceneManager._scene->_sceneNumber;
+ _sceneNumber = _globals->_sceneManager._scene->_screenNumber;
_sceneBounds = _globals->_sceneManager._scene->_sceneBounds;
_script.clear();
@@ -631,7 +631,7 @@ void StripManager::remove() {
if (_activeSpeaker)
_activeSpeaker->remove();
- if (_sceneNumber != _globals->_sceneManager._scene->_sceneNumber) {
+ if (_sceneNumber != _globals->_sceneManager._scene->_screenNumber) {
_globals->_sceneManager._scene->_sceneBounds = _sceneBounds;
_globals->_sceneManager._scene->loadScene(_sceneNumber);
}
@@ -695,7 +695,7 @@ void StripManager::signal() {
_activeSpeaker->remove();
_activeSpeaker = speakerP;
- if ((_activeSpeaker->_newSceneNumber == -1) && (_globals->_sceneManager._scene->_sceneNumber != _sceneNumber)) {
+ if ((_activeSpeaker->_newSceneNumber == -1) && (_globals->_sceneManager._scene->_screenNumber != _sceneNumber)) {
_globals->_sceneManager._scene->_sceneBounds = _sceneBounds;
_globals->_sceneManager._scene->loadScene(_sceneNumber);
}
diff --git a/engines/tsage/ringworld_scenes1.cpp b/engines/tsage/ringworld_scenes1.cpp
index c8d10e1708..3495df0271 100644
--- a/engines/tsage/ringworld_scenes1.cpp
+++ b/engines/tsage/ringworld_scenes1.cpp
@@ -2424,7 +2424,7 @@ void Scene60::signal() {
void Scene60::process(Event &event) {
Scene::process(event);
- if (_sceneNumber == 60) {
+ if (_screenNumber == 60) {
if (_gfxButton.process(event))
_globals->_sceneManager.changeScene(50);
}
diff --git a/engines/tsage/ringworld_scenes10.cpp b/engines/tsage/ringworld_scenes10.cpp
index 4d413a09fb..5e0cabde6a 100644
--- a/engines/tsage/ringworld_scenes10.cpp
+++ b/engines/tsage/ringworld_scenes10.cpp
@@ -785,7 +785,7 @@ void Scene9400::dispatch() {
void Scene9400::postInit(SceneObjectList *OwnerList) {
Scene::postInit();
- _sceneNumber = 9400;
+ _screenNumber = 9400;
setZoomPercents(0, 100, 200, 100);
_globals->_player.postInit();
_object1.postInit(0);
diff --git a/engines/tsage/scenes.cpp b/engines/tsage/scenes.cpp
index fc82f168ea..8454c7ebd4 100644
--- a/engines/tsage/scenes.cpp
+++ b/engines/tsage/scenes.cpp
@@ -248,7 +248,7 @@ Scene::~Scene() {
void Scene::synchronise(Serialiser &s) {
s.syncAsSint32LE(_field12);
- s.syncAsSint32LE(_sceneNumber);
+ s.syncAsSint32LE(_screenNumber);
s.syncAsSint32LE(_activeScreenNumber);
s.syncAsSint32LE(_sceneMode);
_backgroundBounds.synchronise(s);
@@ -281,7 +281,7 @@ void Scene::dispatch() {
void Scene::loadScene(int sceneNum) {
warning("loadScene(%d)", sceneNum);
- _sceneNumber = sceneNum;
+ _screenNumber = sceneNum;
if (_globals->_scenePalette.loadPalette(sceneNum))
_globals->_sceneManager._hasPalette = true;
diff --git a/engines/tsage/scenes.h b/engines/tsage/scenes.h
index 6353972984..0ac906728f 100644
--- a/engines/tsage/scenes.h
+++ b/engines/tsage/scenes.h
@@ -39,7 +39,7 @@ private:
void drawAltObjects();
public:
int _field12;
- int _sceneNumber;
+ int _screenNumber;
int _activeScreenNumber;
int _sceneMode;
StripManager _stripManager;