Noch zwei Fehler, die boundschecker gefunden hat.

This commit is contained in:
Enno Rehling 2002-01-21 01:20:45 +00:00
parent 153dcc0a55
commit f375f28a93
3 changed files with 9 additions and 8 deletions

View File

@ -217,7 +217,7 @@ score(void)
f = u->faction; f = u->faction;
if(u->race <= new_race[RC_AQUARIAN]) { if (old_race(u->race) <= RC_AQUARIAN) {
f->score += (u->race->recruitcost * u->number) / 50; f->score += (u->race->recruitcost * u->number) / 50;
} }
f->score += get_money(u) / 50; f->score += get_money(u) / 50;

View File

@ -97,7 +97,7 @@ space_replace(char * str, char replace)
const char * const char *
escape_string(const char * str, char * buffer, unsigned int len) escape_string(const char * str, char * buffer, unsigned int len)
{ {
char s_buffer[4096]; static char s_buffer[4096];
const char * p = str; const char * p = str;
char * o; char * o;
if (buffer==NULL) { if (buffer==NULL) {

View File

@ -812,7 +812,6 @@ give_arena_gates(void)
addmessage(NULL, senior->faction, buf, MSG_MESSAGE, ML_IMPORTANT); addmessage(NULL, senior->faction, buf, MSG_MESSAGE, ML_IMPORTANT);
} }
} }
#endif
static void static void
remove_impossible_dragontargets(void) remove_impossible_dragontargets(void)
@ -844,7 +843,6 @@ remove_impossible_dragontargets(void)
} }
} }
#if 0
static void static void
fix_score_option(void) fix_score_option(void)
{ {
@ -914,7 +912,6 @@ fix_hungrydead(void)
} }
} }
} }
#endif
static void static void
name_seaserpents(void) name_seaserpents(void)
@ -930,6 +927,7 @@ name_seaserpents(void)
} }
} }
} }
#endif
static int static int
old_rroad(region * r) old_rroad(region * r)
@ -1048,6 +1046,7 @@ show_newspells(void)
} }
#if 0
static void static void
fix_feuerwand_orks(void) fix_feuerwand_orks(void)
{ {
@ -1151,6 +1150,7 @@ fix_buildings(void)
vset_destroy(&done); vset_destroy(&done);
fclose(statfile); fclose(statfile);
} }
#endif
extern plane * arena; extern plane * arena;
@ -1616,6 +1616,7 @@ stats(void)
} }
#if 0
static void static void
fix_prices(void) fix_prices(void)
{ {
@ -1690,7 +1691,6 @@ init_region_age(void)
} }
} }
#if 0
static void static void
fix_herbtypes(void) fix_herbtypes(void)
{ {
@ -1787,6 +1787,7 @@ write_skillfix(void)
} }
#endif #endif
#if 0
static void static void
init_mwarden(void) init_mwarden(void)
{ {
@ -1798,6 +1799,7 @@ init_mwarden(void)
a = a_add(&u->attribs, a_new(&at_warden)); a = a_add(&u->attribs, a_new(&at_warden));
a->data.i = 0; a->data.i = 0;
} }
#endif
#ifdef CONVERT_TRIGGER #ifdef CONVERT_TRIGGER
#include "old/relation.h" #include "old/relation.h"
@ -2557,8 +2559,6 @@ convert_resources(void)
} }
return 0; return 0;
} }
#endif
static void static void
fix_negpotion(void) fix_negpotion(void)
@ -2576,6 +2576,7 @@ fix_negpotion(void)
} }
} }
} }
#endif
#if GROWING_TREES #if GROWING_TREES
int int