aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/video/subtitle_card.cpp
diff options
context:
space:
mode:
authorTobia Tesan2014-02-22 11:18:05 +0100
committerTobia Tesan2014-10-15 21:36:46 +0200
commit5f25cf1bd731ed2bae852610c74a9917942ab883 (patch)
tree932cd3000270860ffe12e5895f1cb1ee205e4c32 /engines/wintermute/video/subtitle_card.cpp
parentf1ae8e6e8d89f53e8fcd6ffb7eb3faf1e5ab8993 (diff)
downloadscummvm-rg350-5f25cf1bd731ed2bae852610c74a9917942ab883.tar.gz
scummvm-rg350-5f25cf1bd731ed2bae852610c74a9917942ab883.tar.bz2
scummvm-rg350-5f25cf1bd731ed2bae852610c74a9917942ab883.zip
WINTERMUTE: Don't bother inheriting BaseGame in SubtitleCard
Diffstat (limited to 'engines/wintermute/video/subtitle_card.cpp')
-rw-r--r--engines/wintermute/video/subtitle_card.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/wintermute/video/subtitle_card.cpp b/engines/wintermute/video/subtitle_card.cpp
index 971b2c019c..c0ad8cc1d7 100644
--- a/engines/wintermute/video/subtitle_card.cpp
+++ b/engines/wintermute/video/subtitle_card.cpp
@@ -28,16 +28,19 @@
#include "engines/wintermute/video/subtitle_card.h"
#include "engines/wintermute/base/base_game.h"
+
namespace Wintermute {
-SubtitleCard::SubtitleCard(BaseGame *inGame): BaseClass(inGame) {
+SubtitleCard::SubtitleCard(BaseGame *inGame) {
+ _gameRef = inGame;
_startFrame = _endFrame = 0;
}
-SubtitleCard::SubtitleCard(BaseGame *inGame, const Common::String &text, const uint &startFrame, const uint &endFrame): BaseClass(inGame) {
+SubtitleCard::SubtitleCard(BaseGame *inGame, const Common::String &text, const uint &startFrame, const uint &endFrame) {
// TODO: Fix expandStringByStringTable instead of this ugly hack
char *tmp = new char[text.size()];
strcpy(tmp, text.c_str());
+ _gameRef = inGame;
_gameRef->expandStringByStringTable(&tmp);
_text = Common::String(tmp);
_startFrame = startFrame;