aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/animation.h6
-rw-r--r--engines/draci/game.cpp7
2 files changed, 11 insertions, 2 deletions
diff --git a/engines/draci/animation.h b/engines/draci/animation.h
index a6ab07a9a4..cc339084e3 100644
--- a/engines/draci/animation.h
+++ b/engines/draci/animation.h
@@ -34,7 +34,11 @@ namespace Draci {
* Animation IDs for those animations that don't have their IDs
* specified in the data files.
*/
-enum { kOverlayImage = -1, kWalkingMapOverlay = -2, kTitleText = -3, kUnused = -4 };
+enum { kOverlayImage = -1,
+ kWalkingMapOverlay = -2,
+ kTitleText = -3,
+ kSpeechText = -4,
+ kUnused = -5 };
/**
* Default argument to Animation::getFrame() that makes it return
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index 4f83f135c6..a0e0acbe85 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -204,9 +204,14 @@ void Game::init() {
// Initialize animation for object / room titles
Animation *titleAnim = _vm->_anims->addText(kTitleText, true);
- Text *title = new Text ("", _vm->_bigFont, kFontColour3, 0, 0);
+ Text *title = new Text("", _vm->_bigFont, kFontColour3, 0, 0);
titleAnim->addFrame(title);
+ // Initialize animation for speech text
+ Animation *speechAnim = _vm->_anims->addText(kSpeechText, true);
+ Text *speech = new Text("", _vm->_bigFont, kFontColour1, 0, 0);
+ speechAnim->addFrame(speech);
+
loadObject(kDragonObject);
GameObject *dragon = getObject(kDragonObject);