Ticket #44941

helptext_building() assumes that nukes have tech requirement

Open Date: 2022-06-25 09:34 Last Update: 2022-07-08 07:14

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
3

Details

helptext_building():

cat_snprintf(buf, bufsz,
/* TRANS: 'Allows all players with knowledge of atomic
* power to build nuclear units.' */
_("%s Allows all players with knowledge of %s "
"to build %s units.\n"), BULLET,
advance_name_translation(u->require_advance),
utype_name_translation(u));

---

That doesn't consider the possibility that the unit has no (valid) tech requirement. I don't think the effects would be more dire than funny texts ("...knowledge of Never to build...")

Ticket History (3/6 Histories)

2022-06-25 09:34 Updated by: cazfi
  • New Ticket "helptext_building() assumes that nukes have tech requirement" created
2022-07-02 23:17 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Milestone Update from (None) to 3.0.3 (closed)
2022-07-08 07:14 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

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