diff options
author | sluicebox | 2019-03-27 12:19:11 -0700 |
---|---|---|
committer | sluicebox | 2019-03-27 12:19:11 -0700 |
commit | a1d950945f10801a6c23957305a625f846838e6e (patch) | |
tree | 7f23043506494cac1bcdcebd9f5f898a405796cd | |
parent | 408eeac55cd5265114673d21c7a353a885f8825c (diff) | |
download | scummvm-rg350-a1d950945f10801a6c23957305a625f846838e6e.tar.gz scummvm-rg350-a1d950945f10801a6c23957305a625f846838e6e.tar.bz2 scummvm-rg350-a1d950945f10801a6c23957305a625f846838e6e.zip |
SCI: Add cast to prev commit to fix builds
-rw-r--r-- | engines/sci/engine/guest_additions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/guest_additions.cpp b/engines/sci/engine/guest_additions.cpp index b8d6334c96..893aaef639 100644 --- a/engines/sci/engine/guest_additions.cpp +++ b/engines/sci/engine/guest_additions.cpp @@ -854,9 +854,9 @@ void GuestAdditions::syncMessageTypeFromScummVMUsingDefaultStrategy() const { uint flagNumber = 400; uint globalNumber = kGlobalVarQFG4Flags + (flagNumber / 16); if (value & kMessageTypeSpeech) { - _state->variables[VAR_GLOBAL][globalNumber] |= 0x8000; + _state->variables[VAR_GLOBAL][globalNumber] |= (int16)0x8000; } else { - _state->variables[VAR_GLOBAL][globalNumber] &= ~0x8000; + _state->variables[VAR_GLOBAL][globalNumber] &= (int16)~0x8000; } } } |