[Clonekeenplus-commits] [SCM] clonekeenplus branch, master, updated. 9c57fd54d62f25591c10f2b026d225
Commander Keen Interpreter
Brought to you by:
gerstrong
From: Gerstrong <ger...@us...> - 2011-08-15 14:30:53
|
via 9c57fd54d62f25591c10f2b026d2256496504a42 (commit) from 9c82823625bc023c3d0e1e5e2f55a78b339449e2 (commit) - Log ----------------------------------------------------------------- commit 9c57fd54d62f25591c10f2b026d2256496504a42 Author: Gerstrong <ger...@gm...> Date: Mon Aug 15 16:29:53 2011 +0200 Lindsey improvements ----------------------------------------------------------------------- Summary of changes: src/engine/galaxy/ai/ep4/CLindsey.cpp | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/engine/galaxy/ai/ep4/CLindsey.cpp b/src/engine/galaxy/ai/ep4/CLindsey.cpp index 6a86fe2..17c6116 100644 --- a/src/engine/galaxy/ai/ep4/CLindsey.cpp +++ b/src/engine/galaxy/ai/ep4/CLindsey.cpp @@ -55,17 +55,27 @@ void CLindsey::getTouchedBy(CObject &theObject) g_pSound->playSound(SOUND_GET_WETSUIT, PLAY_PAUSEALL); - std::string lindsey_text[4]; + std::string lindsey_text[3]; lindsey_text[0] = g_pBehaviorEngine->getString(answermap[0]); - lindsey_text[1] = g_pBehaviorEngine->getString(answermap[1]); - lindsey_text[2] = g_pBehaviorEngine->getString(answermap[2]); - lindsey_text[3] = g_pBehaviorEngine->getString(answermap[3+(rand()%2)]); + + + Uint16 cur_level = mp_Map->getLevel(); + if(cur_level > 5) + { + lindsey_text[1] = g_pBehaviorEngine->getString(answermap[1]); + lindsey_text[2] = g_pBehaviorEngine->getString(answermap[3]); + } + else + { + lindsey_text[1] = g_pBehaviorEngine->getString(answermap[2]); + lindsey_text[2] = g_pBehaviorEngine->getString(answermap[4]); + } + EventContainer.add( new EventSendBitmapDialogMsg(108, lindsey_text[0], LEFT) ); EventContainer.add( new EventSendBitmapDialogMsg(108, lindsey_text[1], LEFT) ); - EventContainer.add( new EventSendBitmapDialogMsg(108, lindsey_text[2], RIGHT) ); - EventContainer.add( new EventSendBitmapDialogMsg(106, lindsey_text[3], RIGHT) ); + EventContainer.add( new EventSendBitmapDialogMsg(106, lindsey_text[2], RIGHT) ); exists = false; } hooks/post-receive -- clonekeenplus |