MantisBT - VCMI
View Issue Details
0000771VCMIGUI - Adventure Mappublic2011-07-23 06:162014-05-30 17:40
Warmonger 
Tow 
highminoralways
closedfixed 
 
0.860.86 
0000771: Hero path is not refreshed on new turn
When we begin new turn with the same hero which was selected previously, his path remains brown and no move is possible. Only selecting another hero and coming back refreshes it.
No tags attached.
Issue History
2011-07-23 06:16WarmongerNew Issue
2011-08-04 20:27lssjbrolliNote Added: 0001899
2011-08-25 15:27TowNote Added: 0001930
2011-08-25 15:27TowStatusnew => resolved
2011-08-25 15:27TowFixed in Version => 0.89
2011-08-25 15:27TowResolutionopen => fixed
2011-08-25 15:27TowAssigned To => Tow
2011-08-26 00:47ubuntuxNote Added: 0001935
2011-08-26 00:48ubuntuxNote Added: 0001936
2011-08-26 00:48ubuntuxStatusresolved => feedback
2011-08-26 00:48ubuntuxResolutionfixed => reopened
2011-08-26 00:48ubuntuxNote Deleted: 0001935
2011-08-26 23:47TowNote Added: 0001937
2011-08-26 23:47TowStatusfeedback => resolved
2011-08-26 23:47TowResolutionreopened => fixed
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0001899)
lssjbrolli   
2011-08-04 20:27   
maybe it's related to an workaround made in r2215 in CCallback.cpp:

- cl->gs->calculatePaths(static_cast<const CGHeroInstance *>(obj), *cl->pathInfo);

+ if(cl->pathInfo->hero != obj) //calculate new paths only if we selected a different hero
(0001930)
Tow   
2011-08-25 15:27   
Fixed in r2306.
(0001936)
ubuntux   
2011-08-26 00:48   
Still present in r2309.
If a hero path takes more than one turn, at the end of the turn the path becomes red (correct), but at the beginning of the next turn, the path is still red, and the horse cursor still indicates 2 turns.
(0001937)
Tow   
2011-08-26 23:47   
Thank you for the fast notice :)
With r2319 it should be really fixed.