aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/utils.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-04 16:19:25 +0100
committerEugene Sandulenko2016-12-04 16:19:37 +0100
commit208f4e558fb150f606a50cb3ded9d545eba8ab02 (patch)
tree98b0fb12c23f0712265cfd132c0c3dd847bc307b /engines/fullpipe/utils.cpp
parent21e91bbeeb21f1203a201f1877fc423b61d08ee5 (diff)
downloadscummvm-rg350-208f4e558fb150f606a50cb3ded9d545eba8ab02.tar.gz
scummvm-rg350-208f4e558fb150f606a50cb3ded9d545eba8ab02.tar.bz2
scummvm-rg350-208f4e558fb150f606a50cb3ded9d545eba8ab02.zip
FULLPIPE: Fix warnings
Diffstat (limited to 'engines/fullpipe/utils.cpp')
-rw-r--r--engines/fullpipe/utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index 7133b39d7e..ac6b20339d 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -507,6 +507,7 @@ char *genFileName(int superId, int sceneId, const char *ext) {
byte *transCyrillic(byte *s) {
static byte tmp[1024];
+#ifndef WIN32
static int trans[] = { 0xa8, 0xd081, 0xb8, 0xd191, 0xc0, 0xd090,
0xc1, 0xd091, 0xc2, 0xd092, 0xc3, 0xd093, 0xc4, 0xd094,
0xc5, 0xd095, 0xc6, 0xd096, 0xc7, 0xd097, 0xc8, 0xd098,
@@ -524,6 +525,7 @@ byte *transCyrillic(byte *s) {
0xf5, 0xd185, 0xf6, 0xd186, 0xf7, 0xd187, 0xf8, 0xd188,
0xf9, 0xd189, 0xfa, 0xd18a, 0xfb, 0xd18b, 0xfc, 0xd18c,
0xfd, 0xd18d, 0xfe, 0xd18e, 0xff, 0xd18f };
+#endif
int i = 0;
@@ -531,7 +533,7 @@ byte *transCyrillic(byte *s) {
#ifdef WIN32
// translate from cp1251 to cp866
byte c = *p;
- if (c >= 0xC0 && c <= 0xEF)
+ if (c >= 0xC0)
c = c - 0xC0 + 0x80;
else if (c >= 0xF0 && c <= 0xFF)
c = c - 0xF0 + 0xE0;