Project

General

Profile

Actions

Bug #1583

closed

Logic of is_action_possible()

Added by Alexandr Ignatiev 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
07/07/2025
Due date:
% Done:

0%

Estimated time:

Description

The variable out is assigned twice, shouldn't there be TRI_AND() whenever we get TRI_MAYBE in a later check? This is mostly harmless since clients make few difference between TRI_YES and TRI_MAYBE and servers should always get definite results. Ah, actres_possible() has a builtin effective tri-and with its def parameter. Thus we should just correct the distance check in main since player actions won't have an actor tile whatever the ATK_* is.


Files


Related issues 1 (0 open1 closed)

Blocks Feature #1597: Introduce is_action_enabled_player_on_*()ClosedMarko Lindqvist07/12/2025

Actions
Actions

Also available in: Atom PDF