[Now a size 2 tradepost is not enough to trade anymore]
This commit is contained in:
Enno Rehling 2005-04-09 14:46:45 +00:00
parent c403a43146
commit 1b56db93d9
1 changed files with 9 additions and 2 deletions

View File

@ -1775,7 +1775,7 @@ buy(unit * u, request ** buyorders, struct order * ord)
static const struct building_type * bt_castle;
if (!bt_castle) bt_castle = bt_find("castle");
for (b=r->buildings;b;b=b->next) {
if (b->type==bt_castle && b->size>2) break;
if (b->type==bt_castle && b->size>=2) break;
}
if (b==NULL) {
cmistake(u, ord, 119, MSG_COMMERCE);
@ -2061,7 +2061,14 @@ sell(unit * u, request ** sellorders, struct order * ord)
return false;
}
} else {
if (!rbuildings(r)) {
/* ...oder in der Region muß es eine Burg geben. */
building * b;
static const struct building_type * bt_castle;
if (!bt_castle) bt_castle = bt_find("castle");
for (b=r->buildings;b;b=b->next) {
if (b->type==bt_castle && b->size>=2) break;
}
if (b==NULL) {
cmistake(u, ord, 119, MSG_COMMERCE);
return false;
}