You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/missionui/missionscreencommon.cpp
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1663,12 +1663,17 @@ void draw_model_icon(int model_id, uint64_t flags, float closeup_zoom, int x, in
1663
1663
gr_reset_clip();
1664
1664
}
1665
1665
1666
-
voiddraw_model_rotating(model_render_params *render_info, int model_id, int x1, int y1, int x2, int y2, float *rotation_buffer, const vec3d *closeup_pos, float closeup_zoom, float rev_rate, uint64_t flags, int resize_mode, select_effect_params effect_params)
1666
+
voiddraw_model_rotating(model_render_params *render_info, intship_class, intmodel_id, int x1, int y1, int x2, int y2, float *rotation_buffer, const vec3d *closeup_pos, float closeup_zoom, float rev_rate, uint64_t flags, int resize_mode, select_effect_params effect_params)
1667
1667
{
1668
1668
//WMC - Can't draw a non-model
1669
1669
if (model_id < 0)
1670
1670
return;
1671
1671
1672
+
int model_instance = model_create_instance(model_objnum_special::OBJNUM_NONE, model_id);
1673
+
if (!(flags & MR_IS_MISSILE) && SCP_vector_inbounds(Ship_info, ship_class)) {
0 commit comments