forked from github/server
Beim schreiben von Attributen etwas Ordnung gemacht.
Einige Attribute haben _nicht_ ihre schreibroutine mit einem space terminiert, was sie müssen, damit es nicht sowas gibt: road 2 0 0 1 0 50 0end
This commit is contained in:
parent
bc0e8549b9
commit
7d2ea7b398
|
@ -433,7 +433,7 @@ b_writeroad(const border * b, FILE *f)
|
||||||
x = (int)b->data;
|
x = (int)b->data;
|
||||||
y = x & 0xFFFF;
|
y = x & 0xFFFF;
|
||||||
x = (x >> 16) & 0xFFFF;
|
x = (x >> 16) & 0xFFFF;
|
||||||
fprintf(f, "%d %d", x, y);
|
fprintf(f, "%d %d ", x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
|
|
|
@ -301,7 +301,6 @@ a_write(FILE * f, const attrib * attribs)
|
||||||
assert(na->type->hashkey || !"attribute not registered");
|
assert(na->type->hashkey || !"attribute not registered");
|
||||||
fprintf(f, "%s ", na->type->name);
|
fprintf(f, "%s ", na->type->name);
|
||||||
na->type->write(na, f);
|
na->type->write(na, f);
|
||||||
putc(' ', f);
|
|
||||||
}
|
}
|
||||||
na = na->next;
|
na = na->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue