| 854 | } |
| 855 | |
| 856 | static 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)) |
| 869 | void CPE_SendPlayerClick(int button, cc_bool pressed, cc_uint8 targetId, struct RayTracer* t) { |
no test coverage detected