Fixing non-compilable state of the game

This commit is contained in:
Enno Rehling 2003-10-05 07:29:31 +00:00
parent 29f5839ab5
commit 52bab772ec
2 changed files with 6 additions and 6 deletions

View File

@ -1321,9 +1321,9 @@ stats(void)
for (itype=itemtypes;itype;itype=itype->next) { for (itype=itemtypes;itype;itype=itype->next) {
stats_t * itm = s_find(items, itype); stats_t * itm = s_find(items, itype);
if (itm && itm->number>0.0) if (itm && itm->number>0.0)
fprintf(F, "%4.0lf %s\n", itm->number, locale_string(NULL, resourcename(itype->rtype, 0))); fprintf(F, "%4.0f %s\n", itm->number, locale_string(NULL, resourcename(itype->rtype, 0)));
else else
fprintf(F, "%4.0lf %s\n", 0.0, locale_string(NULL, resourcename(itype->rtype, 0))); fprintf(F, "%4.0f %s\n", 0.0, locale_string(NULL, resourcename(itype->rtype, 0)));
} }
fclose(F); fclose(F);
} else { } else {
@ -2835,7 +2835,7 @@ korrektur(void)
#ifdef ENHANCED_QUIT #ifdef ENHANCED_QUIT
no_teurefremde(0); no_teurefremde(0);
#else #else
no_teurefremde(1) no_teurefremde(1);
#endif #endif
update_igjarjuk_quest(); update_igjarjuk_quest();
fix_allies(); fix_allies();

View File

@ -147,7 +147,7 @@ crwritemap(void)
} }
static void static void
game_init(const char *executable_name) game_init(void)
{ {
init_triggers(); init_triggers();
init_xmas(); init_xmas();
@ -163,7 +163,7 @@ game_init(const char *executable_name)
register_spells(); register_spells();
register_dungeon(); register_dungeon();
init_data(xmlfile?xmlfile:executable_name); init_data(xmlfile?xmlfile:"eressea.xml");
init_locales(); init_locales();
init_attributes(); init_attributes();
@ -690,7 +690,7 @@ main(int argc, char *argv[])
if ((i=read_datenames(zText))!=0) return i; if ((i=read_datenames(zText))!=0) return i;
kernel_init(); kernel_init();
game_init(basename(argv[0])); game_init();
#if defined(BETA_CODE) #if defined(BETA_CODE)
/* xml_writeships(); */ /* xml_writeships(); */
/* xml_writebuildings(); */ /* xml_writebuildings(); */