summaryrefslogtreecommitdiff
path: root/src/dungeon_engine.c
diff options
context:
space:
mode:
authorCheng Hann Gan <chenghanngan.us@gmail.com>2021-10-15 18:30:33 -0400
committerGitHub <noreply@github.com>2021-10-15 15:30:33 -0700
commit3f7ee3a806d965fae70fd98f2cd1af13a2e4cf0b (patch)
treed8edbe0b291c2771dd3cf0c52fb088d303a03d2c /src/dungeon_engine.c
parent18726d97cfe82c38a4809ca1fb4fd4aeda7a7ee1 (diff)
Decomped entityExists() (#64)
Diffstat (limited to 'src/dungeon_engine.c')
-rw-r--r--src/dungeon_engine.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dungeon_engine.c b/src/dungeon_engine.c
new file mode 100644
index 0000000..8689b91
--- /dev/null
+++ b/src/dungeon_engine.c
@@ -0,0 +1,11 @@
+#include "global.h"
+#include "dungeon_engine.h"
+
+bool8 entityExists(struct DungeonEntity *entity)
+{
+ if (!entity)
+ {
+ return FALSE;
+ }
+ return entity->entityType != ENTITY_NONE;
+}