Move map_objnum... into multi_send_boss_create_robot

Whenever a robot is sent to peers, it needs to be added to the local
mapping also.  Move the one use so far into multi_send_boss_create_robot
to simplify maintenance.
This commit is contained in:
Kp 2016-10-29 23:16:16 +00:00
parent c2626ea488
commit c45e441ecd
2 changed files with 1 additions and 1 deletions

View file

@ -2469,7 +2469,6 @@ static void do_super_boss_stuff(const vobjptridx_t objp, fix dist_to_player, int
if (rtval != object_none && (Game_mode & GM_MULTI))
{
multi_send_boss_create_robot(objp, randtype, rtval);
map_objnum_local_to_local(Net_create_objnums[0]);
}
}
}

View file

@ -653,6 +653,7 @@ void multi_send_boss_stop_gate(objnum_t bossobjnum)
void multi_send_boss_create_robot(objnum_t bossobjnum, int robot_type, const vobjptridx_t objrobot)
{
map_objnum_local_to_local(objrobot);
multi_send_boss_action<boss_create_robot>(bossobjnum, objrobot, objrobot->segnum, static_cast<uint8_t>(robot_type));
}