about summary refs log tree commit diff
path: root/src/game/g_mapitems.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-29 11:44:03 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-29 11:44:03 +0000
commit7a3874745ca370a799d95b5f86e85fcc8eadefbb (patch)
tree16f1e28f2f499279496866a63cabf88e2f2ad6c4 /src/game/g_mapitems.h
parent171d6b1c206c0488b59d157bc266319bf4ab482b (diff)
downloadzcatch-7a3874745ca370a799d95b5f86e85fcc8eadefbb.tar.gz
zcatch-7a3874745ca370a799d95b5f86e85fcc8eadefbb.zip
fixed loads of graphical optimizations
Diffstat (limited to 'src/game/g_mapitems.h')
-rw-r--r--src/game/g_mapitems.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/game/g_mapitems.h b/src/game/g_mapitems.h
index 3caa5303..8093435a 100644
--- a/src/game/g_mapitems.h
+++ b/src/game/g_mapitems.h
@@ -47,6 +47,7 @@ enum
 	
 	TILEFLAG_VFLIP=1,
 	TILEFLAG_HFLIP=2,
+	TILEFLAG_OPAQUE=4,
 	
 	LAYERFLAG_DETAIL=1,
 	
@@ -81,7 +82,7 @@ typedef struct
 	unsigned char index;
 	unsigned char flags;
 	unsigned char skip;
-	unsigned char reserved2;
+	unsigned char reserved;
 } TILE;
 
 typedef struct 
@@ -94,7 +95,7 @@ typedef struct
 	int image_data;
 } MAPITEM_IMAGE;
 
-typedef struct
+struct MAPITEM_GROUP_v1
 {
 	int version;
 	int offset_x;
@@ -104,7 +105,19 @@ typedef struct
 
 	int start_layer;
 	int num_layers;
-} MAPITEM_GROUP;
+} ;
+
+
+struct MAPITEM_GROUP : public MAPITEM_GROUP_v1
+{
+	enum { CURRENT_VERSION=2 };
+	
+	int use_clipping;
+	int clip_x;
+	int clip_y;
+	int clip_w;
+	int clip_h;
+} ;
 
 typedef struct
 {