File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -253,9 +253,9 @@ void HudGaugeLock::render(float frametime)
253253 }
254254 }
255255
256+ // show locked indicator
256257 Lock_gauge.sx = sx - Lock_gauge_half_w;
257258 Lock_gauge.sy = sy - Lock_gauge_half_h;
258-
259259 if (Player_ai->current_target_is_locked ) {
260260 hud_anim_render (&Lock_gauge, 0 .0f , 1 );
261261 } else {
Original file line number Diff line number Diff line change @@ -352,6 +352,10 @@ void model_instance_free_all()
352352 }
353353 }
354354
355+ // clear skybox model instance if we have one; it is not an object and therefore has no <object>_delete function which would remove the instance
356+ extern int Nmodel_instance_num;
357+ Nmodel_instance_num = -1 ;
358+
355359 Polygon_model_instances.clear ();
356360}
357361
You can’t perform that action at this time.
0 commit comments