aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/screen.cpp
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-06-21 22:30:43 +0200
committerThierry Crozat2019-07-28 15:09:14 +0100
commit3cf9cfbf78433e81ac5dcc39b31f5fa76983bde4 (patch)
tree883aacdbb2473884e15fc81c8f20fda6316a2850 /engines/supernova/screen.cpp
parenteb2a017a68e965b46881a2b41d9178d5e20b05b2 (diff)
downloadscummvm-rg350-3cf9cfbf78433e81ac5dcc39b31f5fa76983bde4.tar.gz
scummvm-rg350-3cf9cfbf78433e81ac5dcc39b31f5fa76983bde4.tar.bz2
scummvm-rg350-3cf9cfbf78433e81ac5dcc39b31f5fa76983bde4.zip
SUPERNOVA: Merge in the supernova2 engine.
Diffstat (limited to 'engines/supernova/screen.cpp')
-rw-r--r--engines/supernova/screen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/supernova/screen.cpp b/engines/supernova/screen.cpp
index 5a89b40882..5cdbb4ccff 100644
--- a/engines/supernova/screen.cpp
+++ b/engines/supernova/screen.cpp
@@ -263,7 +263,7 @@ void Screen::setTextCursorColor(byte color) {
_textColor = color;
}
-void Screen::renderMessage(StringId stringId, MessagePosition position,
+void Screen::renderMessage(int stringId, MessagePosition position,
Common::String var1, Common::String var2) {
Common::String text = _vm->getGameString(stringId);
@@ -293,7 +293,7 @@ void Screen::renderText(const char *text) {
renderText(text, _textCursorX, _textCursorY, _textColor);
}
-void Screen::renderText(StringId stringId) {
+void Screen::renderText(int stringId) {
renderText(_vm->getGameString(stringId));
}
@@ -357,7 +357,7 @@ void Screen::renderText(const Common::String &text, int x, int y, byte color) {
renderText(text.c_str(), x, y, color);
}
-void Screen::renderText(StringId stringId, int x, int y, byte color) {
+void Screen::renderText(int stringId, int x, int y, byte color) {
renderText(_vm->getGameString(stringId), x, y, color);
}
@@ -458,7 +458,7 @@ void Screen::restoreScreen() {
}
void Screen::renderRoom(Room &room) {
- if (room.getId() == INTRO)
+ if (room.getId() == INTRO1 || room.getId() == INTRO2)
return;
if (setCurrentImage(room.getFileNumber())) {