summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-09-29 10:58:08 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-09-29 11:20:54 -0700
commit8a613a903e6e80dae63de488b7d39a8dc16dcc78 (patch)
tree9e999800326790aed4f39341bcc1f8e3b1d7f6fc /src
parent197ecb840d53c6df581b63edc0ea444b47bea233 (diff)
downloadtmwa-8a613a903e6e80dae63de488b7d39a8dc16dcc78.tar.gz
tmwa-8a613a903e6e80dae63de488b7d39a8dc16dcc78.tar.bz2
tmwa-8a613a903e6e80dae63de488b7d39a8dc16dcc78.tar.xz
tmwa-8a613a903e6e80dae63de488b7d39a8dc16dcc78.zip
Silence a warning for temporary NPCs
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp
index fa2603d..e859e2d 100644
--- a/src/map/npc.cpp
+++ b/src/map/npc.cpp
@@ -937,6 +937,8 @@ void register_npc_name(dumb_ptr<npc_data> nd)
};
if (!nd->name)
{
+ if (nd->npc_subtype == NpcSubtype::MESSAGE)
+ return;
PRINTF("WARNING: npc with no name:\n%s @ %s,%d,%d\n",
types[static_cast<int>(nd->npc_subtype)],
nd->bl_m->name_, nd->bl_x, nd->bl_y);