MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001030VCMIAI - Adventure Mappublic2012-07-06 15:242014-05-30 17:41
ReporterWarmonger 
Assigned ToWarmonger 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformPCOSWindows 7OS VersionSP1
Product Version 
Target VersionFixed in Version0.9 
Summary0001030: Objects visitable once per hero show as "Not visited" to AI.
DescriptionAI will attempt to revisit objects like Mercenary camp or Learning STone over and over again and get stuck in the process.
However, it may be not AI bug as such, as log shows that these objects are actually marked as "Not visited".

I think that only second (blue) player suffers from this issue, first (red) does not. They are both AI in my maps.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002802)
Warmonger (administrator)
2012-07-19 16:32

Fixed in r2793.

Apparently i was caused by excessive polymorhpism:

In expression
if (obj->wasVisited(h))
heroPtr is evaluated as numeric value, resulting in call
wasVisited (ui8 player)

while

if (obj->wasVisited(*h))
calls
wasVisited (const CGHeroInstance * h)

- Issue History
Date Modified Username Field Change
2012-07-06 15:24 Warmonger New Issue
2012-07-06 15:24 Warmonger Status new => assigned
2012-07-06 15:24 Warmonger Assigned To => Tow
2012-07-06 15:36 Warmonger Description Updated View Revisions
2012-07-19 14:56 Warmonger Assigned To Tow => Warmonger
2012-07-19 16:32 Warmonger Note Added: 0002802
2012-07-19 16:32 Warmonger Status assigned => resolved
2012-07-19 16:32 Warmonger Fixed in Version => 0.9
2012-07-19 16:32 Warmonger Resolution open => fixed
2014-05-30 17:41 beegee Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean