forked from github/server
Bug 2113: player-owned dragons did not get movement bonuses.
https://bugs.eressea.de/view.php?id=2113
This commit is contained in:
parent
94ec39d7bb
commit
0ee76ea8dd
|
@ -1485,7 +1485,7 @@ static void make_route(unit * u, order * ord, region_list ** routep)
|
||||||
*/
|
*/
|
||||||
static int movement_speed(unit * u)
|
static int movement_speed(unit * u)
|
||||||
{
|
{
|
||||||
int mp;
|
int mp = BP_WALKING;
|
||||||
static const curse_type *speed_ct;
|
static const curse_type *speed_ct;
|
||||||
static bool init = false;
|
static bool init = false;
|
||||||
double dk = u_race(u)->speed;
|
double dk = u_race(u)->speed;
|
||||||
|
@ -1496,9 +1496,11 @@ static int movement_speed(unit * u)
|
||||||
case RC_DRAGON:
|
case RC_DRAGON:
|
||||||
case RC_WYRM:
|
case RC_WYRM:
|
||||||
case RC_FIREDRAGON:
|
case RC_FIREDRAGON:
|
||||||
|
return BP_DRAGON;
|
||||||
case RC_BIRTHDAYDRAGON:
|
case RC_BIRTHDAYDRAGON:
|
||||||
case RC_SONGDRAGON:
|
case RC_SONGDRAGON:
|
||||||
return BP_DRAGON;
|
mp = BP_DRAGON;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1516,7 +1518,6 @@ static int movement_speed(unit * u)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (canride(u)) {
|
switch (canride(u)) {
|
||||||
|
|
||||||
case 1: /* Pferd */
|
case 1: /* Pferd */
|
||||||
mp = BP_RIDING;
|
mp = BP_RIDING;
|
||||||
break;
|
break;
|
||||||
|
@ -1526,8 +1527,6 @@ static int movement_speed(unit * u)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
mp = BP_WALKING;
|
|
||||||
|
|
||||||
/* Siebenmeilentee */
|
/* Siebenmeilentee */
|
||||||
if (get_effect(u, oldpotiontype[P_FAST]) >= u->number) {
|
if (get_effect(u, oldpotiontype[P_FAST]) >= u->number) {
|
||||||
mp *= 2;
|
mp *= 2;
|
||||||
|
|
Loading…
Reference in New Issue