Add a check to prevent entering boats in combat (from Windows version)

This commit is contained in:
2014-12-14 02:02:09 -05:00
parent 8cf5b3d04e
commit 402065fa80

View File

@@ -243,6 +243,12 @@ bool check_special_terrain(location where_check,eSpecCtx mode,short which_pc,sho
put_item_screen(stat_window,0);
}
// TODO: Just verify that yes, it works with this and doesn't work without it.
if(mode == eSpecCtx::COMBAT_MOVE && town_boat_there(where_check) < 3) {
add_string_to_buf("Blocked: Can't enter boats in combat");
can_enter = false;
}
if (can_enter == false)
return false;