forked from github/server
Stufe bei ZERSTÖRE geht nich Issue: 575
This commit is contained in:
parent
2cebb01c99
commit
4239fdfc9b
|
@ -319,11 +319,11 @@ destroy_road(unit *u, int nmax, struct order * ord)
|
||||||
cmistake(u, ord, 71, MSG_PRODUCE);
|
cmistake(u, ord, 71, MSG_PRODUCE);
|
||||||
} else {
|
} else {
|
||||||
short road = rroad(r, d);
|
short road = rroad(r, d);
|
||||||
road = min(n, road);
|
n = min(n, road);
|
||||||
if (road!=0) {
|
if (n!=0) {
|
||||||
region * r2 = rconnect(r,d);
|
region * r2 = rconnect(r,d);
|
||||||
int willdo = eff_skill(u, SK_ROAD_BUILDING, r)*u->number;
|
int willdo = eff_skill(u, SK_ROAD_BUILDING, r)*u->number;
|
||||||
willdo = min(willdo, road);
|
willdo = min(willdo, n);
|
||||||
if (willdo==0) {
|
if (willdo==0) {
|
||||||
/* TODO: error message */
|
/* TODO: error message */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue