diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-06-18 01:56:31 -0500 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-15 11:45:02 -0400 |
commit | ef4ae4d281127a0b84a73ab034bd22d6281a09ed (patch) | |
tree | 9c85593f052f354fa88c633c1b0cdd5ebad7ceb4 /src/map/npc-parse.cpp | |
parent | 87312fe719956671a77a3c78021e821c679764fe (diff) | |
download | tmwa-ef4ae4d281127a0b84a73ab034bd22d6281a09ed.tar.gz tmwa-ef4ae4d281127a0b84a73ab034bd22d6281a09ed.tar.bz2 tmwa-ef4ae4d281127a0b84a73ab034bd22d6281a09ed.tar.xz tmwa-ef4ae4d281127a0b84a73ab034bd22d6281a09ed.zip |
implement puppet npcs
Diffstat (limited to 'src/map/npc-parse.cpp')
-rw-r--r-- | src/map/npc-parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc-parse.cpp b/src/map/npc-parse.cpp index 0bd23a9..edfe4c9 100644 --- a/src/map/npc-parse.cpp +++ b/src/map/npc-parse.cpp @@ -92,7 +92,6 @@ void npc_delsrcfile(XString name) } } -static void register_npc_name(dumb_ptr<npc_data> nd) { earray<LString, NpcSubtype, NpcSubtype::COUNT> types //= @@ -474,6 +473,7 @@ bool npc_load_script_none(ast::script::ScriptBody& body, ast::npc::ScriptNone& s nd->bl_type = BL::NPC; nd->npc_subtype = NpcSubtype::SCRIPT; + id_db.put(nd->bl_id, nd); // fix to get the oid in OnInit register_npc_name(nd); for (auto& pair : scriptlabel_db) |