diff options
author | Simon Howard | 2008-12-01 21:08:23 +0000 |
---|---|---|
committer | Simon Howard | 2008-12-01 21:08:23 +0000 |
commit | 653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa (patch) | |
tree | 89d990e3bd9bd49d6125bb1c73bc1936f6e24f6a /src | |
parent | 21d9d4e22c4619d388344174d9fd5750e9f2ab1d (diff) | |
download | chocolate-doom-653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa.tar.gz chocolate-doom-653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa.tar.bz2 chocolate-doom-653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa.zip |
Don't try to read SDL events until initialised.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1394
Diffstat (limited to 'src')
-rw-r--r-- | src/i_video.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) |