mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 10:43:04 +00:00
bufix: paint unit sprites correctly on alternate view
This commit is contained in:
@@ -76,10 +76,11 @@ export const getColoredSprite = (
|
||||
unit: UnitView,
|
||||
theme: Theme,
|
||||
customTerritoryColor?: Colord,
|
||||
customBorderColor?: Colord,
|
||||
): HTMLCanvasElement => {
|
||||
const owner = unit.owner();
|
||||
const territoryColor = customTerritoryColor ?? theme.territoryColor(owner);
|
||||
const borderColor = theme.borderColor(owner);
|
||||
const borderColor = customBorderColor ?? theme.borderColor(owner);
|
||||
const spawnHighlightColor = theme.spawnHighlightColor();
|
||||
const colorKey = customTerritoryColor
|
||||
? customTerritoryColor.toRgbString()
|
||||
|
||||
Reference in New Issue
Block a user