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

Function TelCom_SendSystemEvent

Descent3/TelCom.cpp:3999–4011  ·  view source on GitHub ↗

* Calling this sends an event message to the TelCom System Queue, adding it to it's event queue * */

Source from the content-addressed store, hash-verified

3997 *
3998 */
3999void TelCom_SendSystemEvent(int event_num, int parm1, int parm2) {
4000 for (int i = 0; i < MAX_TELCOM_EVENTS; i++) {
4001 if (Telcom_system_queue[i].id == -1) {
4002 // add the event here
4003 Telcom_system_queue[i].id = event_num;
4004 Telcom_system_queue[i].parms[0] = parm1;
4005 Telcom_system_queue[i].parms[1] = parm2;
4006 return;
4007 }
4008 }
4009
4010 mprintf(0, "Warning: TelCom System Event Queue Overflow\n");
4011}
4012
4013/*
4014 * Call this when handling the TelCom system events, returns true if there is an event waiting, it will then fill

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected