mirror of
https://github.com/rehlds/reapi.git
synced 2024-12-28 15:45:31 +03:00
Fixed compilation by ICC on windows
Fixed 'Broadcast' function
This commit is contained in:
parent
ca92f13aa9
commit
8617956d66
@ -71,8 +71,8 @@ inline MType getMemberType(usercmd_s) { return MEBMER_USERCMD; }
|
||||
template<typename T>
|
||||
inline MType getMemberType(T) { static_assert(false, "Not implemented overload"); }
|
||||
|
||||
template<typename T>
|
||||
inline size_t getTypeSize(T type[]) { return sizeof(T); }
|
||||
template<typename T, size_t size>
|
||||
inline size_t getTypeSize(T type[size]) { return sizeof(T); }
|
||||
|
||||
template<typename T>
|
||||
inline size_t getTypeSize(T& type) { return sizeof(T); }
|
||||
|
@ -3,7 +3,7 @@
|
||||
void Broadcast(const char *sentence)
|
||||
{
|
||||
char text[128];
|
||||
snprintf(text, sizeof text, "%!MRAD_%s", sentence);
|
||||
snprintf(text, sizeof text, "%%!MRAD_%s", sentence);
|
||||
|
||||
EMESSAGE_BEGIN(MSG_BROADCAST, gmsgSendAudio);
|
||||
EWRITE_BYTE(0);
|
||||
|
Loading…
Reference in New Issue
Block a user