extern void keyswin_mod_key(struct World * world, struct WinMeta * win_meta)
{
world->keyswindata->edit = 1;
- draw_all_wins (win_meta);
+ draw_all_wins(win_meta);
int key = getch();
if (key < 1000)
{
init_keybindings(&world);
set_cleanup_flag(CLEANUP_KEYBINDINGS);
struct WinMeta win_meta;
- init_win_meta(screen, &win_meta);
+ char * err_winmem = "Error: Window drawing memory allocation failed.";
+ exit_err(init_win_meta(screen, &win_meta), &world, err_winmem);
struct Win win_keys = init_win(&win_meta, "Keys",
0, 29, &world, draw_keys_win);
struct Win win_info = init_win(&win_meta, "Info",
}
if (0 == start_turn)
{
- draw_all_wins (&win_meta);
- key = getch();
+ exit_err(draw_all_wins(&win_meta), &world, err_winmem);
+ key = getch();
}
if (1 == await_actions
&& (world.turn < start_turn