forked from github/server
undead could still not give away items to peasants.
This commit is contained in:
parent
cae86ae4d5
commit
6873e0d870
File diff suppressed because it is too large
Load Diff
|
@ -304,13 +304,18 @@ destroy_road(unit *u, int n, const char *cmd)
|
|||
int road = rroad(r, d);
|
||||
region * r2 = rconnect(r,d);
|
||||
willdo = min(willdo, road);
|
||||
if (willdo==0) {
|
||||
/* TODO: error message */
|
||||
}
|
||||
#if 0
|
||||
salvage = willdo / divy;
|
||||
change_item(u, I_STONE, salvage);
|
||||
#endif
|
||||
rsetroad(r, d, road - willdo);
|
||||
add_message(&u->faction->msgs, new_message(
|
||||
u->faction, "destroy_road%u:unit%r:from%r:to", u, r, r2));
|
||||
if (road!=0 && road <= willdo) {
|
||||
add_message(&u->faction->msgs, new_message(
|
||||
u->faction, "destroy_road%u:unit%r:from%r:to", u, r, r2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue