From b5a6ee157356a74723372774de54fd28bff790ee Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 16 Jan 2001 17:34:38 +0000 Subject: [PATCH] --- source/game/game.cpp | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/source/game/game.cpp b/source/game/game.cpp index f59e124d3..29c590faa 100644 --- a/source/game/game.cpp +++ b/source/game/game.cpp @@ -60,13 +60,13 @@ void CGameScene::init() m_conversation.init(); Level.init(); - m_player=new ("player") CPlayer(); - m_player->init(); - C2dEnemy *enemy; enemy=new ("test enemy") C2dEnemy; enemy->init(); + m_player=new ("player") CPlayer(); + m_player->init(); + CAnimDB::LoadAnims(); SetIdentNoTrans(&CamMtx); @@ -80,6 +80,7 @@ void CGameScene::init() void CGameScene::shutdown() { m_player->shutdown(); delete m_player; + CThing::shutdownAndDeleteAllThings(); Level.shutdown(); m_conversation.shutdown(); @@ -99,17 +100,20 @@ void CGameScene::render() /*****************************************************************************/ void CGameScene::think(int _frames) { - m_conversation.think(_frames); +#ifdef __USER_paul__ + if(!m_conversation.isActive()&&PadGetDown(0)&PAD_START) + { + m_conversation.trigger(SCRIPTS_SPEECHTEST_DAT); + } +#endif + + m_conversation.think(_frames); + if(!m_conversation.isActive()) + { CThing::thinkAllThings(_frames); Level.setCameraCentre(m_player->getPos()); Level.think(_frames); - -#ifdef __USER_paul__ - if(!m_conversation.isActive()&&PadGetDown(0)&PAD_START) - { - m_conversation.trigger(SCRIPTS_SPEECHTEST_DAT); - } -#endif + } } /*****************************************************************************/