mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Code modernization: src/m* (part 3)
* empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * remove some unused headers in some cpp variable
This commit is contained in:
parent
b5f7249a7e
commit
d382483fa7
11 changed files with 20 additions and 31 deletions
|
@ -115,7 +115,6 @@ void MinimapUpdateThread::doUpdate()
|
|||
|
||||
void MinimapUpdateThread::getMap(v3s16 pos, s16 size, s16 height)
|
||||
{
|
||||
v3s16 region(size, 0, size);
|
||||
v3s16 pos_min(pos.X - size / 2, pos.Y - height / 2, pos.Z - size / 2);
|
||||
v3s16 pos_max(pos_min.X + size - 1, pos.Y + height / 2, pos_min.Z + size - 1);
|
||||
v3s16 blockpos_min = getNodeBlockPos(pos_min);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue