Skip to content

Commit

Permalink
STARTREK: Allow lowercase for mission names in console commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Aug 17, 2019
1 parent fe62841 commit 1641bd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/startrek/console.cpp
Expand Up @@ -44,6 +44,7 @@ bool Console::Cmd_Room(int argc, const char **argv) {
}

_vm->_missionToLoad = argv[1];
_vm->_missionToLoad.toUppercase();
_vm->_roomIndexToLoad = atoi(argv[2]);
_vm->runAwayMission();

Expand All @@ -55,6 +56,7 @@ bool Console::Cmd_Actions(int argc, const char **argv) {

if (argc == 3) {
Common::String missionName = argv[1];
missionName.toUppercase();
int roomIndex = atoi(argv[2]);

screenName = missionName + (char)(roomIndex + '0');
Expand Down

0 comments on commit 1641bd3

Please sign in to comment.