summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-06-18 03:24:04 +0200
committerHaru <haru@dotalux.com>2015-08-09 21:14:02 +0200
commit5362e99716abb5e8a4e2b7f057af46a45a1d7cbf (patch)
tree524161cc97a599c485b89e37e3959e1511467319 /src/map/npc.c
parent7b50fce0f62961b0228e6919562efcfe33e7fbca (diff)
downloadhercules-5362e99716abb5e8a4e2b7f057af46a45a1d7cbf.tar.gz
hercules-5362e99716abb5e8a4e2b7f057af46a45a1d7cbf.tar.bz2
hercules-5362e99716abb5e8a4e2b7f057af46a45a1d7cbf.tar.xz
hercules-5362e99716abb5e8a4e2b7f057af46a45a1d7cbf.zip
Deprecated use of numeric NPC view IDs. Use constants instead.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 2 insertions, 0 deletions
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;