From c4368bf8afc5ab1f1dd66f5aae0f79c841926137 Mon Sep 17 00:00:00 2001 From: Felix Wallin Date: Sat, 16 Oct 2010 23:35:33 +0200 Subject: [PATCH] moved defines --- includes/defines.h | 12 ++++++++++++ src/powder.c | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/includes/defines.h b/includes/defines.h index eabfbf59f..0f80ab69a 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -62,6 +62,18 @@ typedef unsigned short pixel; typedef unsigned int pixel; #endif +#define SURF_RANGE 10 +#define NORMAL_MIN_EST 3 +#define NORMAL_INTERP 20 +#define NORMAL_FRAC 16 + +#define REFRACT 0x80000000 + +/* heavy flint glass, for awesome refraction/dispersion + this way you can make roof prisms easily */ +#define GLASS_IOR 1.9 +#define GLASS_DISP 0.07 + typedef unsigned char uint8; extern int amd; diff --git a/src/powder.c b/src/powder.c index d29748949..c86409f81 100644 --- a/src/powder.c +++ b/src/powder.c @@ -188,17 +188,6 @@ int try_move(int i, int x, int y, int nx, int ny) return 1; } -#define SURF_RANGE 10 -#define NORMAL_MIN_EST 3 -#define NORMAL_INTERP 20 -#define NORMAL_FRAC 16 - -#define REFRACT 0x80000000 - -/* heavy flint glass, for awesome refraction/dispersion - this way you can make roof prisms easily */ -#define GLASS_IOR 1.9 -#define GLASS_DISP 0.07 static unsigned direction_to_map(float dx, float dy) {