MantisBT - VCMI |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002461 | VCMI | AI - Adventure Map | public | 2016-08-23 03:47 | 2016-09-08 01:31 |
|
Reporter | SXX | |
Assigned To | SXX | |
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 0.98g | |
Target Version | | Fixed in Version | 0.98g | |
|
Summary | 0002461: VCAI: Infinite loop when attempt to compare and exchange artifacts |
Description | Back when I fixed 0002455 there was typo (I suppose it's wasn't intentional since there was no comments) in Warmonger's code that made AI stop artifact exchange after first item was swapped.
https://github.com/vcmi/vcmi/commit/39fe9472b60d05401aa2889d4698bac2c74a9c6b#diff-17182f23fecdfcf334d0f03f9bd612c7L1089 [^]
End up that without that break AI tend to go into infinite loop since "compareArtifacts" func is very basic from perfect. E.g first time AI exchange arts since stats better and second time it's make change back since price is higher. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0002455 | closed | SXX | VCAI: Freeze on attempt to move artifact locks |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-08-23 03:47 | SXX | New Issue | |
2016-08-23 03:47 | SXX | Status | new => assigned |
2016-08-23 03:47 | SXX | Assigned To | => SXX |
2016-08-23 03:48 | SXX | Description Updated | bug_revision_view_page.php?rev_id=3214#r3214 |
2016-08-23 03:49 | SXX | Note Added: 0006579 | |
2016-08-23 03:49 | SXX | Product Version | 0.99 => 0.98g |
2016-08-23 03:49 | SXX | Relationship added | related to 0002455 |
2016-08-23 03:52 | SXX | Summary | VCAI: Loop when attempt to exchange artifacts => VCAI: Infinite loop when attempt to compare and exchange artifacts |
2016-09-08 01:31 | SXX | Note Added: 0006631 | |
2016-09-08 01:31 | SXX | Status | assigned => resolved |
2016-09-08 01:31 | SXX | Fixed in Version | => 0.98g |
2016-09-08 01:31 | SXX | Resolution | open => fixed |