From: Christian Heller Date: Wed, 28 Aug 2013 01:27:26 +0000 (+0200) Subject: Some cleaning up and comments added to outsourcing misc library stuff into control... X-Git-Tag: tce~1015 X-Git-Url: https://plomlompom.com/repos/todo?a=commitdiff_plain;h=7b26f28c6d6028b5aad2ba93a5c8911f6118e6e9;p=plomrogue Some cleaning up and comments added to outsourcing misc library stuff into control library. --- diff --git a/src/control.h b/src/control.h index 599f04b..bd5dd0c 100644 --- a/src/control.h +++ b/src/control.h @@ -1,4 +1,6 @@ /* control.h + * + * Routines for handling user's key press input. */ #ifndef CONTROL_H @@ -6,8 +8,7 @@ -#include /* for uint8_t */ -#include "yx_uint16.h" /* for yx_uint16 coordinates */ +#include /* for uint8_t */ struct World; diff --git a/src/misc.c b/src/misc.c index 1fbcc3e..b826436 100644 --- a/src/misc.c +++ b/src/misc.c @@ -7,16 +7,12 @@ #include /* for strlen(), strcmp(), memcpy() */ #include /* for uint8_t */ #include "windows.h" /* for suspend_win(), append_win(), reset_pad_offset(), - * resize_active_win(), cycle_active_win(), - * shift_active_win(), struct Win, struct WinMeta + * resize_active_win(), struct Win, struct WinMeta */ -#include "keybindings.h" /* for get_action_key(), save_keybindings(), - * keyswin_move_selection(), keyswin_mod_key() - */ #include "readwrite.h" /* for [read/write]_uint[8/16/32][_bigendian]() */ #include "map_objects.h" /* for struct Monster, write_map_objects(), */ #include "map_object_actions.h" /* for is_passable(), move_monster() */ -#include "map.h" /* for map_scroll(),map_center_player(), Map struct,dir enum */ +#include "map.h" /* for Map struct */ #include "main.h" /* for World struct */ #include "yx_uint16.h" /* for yx_uint16 */ #include "rrand.h" /* for rrand(), rrand_seed() */