1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

General code refactoring/improvements in server, treegen and connection

This commit is contained in:
sfan5 2024-03-12 14:13:24 +01:00
parent 24f2c38093
commit bc4ab8b99e
34 changed files with 330 additions and 439 deletions

View file

@ -600,7 +600,7 @@ void Map::removeNodeTimer(v3s16 p)
block->removeNodeTimer(p_rel);
}
bool Map::determineAdditionalOcclusionCheck(const v3s16 &pos_camera,
bool Map::determineAdditionalOcclusionCheck(const v3s16 pos_camera,
const core::aabbox3d<s16> &block_bounds, v3s16 &check)
{
/*
@ -664,7 +664,7 @@ bool Map::determineAdditionalOcclusionCheck(const v3s16 &pos_camera,
return false;
}
bool Map::isOccluded(const v3s16 &pos_camera, const v3s16 &pos_target,
bool Map::isOccluded(const v3s16 pos_camera, const v3s16 pos_target,
float step, float stepfac, float offset, float end_offset, u32 needed_count)
{
v3f direction = intToFloat(pos_target - pos_camera, BS);