[Scummvm-git-logs] scummvm master -> 208f4e558fb150f606a50cb3ded9d545eba8ab02

sev- sev at scummvm.org
Sun Dec 4 16:19:49 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
208f4e558f FULLPIPE: Fix warnings


Commit: 208f4e558fb150f606a50cb3ded9d545eba8ab02
    https://github.com/scummvm/scummvm/commit/208f4e558fb150f606a50cb3ded9d545eba8ab02
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-12-04T16:19:37+01:00

Commit Message:
FULLPIPE: Fix warnings

Changed paths:
    engines/fullpipe/utils.cpp


diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index 7133b39..ac6b203 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;





More information about the Scummvm-git-logs mailing list