diff options
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h index 5b34bac..52a2eac 100644 --- a/src/entity.h +++ b/src/entity.h @@ -2,6 +2,9 @@ #include "loader.h" +#define from_fixed(a) (a / 16) +#define to_fixed(a) (a * 16) + struct entity { int (*update)(struct entity *self); int (*hurt)(struct entity *self, int damage); |