cameraNode->pitch(Degree(90), Node::TS_LOCAL);
gameOver = true;
msgBoard->setCaption("You were killed. Game over :| (Press Esc)");
- gettimeofday(&msgTime, NULL);
+ //gettimeofday(&msgTime, NULL);
gameOver = true;
bool ret = BaseApplication::frameRenderingQueued(evt);
+
+
return ret;
// exit();
localPlayer->PunchesReceivedAck >= 10 &&
localPlayer->WavesReceivedAck >= 10)
{
- SceneNode* board = mSceneMgr->getSceneNode("MsgBoard");
+ /* SceneNode* board = mSceneMgr->getSceneNode("MsgBoard");
board->detachAllObjects();
board->_update(true,true);
/*msgBoard->detachFromParent();
struct timeval now;
struct timeval timeLeft;
gettimeofday(&now, NULL);
-
- timersub(&gameEnd, &now, &timeLeft);
- caption = caption + StringConverter::toString(timeLeft.tv_sec);
+ if (gameOver)
+ {
+ caption = caption + "0";
+ }
+ else
+ {
+ timersub(&gameEnd, &now, &timeLeft);
+ caption = caption + StringConverter::toString(timeLeft.tv_sec);
+
+ if (timeLeft.tv_sec <= 0)
+ exit();
+ }
timeBoard->setCaption(caption);
- if (timeLeft.tv_sec <= 0)
- exit();
+
}