From 3cf9cfbf78433e81ac5dcc39b31f5fa76983bde4 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Fri, 21 Jun 2019 22:30:43 +0200 Subject: SUPERNOVA: Merge in the supernova2 engine. --- engines/supernova/screen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/supernova/screen.cpp') 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())) { -- cgit v1.2.3