commit 653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Dec 1 21:08:23 2008 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Mon Dec 1 21:08:23 2008 +0000
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(-)
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)