From 0cf5c17f0854524eead0fde0403591c1640910a9 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 27 Jun 2006 05:30:47 +0000 Subject: [PATCH] (move): Don't trigger interdiction when moving stuff that cannot be harmed (bars with opt_SUPER_BARS enabled). --- src/lib/commands/move.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/move.c b/src/lib/commands/move.c index ae4f4144..5bcaf755 100644 --- a/src/lib/commands/move.c +++ b/src/lib/commands/move.c @@ -44,6 +44,7 @@ #include "nsc.h" #include "land.h" #include "path.h" +#include "optlist.h" #include "commands.h" @@ -186,7 +187,7 @@ move(void) /* * Now parse the path and return ending sector. */ - dam = (istest ? 0 : 1); + dam = !istest && !(opt_SUPER_BARS && vtype == I_BAR); if (dam && !chance(weight / 200.0)) dam = 0; mcost = move_ground(§, &endsect, weight, player->argp[4],