MantisBT - VCMI
View Issue Details
0001004VCMIMechanics - Battlespublic2012-06-14 15:582014-05-30 17:41
douggie_m 
Warmonger 
normalminorsometimes
closedfixed 
PowerPCGNU/Linux-
 
0.9 
0001004: Commander is partially hidden behind obstacle
Looks like obstacle is drawn *after* commander, over-drawing its parts.
(See attached screenshot.)

Normal units are drawn in proper order.

when commander is moved, it begins to be drawn properly.
No tags attached.
png vcmi-commander_is_hidden_behind_obstacle.png (1,312,290) 2012-06-14 15:58
https://bugs.vcmi.eu/file_download.php?file_id=966&type=bug
png vcmi-commander_moved_drawn_properly.png (1,311,594) 2012-06-14 15:59
https://bugs.vcmi.eu/file_download.php?file_id=967&type=bug
Issue History
2012-06-14 15:58douggie_mNew Issue
2012-06-14 15:58douggie_mFile Added: vcmi-commander_is_hidden_behind_obstacle.png
2012-06-14 15:59douggie_mFile Added: vcmi-commander_moved_drawn_properly.png
2012-06-14 16:04WarmongerNote Added: 0002678
2012-06-14 16:42douggie_mNote Added: 0002679
2012-06-14 16:53WarmongerNote Added: 0002680
2012-06-14 16:53WarmongerAssigned To => Warmonger
2012-06-14 16:53WarmongerStatusnew => assigned
2012-06-14 18:47douggie_mNote Added: 0002682
2012-06-14 20:24TowNote Added: 0002683
2012-06-16 14:27WarmongerNote Added: 0002707
2012-06-16 14:27WarmongerStatusassigned => resolved
2012-06-16 14:27WarmongerFixed in Version => 0.9
2012-06-16 14:27WarmongerResolutionopen => fixed
2012-06-16 14:27WarmongerCategoryGUI - Battles => Mechanics - Battles
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002678)
Warmonger   
2012-06-14 16:04   
Well, the actual problem is that Commander is standing ON the obstacle, which should never happen.
(0002679)
douggie_m   
2012-06-14 16:42   
> Well, the actual problem is that Commander is standing ON the obstacle, which should never happen.

Oh, really. Hmm, and does this mean that random-generator for battlefields shall be re-written to never place obstacles on commander's position or?
(0002680)
Warmonger   
2012-06-14 16:53   
Quite the other way round, Commander shouldn't be placed on the obstacle. Will investigate.
(0002682)
douggie_m   
2012-06-14 18:47   
> Quite the other way round, Commander shouldn't be placed on the obstacle. Will investigate.

Ah. I never played "real" WoG mod, because it was only for another architecture and only one OS for that architecture. but it seems okay just to draw units *after* other items on battlefield. As you see, some parts of units count are covered too.
(0002683)
Tow   
2012-06-14 20:24   
How was this handled in WoG?
I believe I saw the same issue, though am not sure ATM.
(0002707)
Warmonger   
2012-06-16 14:27   
Fixed in r2759 - now commanders will be placed AFTER obstacles are randomized.