summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-29 02:17:26 +0100
committerHaru <haru@dotalux.com>2015-12-31 23:39:23 +0100
commit32a42eeee18b16d9f904a409974dda575f3966c2 (patch)
tree7966898e283b6759f226bd8222de161fb64772c2 /src/map/npc.c
parentb4c99db7d5a500770383e24ef2fd1f956b19da74 (diff)
downloadhercules-32a42eeee18b16d9f904a409974dda575f3966c2.tar.gz
hercules-32a42eeee18b16d9f904a409974dda575f3966c2.tar.bz2
hercules-32a42eeee18b16d9f904a409974dda575f3966c2.tar.xz
hercules-32a42eeee18b16d9f904a409974dda575f3966c2.zip
Extended the numeric view ID deprecation to '-1' (FAKE_NPC)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 5cb128b25..a7d4cdab0 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2569,8 +2569,7 @@ 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 != FAKE_NPC) // TODO: Add this to the constants table and replace -1 with FAKE_NPC in the scripts, then remove this check.
- 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));
+ 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;