diff --git a/src/ZE_ZEngine.cpp b/src/ZE_ZEngine.cpp
index 9ab0e6a..ac20e2e 100644
--- a/src/ZE_ZEngine.cpp
+++ b/src/ZE_ZEngine.cpp
@@ -13,7 +13,7 @@
File: ZE_ZEngine.cpp
Description: Implementation source file for ZEngine library main singleton class.
Author(s): James Turk
-$Id: ZE_ZEngine.cpp,v 1.5 2002/12/05 00:06:32 cozman Exp $
+$Id: ZE_ZEngine.cpp,v 1.6 2002/12/05 00:10:42 cozman Exp $
\file ZE_ZEngine.cpp
\brief Central source file for ZEngine.
@@ -103,6 +103,7 @@ void ZEngine::CreateDisplay(string title, string icon)
if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO) < 0)
{
LogError(FormatStr("SDL could not be Initialized: %s", SDL_GetError()));
+ CloseDisplay();
}
#ifdef USE_SDL_MIXER
@@ -310,7 +311,7 @@ bool ZEngine::KeyIsPressed(SDLKey key)
bool ZEngine::KeyPress(SDLKey key)
{
bool temp = mKeyPress[key];
-// mKeyPress[key] = false;
+ mKeyPress[key] = false;
return temp;
}