Skip to content

Commit

Permalink
remove leftovers from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gumi committed Nov 13, 2017
1 parent 05beb6b commit 7a81c45
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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++;
}

Expand Down

0 comments on commit 7a81c45

Please sign in to comment.