Ticket #44410

Check unit activity on transforming

Eröffnet am: 2022-04-18 04:48 Letztes Update: 2022-05-15 14:25

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
1

Details

Noticed by Dino the Dinosore here. When a unit is auto-upgraded, it may continue its former activity even if its new type can't do it; though the activity is canceled if the situation is loaded from a savegame.

An obvious solution is placing an activity check into transform_unit() in server/unittools.c.

Ticket-Verlauf (3/7 Historien)

2022-04-18 04:48 Aktualisiert von: ihnatus
  • New Ticket "Check unit activity on transforming" created
2022-04-18 04:51 Aktualisiert von: ihnatus
  • Details Updated
2022-04-18 22:06 Aktualisiert von: cazfi
Kommentar

nef: "Another option to consider is to not allow the upgrade while the unit is doing something the upgrade cant do."

2022-04-24 06:46 Aktualisiert von: cazfi
Kommentar

For the lack of 100% reliable tools to speculate what action enablers would be active after the unit transformation, we probably can't go by nef's idea for the time being. At least in the stable branches we should just add cancelling of the illegal activities after unit has already transformed.

2022-05-01 07:53 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2022-05-15 14:25 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden