2
0
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:
asmodai 2016-10-12 02:14:13 +03:00
parent ca92f13aa9
commit 8617956d66
2 changed files with 3 additions and 3 deletions

View File

@ -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); }

View File

@ -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);