From 4072c534ff70ae65bfe8268d7a9a1275f46efea0 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 8 Aug 2017 18:22:19 +0200 Subject: [PATCH] Walk for bulding a wall or a tower must not reduce the life quickly The problem appears when Blupi is far of the stones. When the action is building a wall or a tower, the life when walking was reducing very quickly and it makes no sense in this case. --- src/decblupi.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/decblupi.cxx b/src/decblupi.cxx index 6da30e1..34f1614 100644 --- a/src/decblupi.cxx +++ b/src/decblupi.cxx @@ -2548,8 +2548,9 @@ bool CDecor::BlupiNextAction (Sint32 rank) a = 1; min = 0; if ( - m_blupi[rank].goalAction == EV_ACTION_WALL || - m_blupi[rank].goalAction == EV_ACTION_TOWER) + m_blupi[rank].action != ACTION_MARCHE && + (m_blupi[rank].goalAction == EV_ACTION_WALL || + m_blupi[rank].goalAction == EV_ACTION_TOWER)) { a = 5; min = 1;