]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/perlin.h
refactoring
[dragonblocks_alpha.git] / src / perlin.h
index 0213c68b00f182ee0bbb9eb3e9890f30c0f6cea2..15a63c995f85baf05f647ffc60303b2c458c728d 100644 (file)
@@ -4,8 +4,9 @@
 #include <perlin/perlin.h>
 #include "types.h"
 
-typedef enum
-{
+#define U32(x) (((u32) 1 << 31) + (x))
+
+typedef enum {
        SO_NONE,
        SO_HEIGHT,
        SO_MOUNTAIN,
@@ -35,4 +36,4 @@ typedef enum
 
 extern s32 seed;
 
-#endif
+#endif // _PERLIN_H_