forked from github/server
converting output to stdio for windows CP1252
This commit is contained in:
parent
c2c276e0d3
commit
d6cce4fb40
4 changed files with 4 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue