Skip to content

Commit 09ca5d3

Browse files
authored
Merge pull request scp-fs2open#1621 from The-E/dockpoint_warning
Print out a warning if we can't find a dockpoint during missionparse
2 parents 66c0d27 + 942f72d commit 09ca5d3

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)