MACHE mit Gebaeude in dem man steht.
This commit is contained in:
Enno Rehling 2008-05-11 22:01:48 +00:00
parent 0c47aab8a2
commit dd85b9b6a0
1 changed files with 3 additions and 1 deletions

View File

@ -834,7 +834,7 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
id = getid(); id = getid();
if (id>0) { /* eine Nummer angegeben, keine neue Burg bauen */ if (id>0) { /* eine Nummer angegeben, keine neue Burg bauen */
b = findbuilding(id); b = findbuilding(id);
if (!b || b->region != u->region){ /* eine Burg mit dieser Nummer gibt es hier nicht */ if (!b || b->region != u->region) { /* eine Burg mit dieser Nummer gibt es hier nicht */
/* vieleicht Tippfehler und die eigene Burg ist gemeint? */ /* vieleicht Tippfehler und die eigene Burg ist gemeint? */
if (u->building && u->building->type==btype) { if (u->building && u->building->type==btype) {
b = u->building; b = u->building;
@ -844,6 +844,8 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
return; return;
} }
} }
} else if (u->building && u->building->type==btype) {
b = u->building;
} }
if (b) btype = b->type; if (b) btype = b->type;