Some debug code cleanup, change the format for the mod buffer key.

This commit is contained in:
Anna Rose Wiggins 2019-12-11 00:29:02 -05:00
parent 8e66d3c380
commit a75408fb22
3 changed files with 74 additions and 19 deletions

View file

@ -90,7 +90,7 @@ end
-- pos_x and pos_y are global coordinates.
function get_tile(pos_x, pos_y)
-- lookup changes in the change buffer
local modded_sprite = mod_buffer[tostr(pos_x) .. "+" .. tostr(pos_y)]
local modded_sprite = mod_buffer[get_mod_key(pos_x, pos_y)]
if (modded_sprite) return modded_sprite
local biome_name = get_biome_name(pos_x, pos_y)