MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CPEExtensions_Find

Function CPEExtensions_Find

src/Protocol.c:856–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856static struct CpeExt* CPEExtensions_Find(const cc_string* name) {
857 struct CpeExt* ext;
858 int i;
859
860 for (i = 0; i < Array_Elems(cpe_clientExtensions); i++)
861 {
862 ext = cpe_clientExtensions[i];
863 if (String_CaselessEqualsConst(name, ext->name)) return ext;
864 }
865 return NULL;
866}
867
868#define Ext_Deg2Packed(x) ((int)((x) * 65536.0f / 360.0f))
869void CPE_SendPlayerClick(int button, cc_bool pressed, cc_uint8 targetId, struct RayTracer* t) {

Callers 1

CPE_ExtEntryFunction · 0.85

Calls 1

Tested by

no test coverage detected