From e7264017848c0ed1fdf7eb5bb36933c6448a8951 Mon Sep 17 00:00:00 2001
From: Fate <fate-tmw@googlemail.com>
Date: Sun, 31 May 2009 10:04:58 +0000
Subject: When spawning immobile monsters, make sure that they don't grow legs.

---
 src/map/magic-stmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c
index 0d4b4b7..a8d42f1 100644
--- a/src/map/magic-stmt.c
+++ b/src/map/magic-stmt.c
@@ -635,11 +635,11 @@ op_spawn(env_t *env, int args_nr, val_t *args)
                                 break;
 
                         case MONSTER_ATTITUDE_FRIENDLY:
-                                mob->mode = 0x81;
+                            mob->mode = 0x80 | (mob->mode & 1);
                                 break;
 
                         case MONSTER_ATTITUDE_HOSTILE:
-                                mob->mode = 0x85;
+                                mob->mode = 0x84 | (mob ->mode & 1);
                                 if (owner) {
                                         mob->target_id = owner->bl.id;
                                         mob->attacked_id = owner->bl.id;
-- 
cgit v1.2.3-70-g09d2