Pointless tweak
This commit is contained in:
@@ -42,6 +42,14 @@ Region::Region(Region const& rhs): x(rhs.x), y(rhs.y) {
|
|||||||
memcpy(tiles, rhs.tiles, REGION_WIDTH*REGION_HEIGHT*REGION_DEPTH*sizeof(type_t));
|
memcpy(tiles, rhs.tiles, REGION_WIDTH*REGION_HEIGHT*REGION_DEPTH*sizeof(type_t));
|
||||||
solid = rhs.solid;
|
solid = rhs.solid;
|
||||||
|
|
||||||
|
//debugging
|
||||||
|
std::cout << "Copied: (" << x << ", " << y << "): " << int(***tiles) << ", " << int(***rhs.tiles) << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
Region::Region(Region&& rhs): x(rhs.x), y(rhs.y) {
|
||||||
|
memcpy(tiles, rhs.tiles, REGION_WIDTH*REGION_HEIGHT*REGION_DEPTH*sizeof(type_t));
|
||||||
|
solid = rhs.solid;
|
||||||
|
|
||||||
//debugging
|
//debugging
|
||||||
std::cout << "Moved: (" << x << ", " << y << "): " << int(***tiles) << ", " << int(***rhs.tiles) << std::endl;
|
std::cout << "Moved: (" << x << ", " << y << "): " << int(***tiles) << ", " << int(***rhs.tiles) << std::endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public:
|
|||||||
Region() = delete;
|
Region() = delete;
|
||||||
Region(int x, int y);
|
Region(int x, int y);
|
||||||
Region(Region const&);
|
Region(Region const&);
|
||||||
|
Region(Region&&);
|
||||||
~Region() = default;
|
~Region() = default;
|
||||||
|
|
||||||
type_t SetTile(int x, int y, int z, type_t v);
|
type_t SetTile(int x, int y, int z, type_t v);
|
||||||
|
|||||||
Reference in New Issue
Block a user