(move): Don't trigger interdiction when moving stuff that cannot be

harmed (bars with opt_SUPER_BARS enabled).
This commit is contained in:
Markus Armbruster 2006-06-27 05:30:47 +00:00
parent 180c8586f6
commit 0cf5c17f08

View file

@ -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(&sect, &endsect, weight, player->argp[4],