limit number of map entities
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4127 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+2
-1
@@ -109,6 +109,7 @@ struct mapstats
|
||||
#define SMALLEST_FACTOR 6 // determines number of mips there can be
|
||||
#define DEFAULT_FACTOR 8
|
||||
#define LARGEST_FACTOR 11 // 10 is already insane
|
||||
#define MAXENTITIES 65535
|
||||
#define SOLID(x) ((x)->type==SOLID)
|
||||
#define MINBORD 2 // 2 cubes from the edge of the world are always solid
|
||||
#define OUTBORD(x,y) ((x)<MINBORD || (y)<MINBORD || (x)>=ssize-MINBORD || (y)>=ssize-MINBORD)
|
||||
@@ -117,6 +118,6 @@ struct mapstats
|
||||
struct block { int x, y, xs, ys; };
|
||||
|
||||
// vertex array format
|
||||
|
||||
|
||||
struct vertex { float u, v, x, y, z; uchar r, g, b, a; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user