diff options
author | Oliver Kiehl | 2003-05-24 23:27:24 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-05-24 23:27:24 +0000 |
commit | 9fe94049f31d93ad6f1f4c91f88eb9bd1499b1a5 (patch) | |
tree | 57305f1c2908722587a1dd9d82f5063b5d55b36a /sky | |
parent | 0bd1f1d958933966b5923baa2e20a3abaa8d6ac0 (diff) | |
download | scummvm-rg350-9fe94049f31d93ad6f1f4c91f88eb9bd1499b1a5.tar.gz scummvm-rg350-9fe94049f31d93ad6f1f4c91f88eb9bd1499b1a5.tar.bz2 scummvm-rg350-9fe94049f31d93ad6f1f4c91f88eb9bd1499b1a5.zip |
fix VC warnings
svn-id: r7915
Diffstat (limited to 'sky')
-rw-r--r-- | sky/logic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp index c2a8ca3c2c..510b06ab4d 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -1237,7 +1237,7 @@ uint32 SkyLogic::fnLeaving(uint32 a, uint32 b, uint32 c) { } uint32 SkyLogic::fnSetAlternate(uint32 scr, uint32 b, uint32 c) { - _compact->extCompact->alt = scr; + _compact->extCompact->alt = (uint16)(scr & 0xffff); _compact->logic = L_ALT; return 0; } @@ -1297,7 +1297,7 @@ uint32 SkyLogic::fnSpeakMeDir(uint32 a, uint32 b, uint32 c) { } uint32 SkyLogic::fnSpeakWait(uint32 id, uint32 message, uint32 animation) { - _compact->flag = id; + _compact->flag = (uint16)(id & 0xffff); _compact->logic = L_LISTEN; return fnSpeakMe(id, message, animation); } |