mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-28 13:54:24 -05:00
Invert W gene coloration for field item sprite
This commit is contained in:
@@ -101,7 +101,9 @@ private static void DrawDirectionals(int[] data, ItemLayer layer, int w, int x0,
|
||||
geneIndex = (tile.ExtensionY << 1) | tile.ExtensionX;
|
||||
tile = layer.GetTile(x - tile.ExtensionX, y - tile.ExtensionY);
|
||||
}
|
||||
var geneValue = ((uint)tile.Genes >> (geneIndex * 2)) & 3;
|
||||
|
||||
var genes = ((uint)tile.Genes ^ 0b00_11_00_00); // invert W bits
|
||||
var geneValue = (genes >> (geneIndex * 2)) & 3;
|
||||
if (geneValue == 0)
|
||||
continue;
|
||||
DrawGene(data, (x - x0) * scale, (y - y0) * scale, scale, w, geneValue, geneIndex);
|
||||
|
||||
Reference in New Issue
Block a user