summaryrefslogtreecommitdiff
path: root/src/map/npc-parse.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-11-13 12:34:23 -0500
committermekolat <mekolat@users.noreply.github.com>2015-11-13 12:34:23 -0500
commitf6b949498ddb7a3738405f76cb300134d2653247 (patch)
treeb13568df19333f7b21dedf739677c67b6c0bb904 /src/map/npc-parse.cpp
parentf7c99c70de0f5bd77939966d085ad0da61bfd739 (diff)
downloadtmwa-f6b949498ddb7a3738405f76cb300134d2653247.tar.gz
tmwa-f6b949498ddb7a3738405f76cb300134d2653247.tar.bz2
tmwa-f6b949498ddb7a3738405f76cb300134d2653247.tar.xz
tmwa-f6b949498ddb7a3738405f76cb300134d2653247.zip
do not require a name for warps
Diffstat (limited to 'src/map/npc-parse.cpp')
-rw-r--r--src/map/npc-parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc-parse.cpp b/src/map/npc-parse.cpp
index 9ee84d2..0bd23a9 100644
--- a/src/map/npc-parse.cpp
+++ b/src/map/npc-parse.cpp
@@ -153,7 +153,7 @@ bool npc_load_warp(ast::npc::Warp& warp)
nd->dir = DIR::S;
nd->flag = 0;
nd->sit = DamageType::STAND;
- nd->name = warp.name.data;
+ nd->name = stringish<NpcName>(STRPRINTF("w%c%i"_fmt, 6, nd->bl_id));
nd->npc_class = WARP_CLASS;
nd->speed = 200_ms;