Mercurial > hg > early-roguelike
comparison xrogue/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 | b49d8b963df3 |
| children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
| 299:74351bf23e5e | 300:0250220d8cdd |
|---|---|
| 178 strcpy(fate, "escaped"); | 178 strcpy(fate, "escaped"); |
| 179 } | 179 } |
| 180 else | 180 else |
| 181 return; | 181 return; |
| 182 /* Write the line */ | 182 /* Write the line */ |
| 183 fprintf(logfile, "%d %d %s %d %s %d %d %d %c %s\n", time(NULL), amount, | 183 fprintf(logfile, "%ld %ld %s %d %s %d %d %d %c %s\n", time(NULL), amount, |
| 184 whoami, pstats.s_lvl, char_class[char_type].name, level, max_level, | 184 whoami, pstats.s_lvl, char_class[char_type].name, level, max_level, |
| 185 quest_item, had_quest, fate); | 185 quest_item, had_quest, fate); |
| 186 fclose(logfile); | 186 fclose(logfile); |
| 187 #endif | 187 #endif |
| 188 return; | 188 return; |
