The main page loads, with all of its settings etc., but when I try to load the bsp it crashes, It stops on:
Code: Select all
bool CDemo::OnEvent(SEvent event)
{
if (event.EventType == EET_KEY_INPUT_EVENT &&
event.KeyInput.Key == KEY_ESCAPE &&
event.KeyInput.PressedDown == false)
{
// user wants to quit.
device->closeDevice();
}
else
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) &&
currentScene == 3)
{
// shoot
shoot();
}
else
if (device->getSceneManager()->getActiveCamera())//Hangs here
{
device->getSceneManager()->getActiveCamera()->OnEvent(event);
return true;
}
return false;
}
Anyone care to tell me whats wrong with it? I didn't change any thing in the demo at all. I am trying to get it to run with the new dll.