diff options
Diffstat (limited to 'src/map/map.cpp')
-rw-r--r-- | src/map/map.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index 3538a59..e7b0da8 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -1009,12 +1009,9 @@ dumb_ptr<block_list> map_id2bl(BlockId id) int map_addnpc(Borrowed<map_local> m, dumb_ptr<npc_data> nd) { int i; - for (i = 0; i < m->npc_num && i < MAX_NPC_PER_MAP; i++) { - if (m->npc[i] == nullptr) { - PRINTF(">>>>>> reusing npc %i\n"_fmt, i); + for (i = 0; i < m->npc_num && i < MAX_NPC_PER_MAP; i++) + if (m->npc[i] == nullptr) break; - } - } if (i == MAX_NPC_PER_MAP) { if (battle_config.error_log) @@ -1023,7 +1020,6 @@ int map_addnpc(Borrowed<map_local> m, dumb_ptr<npc_data> nd) } if (i == m->npc_num) { - PRINTF(">>>>>> using new npc %i\n"_fmt, i); m->npc_num++; } |