Skip to content

Commit 942f72d

Browse files
committed
Print out a warning if we can't find either dockpoint
1 parent 66c0d27 commit 942f72d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

code/mission/missionparse.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,11 @@ void parse_dock_one_docked_object(p_object *pobjp, p_object *parent_pobjp)
17081708
// check valid
17091709
if ((dockpoint < 0) || (parent_dockpoint < 0))
17101710
{
1711-
Int3();
1711+
if (dockpoint < 0)
1712+
ReleaseWarning(LOCATION, "Dockpoint %s could not be found on model %s", dockpoint_name, model_get(Ship_info[Ships[objp->instance].ship_info_index].model_num)->filename);
1713+
if (parent_dockpoint < 0)
1714+
ReleaseWarning(LOCATION, "Dockpoint %s could not be found on model %s", parent_dockpoint_name, model_get(Ship_info[Ships[parent_objp->instance].ship_info_index].model_num)->filename);
1715+
17121716
return;
17131717
}
17141718

0 commit comments

Comments
 (0)