From f916398a541dbd09cbf14409f358556bc42f5535 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Mon, 26 Sep 2022 06:49:08 -0400 Subject: Add lighting test and benchmark (#12802) --- src/voxelalgorithms.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/voxelalgorithms.cpp') diff --git a/src/voxelalgorithms.cpp b/src/voxelalgorithms.cpp index ffb70aa71..a11952916 100644 --- a/src/voxelalgorithms.cpp +++ b/src/voxelalgorithms.cpp @@ -826,7 +826,7 @@ void fill_with_sunlight(MMVManip *vm, const NodeDefManager *ndef, v2s16 offset, * is sunlight above the block at the given z-x relative * node coordinates. */ -void is_sunlight_above_block(ServerMap *map, mapblock_v3 pos, +void is_sunlight_above_block(Map *map, mapblock_v3 pos, const NodeDefManager *ndef, bool light[MAP_BLOCKSIZE][MAP_BLOCKSIZE]) { mapblock_v3 source_block_pos = pos + v3s16(0, 1, 0); @@ -1044,7 +1044,7 @@ void finish_bulk_light_update(Map *map, mapblock_v3 minblock, } } -void blit_back_with_light(ServerMap *map, MMVManip *vm, +void blit_back_with_light(Map *map, MMVManip *vm, std::map *modified_blocks) { const NodeDefManager *ndef = map->getNodeDefManager(); @@ -1187,7 +1187,7 @@ void fill_with_sunlight(MapBlock *block, const NodeDefManager *ndef, } } -void repair_block_light(ServerMap *map, MapBlock *block, +void repair_block_light(Map *map, MapBlock *block, std::map *modified_blocks) { if (!block || block->isDummy()) -- cgit v1.2.3