Pointless tweak

This commit is contained in:
Kayne Ruse
2015-04-26 03:24:25 +10:00
parent 63e4394583
commit 0e149acc62
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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;
} }
+1
View File
@@ -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);