From 5362e99716abb5e8a4e2b7f057af46a45a1d7cbf Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 18 Jun 2015 03:24:04 +0200 Subject: Deprecated use of numeric NPC view IDs. Use constants instead. Signed-off-by: Haru --- src/map/npc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index a79062c77..ad12d530c 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2535,6 +2535,8 @@ int npc_parseview(const char* w4, const char* start, const char* buffer, const c } else { // NPC has an ID specified for view id. val = atoi(w4); + if (val != -1) + ShowWarning("npc_parseview: Use of numeric NPC view IDs is deprecated and may be removed in a future update. Please use NPC view constants instead. ID '%d' specified in file '%s', line '%d'.\n", val, filepath, strline(buffer, start-buffer)); } return val; -- cgit v1.2.3-60-g2f50