Mercurial > hg > early-roguelike
comparison rogue3/rip.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | c199a15a2c70 |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
312 char *killer; | 312 char *killer; |
313 | 313 |
314 if (waswizard) | 314 if (waswizard) |
315 return; | 315 return; |
316 #ifdef LOGFILE | 316 #ifdef LOGFILE |
317 sprintf(logmessage, "%d %d %s %d ", time(NULL), amount, whoami, | 317 sprintf(logmessage, "%ld %d %s %d ", time(NULL), amount, whoami, |
318 pstats.s_lvl); | 318 pstats.s_lvl); |
319 if (flags == 0) /* died */ | 319 if (flags == 0) /* died */ |
320 { | 320 { |
321 strcat(logmessage, "killed by a"); | 321 strcat(logmessage, "killed by a"); |
322 killer = killname(monst); | 322 killer = killname(monst); |