@@ -288,10 +288,10 @@ void Map::unspreadLight(enum LightBank bank,
288
288
continue ;
289
289
290
290
// Calculate relative position in block
291
- v3s16 relpos = pos - blockpos_last * MAP_BLOCKSIZE;
291
+ // v3s16 relpos = pos - blockpos_last * MAP_BLOCKSIZE;
292
292
293
293
// Get node straight from the block
294
- MapNode n = block->getNode (relpos);
294
+ // MapNode n = block->getNode(relpos);
295
295
296
296
u8 oldlight = j->second ;
297
297
@@ -937,7 +937,7 @@ void Map::addNodeAndUpdate(v3s16 p, MapNode n,
937
937
*/
938
938
939
939
v3s16 toppos = p + v3s16 (0 ,1 ,0 );
940
- v3s16 bottompos = p + v3s16 (0 ,-1 ,0 );
940
+ // v3s16 bottompos = p + v3s16(0,-1,0);
941
941
942
942
bool node_under_sunlight = true ;
943
943
std::set<v3s16> light_sources;
@@ -1246,7 +1246,7 @@ void Map::removeNodeAndUpdate(v3s16 p,
1246
1246
// Get the brightest neighbour node and propagate light from it
1247
1247
v3s16 n2p = getBrightestNeighbour (bank, p);
1248
1248
try {
1249
- MapNode n2 = getNode (n2p);
1249
+ // MapNode n2 = getNode(n2p);
1250
1250
lightNeighbors (bank, n2p, modified_blocks);
1251
1251
}
1252
1252
catch (InvalidPositionException &e)
@@ -2831,7 +2831,7 @@ ServerMapSector * ServerMap::createSector(v2s16 p2d)
2831
2831
sector = new ServerMapSector (this , p2d, m_gamedef);
2832
2832
2833
2833
// Sector position on map in nodes
2834
- v2s16 nodepos2d = p2d * MAP_BLOCKSIZE;
2834
+ // v2s16 nodepos2d = p2d * MAP_BLOCKSIZE;
2835
2835
2836
2836
/*
2837
2837
Insert to container
0 commit comments