In main() of feature_layer.cc, the first argument passed to function DrawFeatureLayerUnits8BPP() is m.unit_density(), but in DrawFeatureLayerUnits8BPP() funciton, it calls Matrix8BPPPlayers, which is a function displaying units in feature layer according to their alliance (I see it from the comments).
So, is there anything wrong? Maybe m.unit_density() should be m.player_relative()?
Further more, if you have changed it, you will find the comments in Matrix8BPPPlayers()(in sc2_renderer.cc) are not right. Since the enemy will be colored in yellow not red as the comment says. So I guess the comments should be fixed, too.
In
main()
of feature_layer.cc, the first argument passed to functionDrawFeatureLayerUnits8BPP()
ism.unit_density()
, but inDrawFeatureLayerUnits8BPP()
funciton, it callsMatrix8BPPPlayers
, which is a function displaying units in feature layer according to their alliance (I see it from the comments). So, is there anything wrong? Maybem.unit_density()
should bem.player_relative()
?Further more, if you have changed it, you will find the comments in
Matrix8BPPPlayers()
(in sc2_renderer.cc) are not right. Since the enemy will be colored in yellow not red as the comment says. So I guess the comments should be fixed, too.