From: Christian Heller Date: Sun, 8 Sep 2013 14:32:43 +0000 (+0200) Subject: Added anti-hardcoding todo. X-Git-Tag: tce~965 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/day?a=commitdiff_plain;h=b66d0aa40912f26e80a61837cad2b5c743bf4d40;p=plomrogue Added anti-hardcoding todo. --- diff --git a/src/control.c b/src/control.c index 273fddc..e73f5a1 100644 --- a/src/control.c +++ b/src/control.c @@ -81,10 +81,10 @@ extern uint8_t player_control(int key, struct World * world) extern uint8_t meta_control(int key, struct World * world) { struct WinMeta * win_meta = world->wmeta; - struct Win * win_keys = get_win_by_id(world, 'k'); - struct Win * win_map = get_win_by_id(world, 'm'); - struct Win * win_info = get_win_by_id(world, 'i'); - struct Win * win_log = get_win_by_id(world, 'l'); + struct Win * win_keys = get_win_by_id(world, 'k'); /* Bad hardcoding. */ + struct Win * win_map = get_win_by_id(world, 'm'); /* TODO: Replace. */ + struct Win * win_info = get_win_by_id(world, 'i'); /* */ + struct Win * win_log = get_win_by_id(world, 'l'); /* */ char * err_toggle = "Trouble with toggle_window() in meta_keys()."; char * err_shift = "Trouble with shift_active_win() in meta_keys()."; char * err_resize = "Trouble with growshrink_active_window() in "