prettification

This commit is contained in:
Enno Rehling 2009-08-10 17:48:18 +00:00
parent 5e99b9930f
commit 4af4714883
2 changed files with 6 additions and 4 deletions

View File

@ -1131,9 +1131,11 @@ quit_cmd(unit * u, struct order * ord)
} }
fset(f, FFL_QUIT); fset(f, FFL_QUIT);
} else { } else {
char buffer[64];
write_order(ord, buffer, sizeof(buffer));
cmistake(u, ord, 86, MSG_EVENT); cmistake(u, ord, 86, MSG_EVENT);
log_warning(("STIRB mit falschem Passwort für Partei %s: %s\n", log_warning(("QUIT with illegal password for faction %s: %s\n",
factionid(f), passwd)); factionid(f), buffer));
} }
return 0; return 0;
} }

View File

@ -1358,8 +1358,8 @@ terminate(troop dt, troop at, int type, const char *damage, boolean missile)
#endif #endif
if (bdebug) { if (bdebug) {
fprintf(bdebug, "Damage %d, armor %d: %d -> %d HP, tot.\n", fprintf(bdebug, "Damage %d, armor %d, type %d: %d -> %d HP, tot.\n",
da, ar, df->person[dt.index].hp, df->person[dt.index].hp - rda); da, ar, type, df->person[dt.index].hp + rda, df->person[dt.index].hp);
} }
for (pitm=&du->items; *pitm; pitm=&(*pitm)->next) { for (pitm=&du->items; *pitm; pitm=&(*pitm)->next) {
const item_type * itype = (*pitm)->type; const item_type * itype = (*pitm)->type;