mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-05 09:45:30 +01:00
Various random code cleanups
This commit is contained in:
@@ -127,7 +127,7 @@ void Schematic::blitToVManip(MMVManip *vm, v3s16 p, Rotation rot, bool force_pla
|
||||
i_start = sx - 1;
|
||||
i_step_x = zstride;
|
||||
i_step_z = -xstride;
|
||||
SWAP(s16, sx, sz);
|
||||
std::swap(sx, sz);
|
||||
break;
|
||||
case ROTATE_180:
|
||||
i_start = zstride * (sz - 1) + sx - 1;
|
||||
@@ -138,7 +138,7 @@ void Schematic::blitToVManip(MMVManip *vm, v3s16 p, Rotation rot, bool force_pla
|
||||
i_start = zstride * (sz - 1);
|
||||
i_step_x = -zstride;
|
||||
i_step_z = xstride;
|
||||
SWAP(s16, sx, sz);
|
||||
std::swap(sx, sz);
|
||||
break;
|
||||
default:
|
||||
i_start = 0;
|
||||
@@ -222,7 +222,6 @@ void Schematic::placeOnMap(ServerMap *map, v3s16 p, u32 flags,
|
||||
Rotation rot, bool force_place)
|
||||
{
|
||||
std::map<v3s16, MapBlock *> modified_blocks;
|
||||
std::map<v3s16, MapBlock *>::iterator it;
|
||||
|
||||
assert(map != NULL);
|
||||
assert(schemdata != NULL);
|
||||
|
||||
Reference in New Issue
Block a user