bow:: press 'f' + direction for auto fire at distant enemies in the given direction

This commit is contained in:
Zeno Rogue 2023-12-02 10:37:07 +01:00
parent 9ca0993d6f
commit 8946317475
1 changed files with 2 additions and 2 deletions

View File

@ -340,12 +340,12 @@ bool pcmove::movepcto() {
changes.init(checkonly);
changes.value_keep(bow::bowpath_map);
bow::bowpath_map.clear();
bool b = (d >= 0) ? actual_move() : stay();
bool b = (d >= 0 && bow::fire_mode) ? (origd = d, cwt += d, false) : (d >= 0) ? actual_move() : stay();
if(checkonly || !b) {
changes.rollback();
if(!checkonly) flipplayer = false;
if(!b && items[itCrossbow] == 0 && bow::crossbow_mode() && !bow::fire_mode && d >= 0 && !checkonly) {
if(!b && items[itCrossbow] == 0 && bow::crossbow_mode() && d >= 0 && !checkonly) {
changes.init(checkonly);
changes.value_keep(bow::bowpath_map);
b = try_shooting(true);