*/
void globalsound(int channel, entity from, entity gs, float r, int chan, float vol, float atten)
{
- assert(IS_PLAYER(from));
+ assert(IS_PLAYER(from), eprint(from));
if (channel == MSG_ONE && !IS_REAL_CLIENT(msg_entity)) return;
WriteHeader(channel, globalsound);
WriteByte(channel, gs.m_id);
*/
void playersound(int channel, entity from, entity ps, float r, int chan, float vol, float atten)
{
- assert(IS_PLAYER(from));
+ assert(IS_PLAYER(from), eprint(from));
if (channel == MSG_ONE && !IS_REAL_CLIENT(msg_entity)) return;
WriteHeader(channel, playersound);
WriteByte(channel, ps.m_id);
} \
while (0)
-#define assert(expr, ...) _assert(LOG_WARNING, expr, __VA_ARGS__)
+#define assert(expr, ...) _assert(LOG_SEVERE, expr, __VA_ARGS__)
#define ASSERT(expr, ...) _assert(LOG_FATAL, expr, __VA_ARGS__)
#define _assert(f, expr, then) \
do \