任务单 #46563

Replace action_target_compl_calc() switch with a table

开放日期: 2023-01-21 15:00 最后更新: 2023-01-27 08:04

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
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

任务单历史 (3/6 Histories)

2023-01-21 15:00 Updated by: cazfi
  • New Ticket "Replace action_target_compl_calc() switch with a table" created
2023-01-21 15:06 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
2023-01-23 11:47 Updated by: cazfi
评论

- 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 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名