condtests[bl_bareh] requires a couple of additional g.context.botl = 1

This commit is contained in:
nhmall
2020-02-08 11:03:46 -05:00
parent d02bf5d1d0
commit ffd9eedb2c
3 changed files with 7 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ struct obj *wep;
{
/* Separated function so swapping works easily */
int res = 0;
boolean had_wep = (uwep != 0);
if (!wep) {
/* No weapon */
@@ -221,6 +222,8 @@ struct obj *wep;
}
}
}
if ((had_wep != (uwep != 0)) && condtests[bl_bareh].enabled)
g.context.botl = 1;
return res;
}