diff options
Diffstat (limited to 'src/emap/scriptdefines.h')
-rw-r--r-- | src/emap/scriptdefines.h | 10 |
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 |