Path-of-Terraria / PathOfTerraria

GNU General Public License v3.0
1 stars 3 forks source link

Stat Panel Draws Player With Incorrect Hair Color #291

Closed steviegt6 closed 4 months ago

steviegt6 commented 4 months ago

Description

image

steviegt6 commented 4 months ago
    public Color GetHairColor(bool useLighting = true)
    {
        Color color = Lighting.GetColor((int)((double)position.X + (double)width * 0.5) / 16, (int)(((double)position.Y + (double)height * 0.25) / 16.0));
        return GameShaders.Hair.GetColor(hairDye, this, useLighting ? color : Color.White);
    }

Called with useLighting as true (default value); fine when not in-game because Lighting.GetColor returns Color.White... not so fortunate in-game.