Mercurial > hg > early-roguelike
comparison rogue5/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 | ee250e3646fd |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
235 { | 235 { |
236 fclose(logfi); | 236 fclose(logfi); |
237 return; | 237 return; |
238 } | 238 } |
239 #endif | 239 #endif |
240 sprintf(logmessage, "%d %d %.80s %d ", time(NULL), amount, whoami, | 240 sprintf(logmessage, "%ld %d %.80s %d ", time(NULL), amount, whoami, |
241 pstats.s_lvl); | 241 pstats.s_lvl); |
242 if (flags == 0) /* dead */ | 242 if (flags == 0) /* dead */ |
243 { | 243 { |
244 sprintf(ltemp, "killed by %s on level %d\n", killname(monst, TRUE), | 244 sprintf(ltemp, "killed by %s on level %d\n", killname(monst, TRUE), |
245 level); | 245 level); |