home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac4305d
)
Replaced obsolete end-of-list detection with new one.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 2 May 2013 00:03:41 +0000
(
02:03
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 2 May 2013 00:03:41 +0000
(
02:03
+0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 34f3c855da6c9d2927bfad84e73ff11fe207f4e7..7d535bc9221b7ea446ad2f1128570ade548ad017 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-218,7
+218,7
@@
void draw_keys_window (struct Win * win) {
attr_t attri;
int y, x;
char * keyname;
- for (y = 0;
0 != keybindings[offset + y].name
&& y < win->height; y++) {
+ for (y = 0;
y <= keyswindata->max
&& y < win->height; y++) {
attri = 0;
if (y == keyswindata->select - offset) {
attri = A_REVERSE;