aboutsummaryrefslogtreecommitdiff
path: root/sky/compact.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2003-06-09 02:33:27 +0000
committerRobert Göffringmann2003-06-09 02:33:27 +0000
commit68bb844d638b654d37c7f03ebc55a351de5229ff (patch)
tree5f8a418cc83db6c9a1cc5fd5c1c2760ed5a25705 /sky/compact.cpp
parentb7ddc7bc5765328f81628bb6b5e7083a0101971e (diff)
downloadscummvm-rg350-68bb844d638b654d37c7f03ebc55a351de5229ff.tar.gz
scummvm-rg350-68bb844d638b654d37c7f03ebc55a351de5229ff.tar.bz2
scummvm-rg350-68bb844d638b654d37c7f03ebc55a351de5229ff.zip
some talk-related bugs fixed
svn-id: r8412
Diffstat (limited to 'sky/compact.cpp')
-rw-r--r--sky/compact.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/sky/compact.cpp b/sky/compact.cpp
index f88e71b149..acd721f8ac 100644
--- a/sky/compact.cpp
+++ b/sky/compact.cpp
@@ -20,6 +20,12 @@
*/
#include "stdafx.h"
+#ifdef _MSC_VER
+// disable warning "truncation of constant value". Some signed
+// fields of the structs are saved as unsigned in the .h files
+#pragma warning(disable : 4309)
+#endif
+
#include "sky/compact.h"
#include "sky/compacts/0compact.h"
@@ -37,6 +43,10 @@
#include "sky/compacts/lincmenu.h"
#include "sky/compacts/z_compac.h"
+#ifdef _MSC_VER
+#pragma warning(default : 4309)
+#endif
+
#define COMPACT_SIZE (sizeof(compactOffsets)/sizeof(uint32))
#define EXTCOMPACT_SIZE (sizeof(extCompactOffsets)/sizeof(uint32))
#define MEGASET_SIZE (sizeof(megaSetOffsets)/sizeof(uint32))