Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Feb 3, 2024
1 parent 78f342f commit 4566ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/RagnarokTools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ function RagnarokTools:ExportTerrainMapFromGAT(gatFileContents, outputDirectory)
local pixelColor = terrainTypeColors[terrainTypeID]

assert(pixelColor, format("Missing pixel color for terrain type %s", terrainTypeID))

rgbaImageBytes:putcdata(ffi.new("uint8_t[1]", pixelColor.red), 1)
print("WTF", tileID, terrainTypeID, pixelColor)
rgbaImageBytes:putcdata(ffi.new("uint8_t[1]", pixelColor.red * 255), 1)
rgbaImageBytes:putcdata(ffi.new("uint8_t[1]", pixelColor.green * 255), 1)
rgbaImageBytes:putcdata(ffi.new("uint8_t[1]", pixelColor.blue * 255), 1)
rgbaImageBytes:putcdata(ffi.new("uint8_t[1]", 255), 1)
Expand Down

0 comments on commit 4566ca4

Please sign in to comment.