From 90437d1765eaf8b17cb9575632cb95739cfe80c2 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 1 Jan 2014 16:45:08 +0100 Subject: Fixed two bugs in dc81cda4b1f27af6fe8abcd566ffac03255f2642 * win/end scene animations * produce() was producing empty cells --- src/object/robotmain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/object/robotmain.cpp') diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index f8db286..0d95907 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -4630,6 +4630,13 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject) trainer = OpInt(line, "trainer", 0), OpInt(line, "toy", 0), OpInt(line, "option", 0)); + + if (m_fixScene && type == OBJECT_HUMAN) + { + CMotion* motion = obj->GetMotion(); + if (m_phase == PHASE_WIN ) motion->SetAction(MHS_WIN, 0.4f); + if (m_phase == PHASE_LOST) motion->SetAction(MHS_LOST, 0.5f); + } if (obj != nullptr) { -- cgit v1.2.3-1-g7c22