]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Assert harder
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 3 Dec 2015 07:39:05 +0000 (18:39 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 3 Dec 2015 07:39:19 +0000 (18:39 +1100)
qcsrc/common/effects/qc/globalsound.qc
qcsrc/lib/log.qh

index 4f942ef0cbf2fc85417f12f151c2b6b534d9398e..4b38615f6ef40592aa457ed2d810ddac56f2e626 100644 (file)
@@ -20,7 +20,7 @@
                 */
                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);
@@ -43,7 +43,7 @@
                */
                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);
index 2a35e8e9a205a36570c88728a793f590eb879ba5..af2bab0f486a94b95a6795110f87a08c5d24fa1e 100644 (file)
@@ -12,7 +12,7 @@
        } \
        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 \