aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 46190d12be..406c3cc616 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -34,7 +34,6 @@ Scene::Scene(MADSEngine *vm): _vm(vm) {
_priorSceneId = 0;
_nextSceneId = 0;
_currentSceneId = 0;
- _vocabCount = 0;
_vocabBuffer = nullptr;
_sceneLogic = nullptr;
}
@@ -81,7 +80,7 @@ void Scene::clearDynamicHotspots() {
void Scene::clearVocab() {
freeVocab();
- _vocabCount = 0;
+ _activeVocabs.clear();
}
void Scene::freeVocab() {
@@ -105,20 +104,6 @@ int Scene::activeVocabIndexOf(int vocabId) {
return -1;
}
-void Scene::addVisitedScene(int sceneId) {
- if (!visitedScenesExists(sceneId))
- _visitedScenes.push_back(sceneId);
-}
-
-bool Scene::visitedScenesExists(int sceneId) {
- for (int i = 0; i < _visitedScenes.size(); ++i) {
- if (_visitedScenes[i] == sceneId)
- return true;
- }
-
- return false;
-}
-
void Scene::loadScene() {
delete _sceneLogic;