<NME> utils.h
<BEF> #include <fstream>
#ifndef gameobjects_h
	#define gameobjects_h
	#include "gameobjects.h"
#endif
#ifndef gamestrings_h
	#define gamestrings_h
	#include "gamestrings.h"
#endif
#ifndef tilemap_h
	#define tilemap_h
	#include "tilemap.h"
#endif
#ifndef utils_h
	#define utils_h
	#include "utils.h"
#endif
#ifndef tilemap_h
	#define tilemap_h
	#include "tilemap.h"
#endif
#ifndef textures_h
	#define textures_h
	#include "textures.h"
#endif
#ifndef main_h
	#define main_h
	#include "main.h"
#endif	
#ifndef gamegraphics_h
	#define gamegraphics_h
	#include "gamegraphics.h"
#endif

long ConvertInt16(unsigned char Byte1, unsigned char Byte2);
long ConvertInt24(unsigned char Byte1, unsigned char Byte2,  unsigned char Byte3);

long ConvertInt16(unsigned char Byte1, unsigned char Byte2);
long ConvertInt24(unsigned char Byte1, unsigned char Byte2,  unsigned char Byte3);
long ConvertInt32(unsigned char Byte1, unsigned char Byte2,  unsigned char Byte3,  unsigned char Byte4);


void WriteInt32(FILE *file, long val);
void WriteInt24(FILE *file, long val);
void WriteInt16(FILE *file, long val);
void WriteInt8(FILE *file, long val);

long getFileSize(FILE *file);
long getValAtAddress(unsigned char *buffer, long Address, int size);
int getValAtCoordinate(int x, int y, int BlockStart,unsigned char *buffer, int size);
int LoadShockFile(char *filePath,long fileSize, unsigned char *archive_ark);
long getShockBlockAddress(long BlockNo, unsigned char *tmp_ark, long *chunkPackedLength, long *chunkUnpackedLength, long *chunkType);
int LoadShockChunk(long AddressOfBlockStart, int chunkType, unsigned char *archive_ark, unsigned char *OutputChunk,long chunkPackedLength,long chunkUnpackedLength);

unsigned char* unpackUW2(unsigned char *tmp, int address_pointer, int *datalen);
void unpack_data(unsigned char *pack, unsigned char *unpack, unsigned long unpacksize);
long getShockBlockAddress(long BlockNo, unsigned char *tmp_ark, long *chunkPackedLength, long *chunkUnpackedLength, long *chunkType);

void RepackUW2(char InputFile[255], char OutputFile[255],int BlocksToUnpack);
unsigned char *get_rwops_uw2dec(unsigned char *buffer, unsigned int blocknum, int *datalen);
void RepackShock(char InputFile[255], char OutputFile[255]);
void ParseTerrainProperties(int game);
void getNoOfFramesForShockDoors(int index, int *NoOfFrames, int *ChunkId);
#endif /*util_h*/
<MSG> Adjustments to object placement in Shock 
Some code cleanup
<DFF> @@ -1,36 +1,4 @@
 #include <fstream>
-#ifndef gameobjects_h
-	#define gameobjects_h
-	#include "gameobjects.h"
-#endif
-#ifndef gamestrings_h
-	#define gamestrings_h
-	#include "gamestrings.h"
-#endif
-#ifndef tilemap_h
-	#define tilemap_h
-	#include "tilemap.h"
-#endif
-#ifndef utils_h
-	#define utils_h
-	#include "utils.h"
-#endif
-#ifndef tilemap_h
-	#define tilemap_h
-	#include "tilemap.h"
-#endif
-#ifndef textures_h
-	#define textures_h
-	#include "textures.h"
-#endif
-#ifndef main_h
-	#define main_h
-	#include "main.h"
-#endif	
-#ifndef gamegraphics_h
-	#define gamegraphics_h
-	#include "gamegraphics.h"
-#endif
 
 long ConvertInt16(unsigned char Byte1, unsigned char Byte2);
 long ConvertInt24(unsigned char Byte1, unsigned char Byte2,  unsigned char Byte3);

Adjustments to object placement in Shock  Some code cleanup