2
0
Frank Zago 16 жил өмнө
parent
commit
ea361fe2b4
2 өөрчлөгдсөн 0 нэмэгдсэн , 17 устгасан
  1. 0 16
      hch/CLodHandler.cpp
  2. 0 1
      hch/CLodHandler.h

+ 0 - 16
hch/CLodHandler.cpp

@@ -287,22 +287,6 @@ void CLodHandler::extractFile(std::string FName, std::string name)
 	}
 }
 
-int CLodHandler::readNormalNr (const unsigned char* bufor, int bytCon, bool cyclic)
-{
-	int ret=0;
-	int amp=1;
-	for (int i=0; i<bytCon; i++)
-	{
-		ret+=bufor[i]*amp;
-		amp*=256;
-	}
-	if(cyclic && bytCon<4 && ret>=amp/2)
-	{
-		ret = ret-amp;
-	}
-	return ret;
-}
-
 void CLodHandler::init(std::string lodFile, std::string dirName)
 {
 	myDir = dirName;

+ 0 - 1
hch/CLodHandler.h

@@ -70,7 +70,6 @@ public:
 
 	CLodHandler();
 	~CLodHandler();
-	int readNormalNr (const unsigned char* bufor, int bytCon, bool cyclic=false); //lod header reading helper
 	int infs(unsigned char * in, int size, int realSize, std::ofstream & out, int wBits=15); //zlib fast handler
 	int infs2(unsigned char * in, int size, int realSize, unsigned char*& out, int wBits=15); //zlib fast handler
 	unsigned char * giveFile(std::string defName, int * length=NULL); //returns pointer to the decompressed data - it must be deleted when no longer needed!