diff options
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h index e0f8fe7..40a095c 100644 --- a/src/config.h +++ b/src/config.h @@ -36,7 +36,7 @@ typedef i32 fx32; #define FIXED_POINT_ONE (1 << FIXED_POINT_BITS) #define TO_FIXED(x) ((fx32)(x) << FIXED_POINT_BITS) #define FROM_FIXED(x) ((x) >> FIXED_POINT_BITS) -#define FP_TO_FIXED(x) (fx32)((x) * FIXED_POINT_BITS) +#define FP_TO_FIXED(x) (fx32)((x) * FIXED_POINT_ONE) typedef struct{ fx32 x, y; |
