From 31e53cc963611a9ce56c83534a7a1bacb6b6c9f1 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 12 Jun 2025 11:36:32 -0500 Subject: [PATCH] document a hardcoded pit check --- src/game/boe.locutils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/boe.locutils.cpp b/src/game/boe.locutils.cpp index 29d5a099..c0b4343f 100644 --- a/src/game/boe.locutils.cpp +++ b/src/game/boe.locutils.cpp @@ -444,7 +444,8 @@ bool impassable(ter_num_t terrain_to_check) { // NOTE: Seems to return 5 for "blocks sight", 1 for "obstructs missiles", 0 otherwise // So it should probably be called something like "get_opacity" instead. short get_blockage(ter_num_t terrain_type) { - // little kludgy in here for pits + // little kludgy in here for pits (but hardcoded check for 90 is forgivable + // because we protect terrain 90 from redefinition) if((terrain_type == 90) && (is_combat()) && (which_combat_type == 0)) return 5; if(univ.scenario.ter_types[terrain_type].blockage == eTerObstruct::BLOCK_MOVE_AND_SIGHT ||