Opened 2 years ago

Closed 2 years ago

#6362 closed defect (fixed)

[Atlas] Mercenaries experience bar

Reported by: Langbart Owned by: Langbart
Priority: If Time Permits Milestone: Alpha 26
Component: Atlas editor Keywords:
Cc: Patch: Phab:D4317

Description

Changeset [25624] caused a minor bug to the mercenary units in Atlas.

To reproduce

  • Open Atlas and Start the simulation via the Play button
  • Place the units/sele/infantry_archer_merc_b on the field
  • Select the entity, the experience bar extends to the orbit.

Attachments (1)

25624_issue.jpg (870.7 KB ) - added by Langbart 2 years ago.

Download all attachments as: .zip

Change History (3)

by Langbart, 2 years ago

Attachment: 25624_issue.jpg added

comment:1 by Langbart, 2 years ago

Owner: set to Langbart
Patch: Phab:D4317

comment:2 by Silier, 2 years ago

Resolution: fixed
Status: newclosed

In 25974:

Prevent division by 0 for experience bar

Required experience can be set to 0 initially and because entity is upgrated after simulation starts, there was division by 0 in atlas for such entities causing experience bar going to infinity.

Differential revision: D4317
Fixes: #6362
Patch by: @Langbart
Reviewed by: @Angen

Note: See TracTickets for help on using tickets.