- else if (key == get_action_key(world.keybindings, "player down") && map.player_y < map.height - 1) {
- update_info (&win_info);
- update_log (&win_log, "\nYou move south.");
- map.player_y++; }
- else if (key == get_action_key(world.keybindings, "player up") && map.player_y > 0) {
- update_info (&win_info);
- update_log (&win_log, "\nYou move north.");
- map.player_y--; }
- else if (key == get_action_key(world.keybindings, "player right") && map.player_x < map.width - 1) {
- update_info (&win_info);
- update_log (&win_log, "\nYou move east.");
- map.player_x++; }
- else if (key == get_action_key(world.keybindings, "player left") && map.player_x > 0) {
- update_info (&win_info);
- update_log (&win_log, "\nYou move west.");
- map.player_x--; }
+ else if (key == get_action_key(world.keybindings, "player down") && player.y < map.height - 1) {
+ update_info (&world);
+ update_log (&world, "\nYou move south.");
+ player.y++; }
+ else if (key == get_action_key(world.keybindings, "player up") && player.y > 0) {
+ update_info (&world);
+ update_log (&world, "\nYou move north.");
+ player.y--; }
+ else if (key == get_action_key(world.keybindings, "player right") && player.x < map.width - 1) {
+ update_info (&world);
+ update_log (&world, "\nYou move east.");
+ player.x++; }
+ else if (key == get_action_key(world.keybindings, "player left") && player.x > 0) {
+ update_info (&world);
+ update_log (&world, "\nYou move west.");
+ player.x--; }