任务单 #44410

Check unit activity on transforming

开放日期: 2022-04-18 04:48 最后更新: 2022-05-15 14:25

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

任务单历史 (3/7 Histories)

2022-04-18 04:48 Updated by: ihnatus
  • New Ticket "Check unit activity on transforming" created
2022-04-18 04:51 Updated by: ihnatus
  • Details Updated
2022-04-18 22:06 Updated by: cazfi
评论

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 Updated by: cazfi
评论

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 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
2022-05-15 14:25 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名