From 923ea5bcf87b5ffd9310317194910ab2b25ef956 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 20 Aug 2005 18:04:09 +0000 Subject: [PATCH] =?UTF-8?q?http://eressea.upb.de/mantis/view.php=3Fid=3D68?= =?UTF-8?q?3=20Name=20von=20Monumenten=20=C3=A4nderbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/gamecode/laws.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 3650e2ecf..8a1e1c2a8 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -1592,17 +1592,18 @@ name_cmd(unit * u, struct order * ord) cmistake(u, ord, 278, MSG_EVENT); break; } - sprintf(buf, "Monument %d", b->no); - if (b->type == bt_find("monument") - && !strcmp(b->name, buf)) { + if (b->type == bt_find("monument")) { + sprintf(buf, "Monument %d", b->no); + if (strcmp(b->name, buf)!=0) { cmistake(u, ord, 29, MSG_EVENT); break; } - if (b->type == bt_find("artsculpure")) { - cmistake(u, ord, 29, MSG_EVENT); - break; - } - s = &b->name; + } + if (b->type == bt_find("artsculpure")) { + cmistake(u, ord, 29, MSG_EVENT); + break; + } + s = &b->name; } break;