summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authorDShaligram <DShaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-15 22:02:22 +0000
committerDShaligram <DShaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-15 22:02:22 +0000
commite36f2c8cdfe62621f6490e40d3a3e18dd93d9de7 (patch)
tree38b51d3a4472af19c0fbfa113134c393099b3b6d /crawl-ref/source/mstuff2.cc
parent8f126891d8dda651dd68f1da691abefc471b27c5 (diff)
downloadcrawl-ref-e36f2c8cdfe62621f6490e40d3a3e18dd93d9de7.tar.gz
crawl-ref-e36f2c8cdfe62621f6490e40d3a3e18dd93d9de7.zip
r33@calamity: dshaligram | 2006-08-16 03:34:30 +051800
* Remove monsters from LOS when a new game starts. * Allow related monsters to swap positions * Cleaned up some other stuff, removed most viewport magic numbers from direct.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@20 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index 38d0d8c885..d2e87ede33 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -49,6 +49,9 @@ static unsigned char monster_abjuration(int pow, bool test);
// to be some sort of trap prior to function call: {dlb}
void mons_trap(struct monsters *monster)
{
+ if (!is_trap_square(monster->x, monster->y))
+ return;
+
int temp_rand = 0; // probability determination {dlb}
// single calculation permissible {dlb}