Name von Monumenten änderbar
This commit is contained in:
Enno Rehling 2005-08-20 18:04:09 +00:00
parent 0127f3446c
commit 923ea5bcf8
1 changed files with 9 additions and 8 deletions

View File

@ -1592,17 +1592,18 @@ name_cmd(unit * u, struct order * ord)
cmistake(u, ord, 278, MSG_EVENT); cmistake(u, ord, 278, MSG_EVENT);
break; break;
} }
sprintf(buf, "Monument %d", b->no); if (b->type == bt_find("monument")) {
if (b->type == bt_find("monument") sprintf(buf, "Monument %d", b->no);
&& !strcmp(b->name, buf)) { if (strcmp(b->name, buf)!=0) {
cmistake(u, ord, 29, MSG_EVENT); cmistake(u, ord, 29, MSG_EVENT);
break; break;
} }
if (b->type == bt_find("artsculpure")) { }
cmistake(u, ord, 29, MSG_EVENT); if (b->type == bt_find("artsculpure")) {
break; cmistake(u, ord, 29, MSG_EVENT);
} break;
s = &b->name; }
s = &b->name;
} }
break; break;