Mercurial > hg > early-roguelike
comparison urogue/getplay.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 | 51ddbe7b992d |
children |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
150 sprintf(pbuf, "You have a %s with the following attributes:", class); | 150 sprintf(pbuf, "You have a %s with the following attributes:", class); |
151 mvwaddstr(hw, 2, 0, pbuf); | 151 mvwaddstr(hw, 2, 0, pbuf); |
152 wclrtoeol(hw); | 152 wclrtoeol(hw); |
153 | 153 |
154 sprintf(pbuf, | 154 sprintf(pbuf, |
155 "Int: %d Str: %d Wis: %d Dex: %d Con: %d Cha: %d Pow: %d Hpt: %d", | 155 "Int: %d Str: %d Wis: %d Dex: %d Con: %d Cha: %d Pow: %d Hpt: %ld", |
156 pstats.s_intel, | 156 pstats.s_intel, |
157 pstats.s_str, | 157 pstats.s_str, |
158 pstats.s_wisdom, | 158 pstats.s_wisdom, |
159 pstats.s_dext, | 159 pstats.s_dext, |
160 pstats.s_const, | 160 pstats.s_const, |