diff options
author | Matthew Stewart | 2018-06-24 17:20:47 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | cfb5daa8f07b11178d46ec12787b317d7f9ef312 (patch) | |
tree | fe05aeb5db08cdabcf13f21ddc3d184092b0101b /engines/startrek/room.cpp | |
parent | aca19870562fe4dfcd98f3b062bf74dd0dee6daa (diff) | |
download | scummvm-rg350-cfb5daa8f07b11178d46ec12787b317d7f9ef312.tar.gz scummvm-rg350-cfb5daa8f07b11178d46ec12787b317d7f9ef312.tar.bz2 scummvm-rg350-cfb5daa8f07b11178d46ec12787b317d7f9ef312.zip |
STARTREK: Fixes to textboxes
Center the speaker name, and show the choice number when there are
multiple choices.
Diffstat (limited to 'engines/startrek/room.cpp')
-rw-r--r-- | engines/startrek/room.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp index f4d9dd86d0..730d42f73d 100644 --- a/engines/startrek/room.cpp +++ b/engines/startrek/room.cpp @@ -254,7 +254,7 @@ int Room::showRoomSpecificText(const char **array) { Common::String speaker; byte textColor; - if (array[0] != nullptr && array[0][0] != '\0') { // TODO + if (array[0] != nullptr && array[0][0] != '\0') { speaker = Common::String(array[0]); if (speaker.equalsIgnoreCase("Capt. Kirk")) textColor = TEXTCOLOR_YELLOW; @@ -276,7 +276,7 @@ int Room::showRoomSpecificText(const char **array) { else textColor = TEXTCOLOR_YELLOW; - return _vm->showText(&StarTrekEngine::readTextFromArray, (uintptr)array, 20, 20, textColor, true, false, false); + return _vm->showText(&StarTrekEngine::readTextFromArrayWithChoices, (uintptr)array, 20, 20, textColor, true, false, false); } int Room::showText(const TextRef *textIDs) { |