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 (from parent 1:
0aa35d0
)
Renaming for code-stylistic consistency.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 17 May 2013 00:07:46 +0000
(
02:07
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 17 May 2013 00:07:46 +0000
(
02:07
+0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index ac7252ea3f4ec105cb28692310363b0ee0cedb2c..e1852abb0b415f57e33ca26a7c4739dd083e37b0 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-51,7
+51,7
@@
void update_log (struct World *, char *);
void save_keybindings(struct World *);
int get_action_key (struct KeyBinding *, char *);
char * get_keyname(int);
void save_keybindings(struct World *);
int get_action_key (struct KeyBinding *, char *);
char * get_keyname(int);
-void mod_key (struct World *, struct WinMeta *);
+void
keyswin_
mod_key (struct World *, struct WinMeta *);
void keyswin_move_selection (struct World *, char);
char is_passable (struct World *, int, int);
void move_player (struct World *, char);
void keyswin_move_selection (struct World *, char);
char is_passable (struct World *, int, int);
void move_player (struct World *, char);
@@
-349,8
+349,8
@@
char * get_keyname(int keycode) {
sprintf(keyname, "(unknown)");
return keyname; }
sprintf(keyname, "(unknown)");
return keyname; }
-void mod_key (struct World * world, struct WinMeta * win_meta) {
-// In keybinding window, mark selection modifiable, modify key. Ensure max of three digits in key code field.
+void
keyswin_
mod_key (struct World * world, struct WinMeta * win_meta) {
+// In keybinding
s
window, mark selection modifiable, modify key. Ensure max of three digits in key code field.
world->keyswindata->edit = 1;
draw_all_windows (win_meta);
int key = getch();
world->keyswindata->edit = 1;
draw_all_windows (win_meta);
int key = getch();
@@
-497,7
+497,7
@@
int main () {
else if (key == get_action_key(world.keybindings, "keys nav down"))
keyswin_move_selection (&world, 'd');
else if (key == get_action_key(world.keybindings, "keys mod"))
else if (key == get_action_key(world.keybindings, "keys nav down"))
keyswin_move_selection (&world, 'd');
else if (key == get_action_key(world.keybindings, "keys mod"))
- mod_key (&world, &win_meta);
+
keyswin_
mod_key (&world, &win_meta);
else if (key == get_action_key(world.keybindings, "map up") && map.offset_y > 0)
map.offset_y--;
else if (key == get_action_key(world.keybindings, "map down"))
else if (key == get_action_key(world.keybindings, "map up") && map.offset_y > 0)
map.offset_y--;
else if (key == get_action_key(world.keybindings, "map down"))