From a6f1634421371a4c2f3be197fd17ba3d5e87545e Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 17 Nov 2002 08:36:06 +0000 Subject: [PATCH] - Anzeige Allianzen im Mapper --- src/mapper/map_region.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mapper/map_region.c b/src/mapper/map_region.c index dbc649391..61e041ffb 100644 --- a/src/mapper/map_region.c +++ b/src/mapper/map_region.c @@ -30,6 +30,9 @@ #include #include +/* modules includes */ +#include + /* util includes */ #include @@ -365,7 +368,15 @@ showregion(region * r, char full) } for (f = factions; f; f = f->next) if (f->no_units) { +#ifdef ALLIANCES + if(f->alliance != NULL) { + sprintf(buf, " %-26.26s (%s/%d)", f->name, factionid(f), f->alliance->id); + } else { + sprintf(buf, " %-26.26s (%s/-)", f->name, factionid(f)); + } +#else sprintf(buf, " %-29.29s (%s)", f->name, factionid(f)); +#endif adddbllist(®list, buf); sprintf(buf, " Einheiten: %d; Leute: %d %c", f->no_units, f->num_people, Tchar[old_race(f->race)]);