home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug that reset turn number to 1 on each savefile load.
[plomrogue]
/
src
/
control.c
diff --git
a/src/control.c
b/src/control.c
index a2a44b2aaac710ff3b4305abce9a2800f448f1d4..b9ebbe15ee3a7d0897540ce9946253d5aa252625 100644
(file)
--- a/
src/control.c
+++ b/
src/control.c
@@
-11,9
+11,9
@@
#include "map.h" /* for map_scroll(), map_center_player(), dir enum */
#include "main.h" /* for World struct */
#include "rexit.h" /* for exit_err() */
#include "map.h" /* for map_scroll(), map_center_player(), dir enum */
#include "main.h" /* for World struct */
#include "rexit.h" /* for exit_err() */
-#include "
misc
.h" /* for scroll_pad(), toggle_window(),
-
* growshrink_active_window
()
- */
+#include "
wincontrol
.h" /* for scroll_pad(), toggle_window(),
+
* growshrink_active_window(), reload_win_config
()
+
*/
#include "map_object_actions.h" /* for player_wait(), move_player() */
#include "command_db.h" /* for is_command_id_shortdsc() */
#include "map_object_actions.h" /* for player_wait(), move_player() */
#include "command_db.h" /* for is_command_id_shortdsc() */
@@
-181,7
+181,11
@@
extern uint8_t meta_control(int key, struct World * world)
}
else if (key == get_action_key(world->keybindings, "map_c"))
{
}
else if (key == get_action_key(world->keybindings, "map_c"))
{
- map_center_player (world->map, world->player, win_map->frame.size);
+ map_center_player(world->map, world->player, win_map->frame.size);
+ }
+ else if (key == get_action_key(world->keybindings, "reload_wins"))
+ {
+ reload_win_config(world);
}
return 0;
}
}
return 0;
}