Anonymous | Login | 2024-11-21 14:51 UTC |
My View | View Issues | Change Log | Roadmap |
View Revisions: Issue #2461 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0002461: VCAI: Infinite loop when attempt to compare and exchange artifacts | ||
Revision | 2016-08-23 03:48 by SXX | ||
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. |
||
Revision | 2016-08-23 03:47 by SXX | ||
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 make 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. |
Copyright © 2000 - 2024 MantisBT Team |