const bugfix

This commit is contained in:
Enno Rehling 2001-02-14 20:09:49 +00:00
parent e211a578eb
commit 7e6c387db8
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: battle.c,v 1.14 2001/02/14 09:17:56 enno Exp $ * $Id: battle.c,v 1.15 2001/02/14 20:09:48 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -443,7 +443,7 @@ tactics_bonus(troop at, troop dt, boolean attacking)
#endif /* NEW_TACTICS */ #endif /* NEW_TACTICS */
int int
get_unitrow(const fighter * af) get_unitrow(fighter * af)
{ {
static boolean * counted = NULL; static boolean * counted = NULL;
static size_t csize = 0; static size_t csize = 0;
@ -514,7 +514,7 @@ get_unitrow(const fighter * af)
} }
static int static int
sort_fighterrow(const fighter ** elem1, const fighter ** elem2) sort_fighterrow(fighter ** elem1, fighter ** elem2)
{ {
int a, b; int a, b;

View File

@ -223,7 +223,7 @@ extern int hits(troop at, troop dt, weapon * awp);
extern void damage_building(struct battle *b, struct building *bldg, int damage_abs); extern void damage_building(struct battle *b, struct building *bldg, int damage_abs);
extern struct cvector * fighters(struct battle *b, struct fighter *af, int minrow, int maxrow, int mask); extern struct cvector * fighters(struct battle *b, struct fighter *af, int minrow, int maxrow, int mask);
extern int countallies(struct side * as); extern int countallies(struct side * as);
extern int get_unitrow(const struct fighter * af); extern int get_unitrow(struct fighter * af);
extern boolean helping(struct side * as, struct side * ds); extern boolean helping(struct side * as, struct side * ds);
extern void rmtroop(struct troop dt); extern void rmtroop(struct troop dt);
extern struct region * fleeregion(const struct unit * u); extern struct region * fleeregion(const struct unit * u);

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: main.c,v 1.16 2001/02/14 01:38:51 enno Exp $ * $Id: main.c,v 1.17 2001/02/14 20:09:49 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -459,6 +459,7 @@ read_args(int argc, char **argv)
if (strcmp(argv[i]+1, "nocr")==0) nocr = true; if (strcmp(argv[i]+1, "nocr")==0) nocr = true;
else if (strcmp(argv[i]+2, "nosave")==0) nowrite = true; else if (strcmp(argv[i]+2, "nosave")==0) nowrite = true;
else if (strcmp(argv[i]+2, "nonr")==0) nonr = true; else if (strcmp(argv[i]+2, "nonr")==0) nonr = true;
else if (strcmp(argv[i]+2, "nocr")==0) nocr = true;
else if (strcmp(argv[i]+2, "nomsg")==0) nomsg = true; else if (strcmp(argv[i]+2, "nomsg")==0) nomsg = true;
else if (strcmp(argv[i]+2, "nobattle")==0) nobattle = true; else if (strcmp(argv[i]+2, "nobattle")==0) nobattle = true;
else if (strcmp(argv[i]+2, "nodebug")==0) nobattledebug = true; else if (strcmp(argv[i]+2, "nodebug")==0) nobattledebug = true;