summaryrefslogtreecommitdiff
path: root/src/emap/scriptdefines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/scriptdefines.h')
-rw-r--r--src/emap/scriptdefines.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emap/scriptdefines.h b/src/emap/scriptdefines.h
index d35f71c..921df75 100644
--- a/src/emap/scriptdefines.h
+++ b/src/emap/scriptdefines.h
@@ -85,4 +85,14 @@
return false; \
}
+#define getND() \
+ TBL_NPC *nd = map->id2nd(st->oid); \
+ if (!nd) \
+ return; \
+
+#define getNDReturn(def) \
+ TBL_NPC *nd = map->id2nd(st->oid); \
+ if (!nd) \
+ return def; \
+
#endif // EVOL_MAP_SCRIPTDEFINES