From 0ee76ea8dd6ff1814a51f03aa11b7b7cf97abf3b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 26 Jun 2015 20:12:01 +0200 Subject: [PATCH] Bug 2113: player-owned dragons did not get movement bonuses. https://bugs.eressea.de/view.php?id=2113 --- src/move.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/move.c b/src/move.c index 0812ae794..f1e33fb19 100644 --- a/src/move.c +++ b/src/move.c @@ -1485,7 +1485,7 @@ static void make_route(unit * u, order * ord, region_list ** routep) */ static int movement_speed(unit * u) { - int mp; + int mp = BP_WALKING; static const curse_type *speed_ct; static bool init = false; double dk = u_race(u)->speed; @@ -1496,9 +1496,11 @@ static int movement_speed(unit * u) case RC_DRAGON: case RC_WYRM: case RC_FIREDRAGON: + return BP_DRAGON; case RC_BIRTHDAYDRAGON: case RC_SONGDRAGON: - return BP_DRAGON; + mp = BP_DRAGON; + break; default: break; } @@ -1516,7 +1518,6 @@ static int movement_speed(unit * u) } switch (canride(u)) { - case 1: /* Pferd */ mp = BP_RIDING; break; @@ -1526,8 +1527,6 @@ static int movement_speed(unit * u) break; default: - mp = BP_WALKING; - /* Siebenmeilentee */ if (get_effect(u, oldpotiontype[P_FAST]) >= u->number) { mp *= 2;