(move): Don't trigger interdiction when moving stuff that cannot be
harmed (bars with opt_SUPER_BARS enabled).
This commit is contained in:
parent
180c8586f6
commit
0cf5c17f08
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
||||||
#include "nsc.h"
|
#include "nsc.h"
|
||||||
#include "land.h"
|
#include "land.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
#include "optlist.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -186,7 +187,7 @@ move(void)
|
||||||
/*
|
/*
|
||||||
* Now parse the path and return ending sector.
|
* 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))
|
if (dam && !chance(weight / 200.0))
|
||||||
dam = 0;
|
dam = 0;
|
||||||
mcost = move_ground(§, &endsect, weight, player->argp[4],
|
mcost = move_ground(§, &endsect, weight, player->argp[4],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue