Fix compile warnings in Demo.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2793 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2009-11-04 00:47:29 +00:00
parent 95b4283a27
commit 23ed479fd7
2 changed files with 8 additions and 8 deletions

View File

@ -148,11 +148,11 @@ bool CDemo::OnEvent(const SEvent& event)
device->closeDevice();
}
else
if ((event.EventType == EET_KEY_INPUT_EVENT &&
if (((event.EventType == EET_KEY_INPUT_EVENT &&
event.KeyInput.Key == KEY_SPACE &&
event.KeyInput.PressedDown == false) ||
(event.EventType == EET_MOUSE_INPUT_EVENT &&
event.MouseInput.Event == EMIE_LMOUSE_LEFT_UP) &&
event.MouseInput.Event == EMIE_LMOUSE_LEFT_UP)) &&
currentScene == 3)
{
// shoot

View File

@ -90,7 +90,7 @@ bool CMainMenu::run(bool& outFullscreen, bool& outMusic, bool& outShadows,
// add about text
wchar_t* text2 = L"This is the tech demo of the Irrlicht engine. To start, "\
const wchar_t* text2 = L"This is the tech demo of the Irrlicht engine. To start, "\
L"select a video driver which works best with your hardware and press 'Start Demo'.\n"\
L"What you currently see is displayed using the Burning Software Renderer (Thomas Alten).\n"\
L"The Irrlicht Engine was written by me, Nikolaus Gebhardt. The models, "\
@ -142,11 +142,11 @@ bool CMainMenu::run(bool& outFullscreen, bool& outMusic, bool& outShadows,
const SLightParticle lightParticle[] =
{
//LIGHT_GLOBAL,0,
LIGHT_RED,0,
LIGHT_BLUE,0,
LIGHT_RED,1,
LIGHT_BLUE,1,
LIGHT_NONE,0
{LIGHT_RED,0},
{LIGHT_BLUE,0},
{LIGHT_RED,1},
{LIGHT_BLUE,1},
{LIGHT_NONE,0}
};
const SLightParticle *l = lightParticle;