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

Function DoDestroyedLightsForFrame

Descent3/lighting.cpp:2238–2247  ·  view source on GitHub ↗

Goes through our destroyable light list and actually kills all the lights

Source from the content-addressed store, hash-verified

2236
2237// Goes through our destroyable light list and actually kills all the lights
2238void DoDestroyedLightsForFrame() {
2239 int i;
2240 for (i = 0; i < Num_destroyed_lights_this_frame; i++) {
2241 int roomnum = Destroyed_light_rooms_this_frame[i];
2242 int facenum = Destroyed_light_faces_this_frame[i];
2243 DestroyLight(roomnum, facenum);
2244 }
2245
2246 Num_destroyed_lights_this_frame = 0;
2247}

Callers 1

GameFrameFunction · 0.85

Calls 1

DestroyLightFunction · 0.85

Tested by

no test coverage detected