Quellcode durchsuchen

Small change in struct.h

Adrien Boucaud vor 12 Jahren
Ursprung
Commit
8fc3710bb0
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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;