From e4ad2c9362254ab3213c4cb7c743b6bbd72b6346 Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 30 Sep 2024 15:57:29 +0200 Subject: commandline parameters --- src/entity.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/entity.h') 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); -- cgit 1.4.1-2-gfad0