MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / newstyle_DoneInstance

Function newstyle_DoneInstance

physics/newstyle_fi.cpp:290–304  ·  view source on GitHub ↗

pops the old context

Source from the content-addressed store, hash-verified

288
289// pops the old context
290static void newstyle_DoneInstance() {
291 instance_depth--;
292
293 ASSERT(instance_depth >= 0);
294
295 View_position = instance_stack[instance_depth].p;
296 View_matrix = instance_stack[instance_depth].m;
297
298 *fvi_query_ptr->p0 = instance_stack[instance_depth].p0;
299 *fvi_query_ptr->p1 = instance_stack[instance_depth].p1;
300 if (fvi_do_orient) {
301 fvi_move_fvec = instance_stack[instance_depth].fvec;
302 fvi_move_uvec = instance_stack[instance_depth].uvec;
303 }
304}
305
306void CollideSubmodel(poly_model *pm, bsp_info *sm, uint32_t f_render_sub) {
307 // Don't collide with door housings (That is the 'room' portion of the door)

Callers 2

CollideSubmodelFunction · 0.85
CollidePolygonModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected