Loading

Paste #pddhkeb5q

  1. diff --git a/src/terraform.cpp b/src/terraform.cpp
  2. index fb3ee52..61c8c4a 100644
  3. --- a/src/terraform.cpp
  4. +++ b/src/terraform.cpp
  5. @@ -604,13 +604,13 @@ void ChangeTileCursorMode(const XYZPoint16 &voxel_pos, CursorType ctype, Viewpor
  6.                 w = _world.GetXSize();
  7.                 h = _world.GetYSize();
  8.         } else { // Single tile mode.
  9. -               p = {voxel_pos.x, voxel_pos.y};
  10. +               p = voxel_pos.Get2D();
  11.                 w = 1;
  12.                 h = 1;
  13.         }
  14.         TerrainChanges changes(p, w, h);
  15.  
  16. -       p = {voxel_pos.x, voxel_pos.y};
  17. +       p = voxel_pos.Get2D();
  18.  
  19.         bool ok;
  20.         switch (ctype) {

Comments