summaryrefslogtreecommitdiffstats
path: root/src/common/metafile.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-09 17:51:10 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-09 17:51:10 +0200
commitefe4f0baddf10124581e4fcb88d55a52838b06a1 (patch)
treec07882eb005e486abe1dbb03d008f6cca2898fe6 /src/common/metafile.cpp
parentb3d5491af4f953e8d63800897c40d602de9e9305 (diff)
downloadcolobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.gz
colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.bz2
colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.zip
Refactoring in src/common
- refactored CInstanceManager and some headers - removed old headers
Diffstat (limited to 'src/common/metafile.cpp')
-rw-r--r--src/common/metafile.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/common/metafile.cpp b/src/common/metafile.cpp
index 9d54f78..d1692ce 100644
--- a/src/common/metafile.cpp
+++ b/src/common/metafile.cpp
@@ -16,17 +16,15 @@
// metafile.cpp
-
-#include <windows.h>
-#include <stdio.h>
-
-#include "common/language.h"
#include "common/metafile.h"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
-#if _FULL | _NET
+//#if _FULL | _NET
static unsigned char table_codec[23] =
{
0x85, 0x91, 0x73, 0xcf, 0xa2, 0xbb, 0xf4, 0x77,
@@ -44,9 +42,9 @@ void Codec(void* buffer, int len, int start)
b[i] ^= table_codec[(start++)%23];
}
}
-#endif
+//#endif
-#if _SCHOOL
+/*#if _SCHOOL
#if _CEEBOTDEMO
static unsigned char table_codec[136] =
{
@@ -99,9 +97,9 @@ void Codec(void* buffer, int len, int start)
}
}
#endif
-#endif
+#endif*/
-#if _DEMO
+/*#if _DEMO
static unsigned char table_codec[27] =
{
0x85, 0x91, 0x77, 0xcf, 0xa3, 0xbb, 0xf4, 0x77,
@@ -120,7 +118,7 @@ void Codec(void* buffer, int len, int start)
b[i] ^= table_codec[(start++)%27];
}
}
-#endif
+#endif*/
@@ -286,7 +284,7 @@ int CMetaFile::Read(void *buffer, int size)
int CMetaFile::GetByte()
{
- BYTE b;
+ int b;
if ( !m_bOpen ) return 1;
@@ -303,7 +301,7 @@ int CMetaFile::GetByte()
int CMetaFile::GetWord()
{
- WORD w;
+ int w;
if ( !m_bOpen ) return 1;