Bugfix: sp_deathcloud erzeugt Einheiten mit 0 Personen, was in movemnet zu einem assert führt.

This commit is contained in:
Enno Rehling 2002-02-17 16:59:29 +00:00
parent bea92bc0f1
commit 5f77569295
1 changed files with 4 additions and 13 deletions

View File

@ -1638,16 +1638,9 @@ readgame(boolean backup)
} }
/* ------------------------------------------------------------- */ /* ------------------------------------------------------------- */
#ifndef NDEBUG #define wc(F, c) putc(c, F);
int space=0; #define wnl(F) putc('\n', F);
# define DOSPACE space=1; #define whs(F, s) fputs(s, F); putc(' ', F)
# define UNSPACE space=0;
#endif
#define wc(F, c) { putc(c, F); UNSPACE }
#define wnl(F) { putc('\n', F); DOSPACE }
/* #define wspace(F) { assert(space); putc(' ', F); DOSPACE } */
#define whs(F, s) { fputs(s, F); putc(' ', F); DOSPACE }
void void
wsn(FILE * F, const char *s) wsn(FILE * F, const char *s)
@ -1663,20 +1656,18 @@ ws(FILE * F, const char *s)
{ {
fputc('"', F); fputc('"', F);
wsn(F, s); wsn(F, s);
fputs("\" ", F); DOSPACE fputs("\" ", F);
} }
void void
wi(FILE * F, int n) wi(FILE * F, int n)
{ {
fprintf(F, "%d ", n); fprintf(F, "%d ", n);
DOSPACE
} }
void wi36(FILE * F, int n) void wi36(FILE * F, int n)
{ {
fprintf(F, "%s ", itoa36(n)); fprintf(F, "%s ", itoa36(n));
DOSPACE
} }
void void