ref: 653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa
parent: 21d9d4e22c4619d388344174d9fd5750e9f2ab1d
author: Simon Howard <[email protected]>
date: Mon Dec 1 16:08:23 EST 2008
Don't try to read SDL events until initialised. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1394
--- 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 @@
//
void I_StartTic (void)
{
+ if (!initialised)
+ {
+ return;
+ }
+
I_GetEvent();
if (usemouse && !nomouse)