summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-31 10:04:58 +0000
committerFate <fate-tmw@googlemail.com>2009-05-31 10:04:58 +0000
commite7264017848c0ed1fdf7eb5bb36933c6448a8951 (patch)
tree006229f4ee1e1a4b18f1abe320d555ee20e90d8d
parentdc3c47e3a7d95e29eaefc3db868705eb80c8c0b8 (diff)
downloadtmwa-e7264017848c0ed1fdf7eb5bb36933c6448a8951.tar.gz
tmwa-e7264017848c0ed1fdf7eb5bb36933c6448a8951.tar.bz2
tmwa-e7264017848c0ed1fdf7eb5bb36933c6448a8951.tar.xz
tmwa-e7264017848c0ed1fdf7eb5bb36933c6448a8951.zip
When spawning immobile monsters, make sure that they don't grow legs.
-rw-r--r--src/map/magic-stmt.c4
1 files changed, 2 insertions, 2 deletions
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;