replace last submit (error)

This commit is contained in:
James Turk 2002-12-05 00:10:42 +00:00
parent 4f94fe5bfe
commit 65132f9e2e

View File

@ -13,7 +13,7 @@
File: ZE_ZEngine.cpp <br> File: ZE_ZEngine.cpp <br>
Description: Implementation source file for ZEngine library main singleton class. <br> Description: Implementation source file for ZEngine library main singleton class. <br>
Author(s): James Turk <br> Author(s): James Turk <br>
$Id: ZE_ZEngine.cpp,v 1.5 2002/12/05 00:06:32 cozman Exp $<br> $Id: ZE_ZEngine.cpp,v 1.6 2002/12/05 00:10:42 cozman Exp $<br>
\file ZE_ZEngine.cpp \file ZE_ZEngine.cpp
\brief Central source file for ZEngine. \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) if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO) < 0)
{ {
LogError(FormatStr("SDL could not be Initialized: %s", SDL_GetError())); LogError(FormatStr("SDL could not be Initialized: %s", SDL_GetError()));
CloseDisplay();
} }
#ifdef USE_SDL_MIXER #ifdef USE_SDL_MIXER
@ -310,7 +311,7 @@ bool ZEngine::KeyIsPressed(SDLKey key)
bool ZEngine::KeyPress(SDLKey key) bool ZEngine::KeyPress(SDLKey key)
{ {
bool temp = mKeyPress[key]; bool temp = mKeyPress[key];
// mKeyPress[key] = false; mKeyPress[key] = false;
return temp; return temp;
} }