Fix error with first color
This commit is contained in:
parent
686f7c7529
commit
90bd1c6a90
@ -664,7 +664,7 @@ function draw(recalculate) {
|
||||
let biomeID = cell.site[biomeIDSymbol];
|
||||
// This works because the biome ID is a number
|
||||
let biome = getBiomeByID(biomeID);
|
||||
if (biome.colorIndex) {
|
||||
if (biome.colorIndex !== null) {
|
||||
context.strokeStyle = CELL_COLORS[biome.colorIndex];
|
||||
} else {
|
||||
let ccol = biomeID % CELL_COLORS.length;
|
||||
@ -688,7 +688,7 @@ function draw(recalculate) {
|
||||
// This works because the biome ID is a number
|
||||
|
||||
let biome = getBiomeByID(biomeID);
|
||||
if (biome.colorIndex) {
|
||||
if (biome.colorIndex !== null) {
|
||||
context.fillStyle = CELL_COLORS[biome.colorIndex];
|
||||
} else {
|
||||
let ccol = biomeID % CELL_COLORS.length;
|
||||
@ -707,7 +707,7 @@ function draw(recalculate) {
|
||||
let cell = diagram.cells[0];
|
||||
let biomeID = cell.site[biomeIDSymbol];
|
||||
let biome = getBiomeByID(biomeID);
|
||||
if (biome.colorIndex) {
|
||||
if (biome.colorIndex !== null) {
|
||||
context.fillStyle = CELL_COLORS[biome.colorIndex];
|
||||
} else {
|
||||
let ccol = biomeID % CELL_COLORS.length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user