Project

General

Profile

Actions

Bug #1564

closed

Correct airlift enabled checking

Added by Alexandr Ignatiev 24 days ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Category:
client-common
Target version:
Start date:
07/04/2025
Due date:
% Done:

0%

Estimated time:

Description

When considering (with limited knowledge) the possibility of airlifting from/to foreign city, the functions action_hard_reqs_actor in actions.c and test_unit_can_airlift_to in unit.c return uncertain results due to unknown airlift counter even if airlift_from/to_always_enabled is set. This has actually few effect since client allows maybe-possible actions.

Headscratches note: how does it check presence of non-mutual ally units in a foreign city? I tested it in v.3.1 and the unit stays in source city without any note, so some check is performed but idk where, seems like definitely not in do_airlime. EDIT: yes, there is no check in main versoion, the unit lands on heads of non-allied units. I'll look how deep that goes. EDIT 2: yes, it goes back to 3.1 and earlier.


Files

3_4-airlift_possible_corr.patch (5.33 KB) 3_4-airlift_possible_corr.patch Alexandr Ignatiev, 07/07/2025 01:07 AM
3_4-airlift_possible_corr1.patch (8.91 KB) 3_4-airlift_possible_corr1.patch Alexandr Ignatiev, 07/07/2025 11:34 PM
3_4-airlift_possible_corr2.patch (16 KB) 3_4-airlift_possible_corr2.patch Alexandr Ignatiev, 07/08/2025 10:44 PM
3_3-airlift_possible_corr.patch (15.7 KB) 3_3-airlift_possible_corr.patch Alexandr Ignatiev, 07/09/2025 12:01 AM
3_1-airlift_possible_corr.patch (15.3 KB) 3_1-airlift_possible_corr.patch Alexandr Ignatiev, 07/09/2025 10:00 PM
3_2-airlift_possible_corr.patch (15.2 KB) 3_2-airlift_possible_corr.patch Alexandr Ignatiev, 07/09/2025 10:00 PM
3_2-airlift_possible_corr1.patch (15.3 KB) 3_2-airlift_possible_corr1.patch Alexandr Ignatiev, 07/11/2025 08:01 PM
3_1-airlift_possible_corr1.patch (15.3 KB) 3_1-airlift_possible_corr1.patch Alexandr Ignatiev, 07/11/2025 08:01 PM
Actions

Also available in: Atom PDF