fix case where moving into wall says 'can't leave town'

This commit is contained in:
2025-05-10 10:32:32 -05:00
parent 01add29af1
commit 5eb3cd7bce

View File

@@ -238,7 +238,7 @@ bool pc_combat_move(location destination) {
dir = set_direction(univ.current_pc().combat_pos, destination);
if((loc_off_act_area(destination)) && (which_combat_type == 1)) {
if(loc_off_act_area(destination) && (which_combat_type == 1) && !impassable(univ.town->terrain(destination.x,destination.y))) {
add_string_to_buf("Move: Can't leave town during combat.");
print_buf();
return true;