diff --git a/src/battle.c b/src/battle.c index efaefd19c..7e3373019 100644 --- a/src/battle.c +++ b/src/battle.c @@ -3986,6 +3986,7 @@ static void do_battle(region * r) { battle *b = NULL; bool fighting; ship *sh; + int i; fighting = start_battle(r, &b); @@ -4007,6 +4008,18 @@ static void do_battle(region * r) { join_allies(b); make_heroes(b); + /* statistics are fun */ + for (i = 0; i != b->nsides; ++i) { + side *s = b->sides + i; + if (s->faction->flags & FFL_NPC) { + stats_count("battle.pve", 1); + break; + } + } + if (i == b->nsides) { + stats_count("battle.pvp", 1); + } + /* make sure no ships are damaged initially */ for (sh = r->ships; sh; sh = sh->next) freset(sh, SF_DAMAGED); diff --git a/src/creport.c b/src/creport.c index 9776c4d76..4fb9a50b2 100644 --- a/src/creport.c +++ b/src/creport.c @@ -462,7 +462,7 @@ static int cr_regions(variant var, const char *name, char *buffer, const void *u z = plane_id(pl); wp += sprintf(wp, ", %d %d %d", nx, ny, z); } - wp += sprintf(wp, "\"%s\n", name); + wp += sprintf(wp, "\";%s\n", name); } else { sprintf(buffer, "\"\";%s\n", name);