converting output to stdio for windows CP1252

This commit is contained in:
Enno Rehling 2007-10-28 23:13:46 +00:00
parent c2c276e0d3
commit d6cce4fb40
4 changed files with 4 additions and 13 deletions

View file

@ -3670,7 +3670,7 @@ process(void)
printf("- Step %u\n", prio);
while (proc && proc->priority==prio) {
if (proc->name) printf(" - %s\n", proc->name);
if (proc->name) log_stdio(stdout, " - %s\n", proc->name);
proc = proc->next;
}

View file

@ -3992,7 +3992,7 @@ do_battle(region * r)
do_combatmagic(b, DO_PRECOMBATSPELL);
print_stats(b); /* gibt die Kampfaufstellung aus */
printf("%s (%d, %d) : ", rname(r, NULL), r->x, r->y);
log_stdio(stdout, "%s (%d, %d) : ", rname(r, NULL), r->x, r->y);
for (;battle_report(b) && b->turn<=COMBAT_TURNS;++b->turn) {
if (bdebug) {

View file

@ -737,7 +737,7 @@ verify_data(void)
if (u->number > UNIT_MAXSIZE) {
if (lf != f->no) {
lf = f->no;
printf("Partei %s:\n", factionid(f));
log_stdio(stdout, "Partei %s:\n", factionid(f));
}
log_warning(("Einheit %s hat %d Personen\n", unitid(u), u->number));
}
@ -2224,7 +2224,7 @@ remove_empty_factions(boolean writedropouts)
if ((f->units==NULL || f->alive == 0) && f->no != MONSTER_FACTION) {
ursprung * ur = f->ursprung;
while (ur && ur->id!=0) ur=ur->next;
if (!quiet) printf("\t%s\n", factionname(f));
if (!quiet) log_stdio(stdout, "\t%s\n", factionname(f));
/* Einfach in eine Datei schreiben und später vermailen */

View file

@ -1258,19 +1258,10 @@ fumble(region * r, unit * u, const spell * sp, int cast_grade)
/* wenn die Chance kleiner als 0 ist, können wir gleich false
* zurückgeben */
if (patzer <= 0) {
#ifdef PATZERDEBUG
printf("%s: Zauber Stufe %d, Talent %d, Patzerchance %d\n",
unitname(u), cast_grade, eff_skill(u, SK_MAGIC, r), patzer);
#endif
return false;
}
rnd = rng_int()%100;
#ifdef PATZERDEBUG
printf("%s: Zauber Stufe %d, Talent %d, Patzerchance %d, rand: %d\n",
unitname(u), cast_grade, eff_skill(u, SK_MAGIC, r), patzer, rnd);
#endif
if (rnd > patzer) {
/* Glück gehabt, kein Patzer */
return false;