Ticket #46563

Replace action_target_compl_calc() switch with a table

Eröffnet am: 2023-01-21 15:00 Letztes Update: 2023-01-27 08:04

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

Details

- Add struct actres
- Make array of them to hold information about every actres
- Make act_tgt_compl the first field of the strcuct actres
- Replace large switch in action_target_compl_calc() with indexed lookup from the actres array
- This is natural opportunity to start splitting new actres.[ch] module from actions.[ch] -> have the array and the new implementation of action_target_compl_calc() in the new module

Ticket-Verlauf (3/6 Historien)

2023-01-21 15:00 Aktualisiert von: cazfi
  • New Ticket "Replace action_target_compl_calc() switch with a table" created
2023-01-21 15:06 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2023-01-23 11:47 Aktualisiert von: cazfi
Kommentar

- New version of the patch: Replaced the Great Danes with "The Freeciv Team" in the copyright notice of new files.

2023-01-27 08:04 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