]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
avoid NULL pointer access if a surface had an unsupported type
[xonotic/darkplaces.git] / console.c
index e23de5bba4bed7e0d5a11f54692462f74a214e6a..7c0499ad535320a4ea1019c1218c62ed38c1d4dc 100644 (file)
--- a/console.c
+++ b/console.c
@@ -19,13 +19,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // console.c
 
-#include "quakedef.h"
-
 #if !defined(WIN32) || defined(__MINGW32__)
 # include <unistd.h>
 #endif
 #include <time.h>
 
+#include "quakedef.h"
+
 // for u8_encodech
 #include "ft2.h"
 
@@ -1049,7 +1049,7 @@ void Con_MaskPrint(int additionalmask, const char *msg)
                                {
                                        if (con_chatsound.value)
                                        {
-                                               if(gamemode == GAME_NEXUIZ)
+                                               if(gamemode == GAME_NEXUIZ || gamemode == GAME_XONOTIC)
                                                {
                                                        if(msg[1] == '\r' && cl.foundtalk2wav)
                                                                S_LocalSound ("sound/misc/talk2.wav");