Mercurial > hg > early-roguelike
comparison arogue7/save.c @ 163:89deb1197a2d
arogue7: fix a display bug when viewing inventory after restoring.
The restore() function displayed a status message via wprintw() instead
of using the msg() functions. If the inventory was then viewed before
a call to msg(), msgw would obscure the first lines of the inventory
list.
There are surely more bugs related to messages.
author | John "Elwin" Edwards |
---|---|
date | Fri, 12 Jun 2015 12:09:16 -0400 |
parents | c697782a9b37 |
children | 2d94c32a709e |
comparison
equal
deleted
inserted
replaced
162:600873555ec0 | 163:89deb1197a2d |
---|---|
237 lines = LINES; | 237 lines = LINES; |
238 if (cols > 85) cols = 85; | 238 if (cols > 85) cols = 85; |
239 if (lines > 24) lines = 24; | 239 if (lines > 24) lines = 24; |
240 | 240 |
241 mpos = 0; | 241 mpos = 0; |
242 mvwprintw(msgw, 0, 0, "%s: %s", file, ctime(&sbuf2.st_mtime)); | 242 msg("%s: %s", file, ctime(&sbuf2.st_mtime)); |
243 | 243 |
244 /* | 244 /* |
245 * defeat multiple restarting from the same place | 245 * defeat multiple restarting from the same place |
246 */ | 246 */ |
247 if (!wizard && md_unlink_open_file(file, inf) < 0) { | 247 if (!wizard && md_unlink_open_file(file, inf) < 0) { |