summaryrefslogtreecommitdiff
path: root/src/dungeon_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dungeon_util.c')
-rw-r--r--src/dungeon_util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dungeon_util.c b/src/dungeon_util.c
new file mode 100644
index 0000000..60b796f
--- /dev/null
+++ b/src/dungeon_util.c
@@ -0,0 +1,11 @@
+#include "global.h"
+#include "dungeon_util.h"
+
+bool8 EntityExists(struct DungeonEntity *entity)
+{
+ if (!entity)
+ {
+ return FALSE;
+ }
+ return entity->entityType != ENTITY_NONE;
+}