forked from github/server
compilation fixes gcc
This commit is contained in:
parent
2d2563f521
commit
b571a2007c
|
@ -1220,7 +1220,6 @@ cr_output_region(FILE * F, report_context * ctx, seen_region * sr)
|
||||||
region_list *rl2 = rl;
|
region_list *rl2 = rl;
|
||||||
while(rl2) {
|
while(rl2) {
|
||||||
region * r = rl2->data;
|
region * r = rl2->data;
|
||||||
plane * pl = rplane(r);
|
|
||||||
int nx = region_x(r, f), ny = region_y(r, f);
|
int nx = region_x(r, f), ny = region_y(r, f);
|
||||||
fprintf(F, "SCHEMEN %d %d\n", nx, ny);
|
fprintf(F, "SCHEMEN %d %d\n", nx, ny);
|
||||||
fprintf(F, "\"%s\";Name\n", rname(r, f->locale));
|
fprintf(F, "\"%s\";Name\n", rname(r, f->locale));
|
||||||
|
|
|
@ -874,7 +874,6 @@ static int
|
||||||
autoalliance(const plane * pl, const faction * sf, const faction * f2)
|
autoalliance(const plane * pl, const faction * sf, const faction * f2)
|
||||||
{
|
{
|
||||||
static boolean init = false;
|
static boolean init = false;
|
||||||
static int automode;
|
|
||||||
if (!init) {
|
if (!init) {
|
||||||
init_gms();
|
init_gms();
|
||||||
init = true;
|
init = true;
|
||||||
|
@ -1186,7 +1185,7 @@ int
|
||||||
count_all(const faction * f)
|
count_all(const faction * f)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
int n = 0, nunits = 0;
|
int n = 0;
|
||||||
unit *u;
|
unit *u;
|
||||||
for (u=f->units;u;u=u->nextF) {
|
for (u=f->units;u;u=u->nextF) {
|
||||||
if (playerrace(u->race)) {
|
if (playerrace(u->race)) {
|
||||||
|
|
|
@ -118,7 +118,6 @@ write_regionname(const region * r, const faction * f, char * buffer, size_t size
|
||||||
if (r==NULL) {
|
if (r==NULL) {
|
||||||
strcpy(buf, "(null)");
|
strcpy(buf, "(null)");
|
||||||
} else {
|
} else {
|
||||||
plane * pl = rplane(r);
|
|
||||||
int nx = region_x(r, f), ny = region_y(r, f);
|
int nx = region_x(r, f), ny = region_y(r, f);
|
||||||
snprintf(buf, size, "%s (%d,%d)", rname(r, lang), nx, ny);
|
snprintf(buf, size, "%s (%d,%d)", rname(r, lang), nx, ny);
|
||||||
}
|
}
|
||||||
|
|
|
@ -484,7 +484,6 @@ prepare_starting_region(region * r)
|
||||||
int
|
int
|
||||||
autoseed(newfaction ** players, int nsize, int max_agediff)
|
autoseed(newfaction ** players, int nsize, int max_agediff)
|
||||||
{
|
{
|
||||||
int x = 0, y = 0;
|
|
||||||
region * r = NULL;
|
region * r = NULL;
|
||||||
region_list * rlist = NULL;
|
region_list * rlist = NULL;
|
||||||
int rsize = 0, tsize = 0;
|
int rsize = 0, tsize = 0;
|
||||||
|
|
Loading…
Reference in New Issue