소스 검색

Added requested fix

Eiyeron 12 년 전
부모
커밋
cec126b5fd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      struct.h

+ 2 - 2
struct.h

@@ -11,7 +11,7 @@
 
 //macros
 #define abs(x) x>0 ? x : -x
-typedef enum Pattern_Enum Pattern_Enum;
+typedef enum{PATTERN1, PATTERN_WHATEVER}Pattern;
 typedef struct Camera Camera;
 typedef struct Wall Wall;
 typedef struct Line Line;
@@ -19,7 +19,7 @@ typedef struct Level Level;
 
 struct Level{
 	//for the level generation
-	Pattern_Enum available_patterns[][];
+	Pattern available_patterns[][];
 	int nb_patterns;
 
 	//for the camera rotation