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

Function aTurnOffSpew

scripts/DallasFuncs.cpp:2296–2308  ·  view source on GitHub ↗

$$ACTION Spew Turn OFF spew from [e:SpewHandle] aTurnOffSpew Turn off spew Turns off spew that was created with Turn On Spew. Pass in the handle given by Turn On Spew. Parameters: SpewHandle: the handle of the spewer to stop $$END */

Source from the content-addressed store, hash-verified

2294$$END
2295*/
2296void aTurnOffSpew(int handle_slot) {
2297 msafe_struct mstruct;
2298
2299 if ((handle_slot >= 0) && (handle_slot < MAX_SPEW_HANDLES)) {
2300
2301 mstruct.id = Spew_handles[handle_slot];
2302
2303 if (mstruct.id != SPEW_INVALID_HANDLE) {
2304 MSafe_CallFunction(MSAFE_OBJECT_STOP_SPEW, &mstruct);
2305 Spew_handles[handle_slot] = SPEW_INVALID_HANDLE;
2306 }
2307 }
2308}
2309
2310/*
2311$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
SetMatCenToLevel1Function · 0.85
SetMatCenToLevel2Function · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected