From 653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 1 Dec 2008 21:08:23 +0000 Subject: Don't try to read SDL events until initialised. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1394 --- src/i_video.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/i_video.c b/src/i_video.c index 0fe25736..a4129aba 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -20,7 +20,7 @@ // 02111-1307, USA. // // DESCRIPTION: -// DOOM graphics stuff for X11, UNIX. +// DOOM graphics stuff for SDL. // //----------------------------------------------------------------------------- @@ -588,6 +588,11 @@ static void I_ReadMouse(void) // void I_StartTic (void) { + if (!initialised) + { + return; + } + I_GetEvent(); if (usemouse && !nomouse) -- cgit v1.2.3