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

Function GameDLLIsAddressBanned

Descent3/Game2DLL.cpp:727–739  ·  view source on GitHub ↗

Call this function right after a player connects to the game to see if a player is banned

Source from the content-addressed store, hash-verified

725}
726// Call this function right after a player connects to the game to see if a player is banned
727bool GameDLLIsAddressBanned(network_address *addr, const char *tracker_id) {
728 ASSERT(addr);
729 DLLInfo.special_data = (uint8_t *)addr;
730 // This used to be tracker_id, but storing a pointer as an int is a problem in 64 bit
731 // and no code ever was populating the tracker id that I know of. -Kevin
732 DLLInfo.iParam = 0;
733 DLLInfo.iRet = 0;
734 CallGameDLL(EVT_GAMECHECKBAN, &DLLInfo);
735 if (DLLInfo.iRet)
736 return true;
737 else
738 return false;
739}
740// Call this function to get the team that a connecting player should be placed on
741// Callsign and network address of the player MUST be filled in at this point
742// PXO id must also be set if mastertracker game

Callers 1

MultiDoAskToJoinFunction · 0.85

Calls 1

CallGameDLLFunction · 0.85

Tested by

no test coverage detected