comparison srogue/rip.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents 0250220d8cdd
children 057c5114e244
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
286 fclose(score_rdonly); 286 fclose(score_rdonly);
287 printf("Top Ten Adventurers:\nRank\tScore\tName\n"); 287 printf("Top Ten Adventurers:\nRank\tScore\tName\n");
288 for (scp = top_ten; scp <= &top_ten[9]; scp++) { 288 for (scp = top_ten; scp <= &top_ten[9]; scp++) {
289 if (scp->sc_score > 0) { 289 if (scp->sc_score > 0) {
290 printf("%d\t%d\t%s: %s\t\t--> %s on level %d", 290 printf("%d\t%d\t%s: %s\t\t--> %s on level %d",
291 scp - top_ten + 1, scp->sc_score, scp->sc_name, 291 (int) (scp - top_ten + 1), scp->sc_score,
292 ctime(&scp->sc_date), reason[scp->sc_flags], 292 scp->sc_name, ctime(&scp->sc_date),
293 scp->sc_level); 293 reason[scp->sc_flags], scp->sc_level);
294 if (scp->sc_flags == KILLED) { 294 if (scp->sc_flags == KILLED) {
295 killer = killname(scp->sc_monster); 295 killer = killname(scp->sc_monster);
296 printf(" by a%s %s",vowelstr(killer), killer); 296 printf(" by a%s %s",vowelstr(killer), killer);
297 } 297 }
298 printf(" [Exp: %d/%ld]",scp->sc_explvl,scp->sc_exppts); 298 printf(" [Exp: %d/%ld]",scp->sc_explvl,scp->sc_exppts);