Преглед на файлове

Small change in struct.h

Adrien Boucaud преди 12 години
родител
ревизия
8fc3710bb0
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      struct.h

+ 3 - 3
struct.h

@@ -11,7 +11,7 @@
 
 //macros
 #define abs(x) x>0 ? x : -x
-typedef enum Pattern_Enum Pattern_Enum;
+typedef enum {PATTERN} Pattern_Enum;
 typedef struct Camera Camera;
 typedef struct Wall Wall;
 typedef struct Line Line;
@@ -19,12 +19,12 @@ typedef struct Level Level;
 
 struct Level{
 	//for the level generation
-	Pattern_Enum available_patterns[][];
+	Pattern_Enum available_patterns[32][32];
 	int nb_patterns;
 
 	//for the camera rotation
 	int change_interval; //5 seconds most of the time, but who knows...
-	int change_precision //to add a bit of randomness to the intervals
+	int change_precision; //to add a bit of randomness to the intervals
 	float change_probability; //sometimes, there can be no change at all
 	
 	float max_speed;