From d376d97de96b4daaaa5369b1d2bf329c7caeb13f Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 16 Dec 2014 18:20:45 -0500 Subject: [PATCH] Remove a useless function --- osx/boe.locutils.cpp | 8 -------- osx/boe.locutils.h | 1 - 2 files changed, 9 deletions(-) diff --git a/osx/boe.locutils.cpp b/osx/boe.locutils.cpp index 3b9a3090..54f2bcdc 100644 --- a/osx/boe.locutils.cpp +++ b/osx/boe.locutils.cpp @@ -453,18 +453,10 @@ bool outd_is_blocked(location to_check) { return false; } -bool special_which_blocks_monst(location to_check) { - if(scenario.ter_types[coord_to_ter(to_check.x,to_check.y)].blockage == eTerObstruct::BLOCK_MONSTERS) - return true; - else return false; -} - // Checks if space is a special that prevents movement into or placement of a PC on bool is_special(location to_check) { ter_num_t which_ter; - if(!special_which_blocks_monst(to_check)) - return false; which_ter = coord_to_ter(to_check.x,to_check.y); if(scenario.ter_types[which_ter].blockage == eTerObstruct::BLOCK_MONSTERS) return true; diff --git a/osx/boe.locutils.h b/osx/boe.locutils.h index 34443450..37d6b805 100644 --- a/osx/boe.locutils.h +++ b/osx/boe.locutils.h @@ -33,7 +33,6 @@ bool monst_can_see(short m_num,location l); bool party_can_see_monst(short m_num); bool can_see_monst(location l,short m_num); bool outd_is_blocked(location to_check); -bool special_which_blocks_monst(location to_check); bool is_special(location to_check); bool outd_is_special(location to_check); bool impassable(ter_num_t terrain_to_check);