mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Use appropriate sized type for VoxelArea extent
This commit is contained in:
parent
3c5e0d10fc
commit
8957739cdf
16 changed files with 62 additions and 47 deletions
|
@ -79,7 +79,7 @@ struct MapEditEvent
|
|||
VoxelArea a;
|
||||
for (v3s16 p : modified_blocks) {
|
||||
v3s16 np1 = p*MAP_BLOCKSIZE;
|
||||
v3s16 np2 = np1 + v3s16(1,1,1)*MAP_BLOCKSIZE - v3s16(1,1,1);
|
||||
v3s16 np2 = np1 + v3s16(MAP_BLOCKSIZE-1);
|
||||
a.addPoint(np1);
|
||||
a.addPoint(np2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue