Follow-up Comment #6, bug #25549 (project wesnoth):
Thanks. I stepped through from unit_drawer::redraw_unit() in drawer.cpp to
unit_frame::merge_parameters() in frame.cpp.
/** engine provide a blend color for poisoned units */
result.blend_with = current_val.blend_with ? current_val.blend_with :
animation_val.blend_with;
if(primary && engine_val.blend_with && result.blend_with) {
result.blend_with =
engine_val.blend_with.get().blend_lighten(result.blend_with.get());
}
Looking at lines 951-954, the result for result.blend_with is { 204, 204, 204,
204 }. animation_val.blend_with and current_val.blend_with were the same. 204
= 0xCC which makes me think these are uninitialised for some reason.
engine_val.blend_with was { 0, 255, 0, 255 } which is the green poison
blending from drawer.cpp. primary = true.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?25549>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs