diff options
Diffstat (limited to 'engines/mutationofjb/commands')
-rw-r--r-- | engines/mutationofjb/commands/changecommand.cpp | 4 | ||||
-rw-r--r-- | engines/mutationofjb/commands/talkcommand.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/mutationofjb/commands/changecommand.cpp b/engines/mutationofjb/commands/changecommand.cpp index 73c5357947..9051e8eeaa 100644 --- a/engines/mutationofjb/commands/changecommand.cpp +++ b/engines/mutationofjb/commands/changecommand.cpp @@ -317,13 +317,13 @@ Common::String ChangeCommand::getValueAsString() const { case PF: case PL: case PD: - return Common::String::format("%d", (int)_value._byteVal); + return Common::String::format("%d", static_cast<int>(_value._byteVal)); case SX: case SY: case XX: case XL: case WX: - return Common::String::format("%d", (int)_value._wordVal); + return Common::String::format("%d", static_cast<int>(_value._wordVal)); default: return "(unknown)"; } diff --git a/engines/mutationofjb/commands/talkcommand.cpp b/engines/mutationofjb/commands/talkcommand.cpp index 9857f38f9d..aa10e38cd7 100644 --- a/engines/mutationofjb/commands/talkcommand.cpp +++ b/engines/mutationofjb/commands/talkcommand.cpp @@ -82,7 +82,7 @@ Command::ExecuteResult TalkCommand::execute(ScriptExecutionContext &scriptExeCtx Common::String TalkCommand::debugString() const { const char *modes[] = {"NORMAL", "RAY_AND_BUTTLEG", "CARNIVAL_TICKET_SELLER"}; - return Common::String::format("TALK %s", modes[(int) _mode]); + return Common::String::format("TALK %s", modes[static_cast<int>(_mode)]); } } |