Reduced the footprint of the tiles

Also prepping for serializing the regions.
This commit is contained in:
Kayne Ruse
2014-03-15 22:59:57 +11:00
parent 7e500027e3
commit d5b551cec3
8 changed files with 49 additions and 33 deletions
+2 -2
View File
@@ -35,12 +35,12 @@ RegionPagerBase::~RegionPagerBase() {
//EMPTY
}
int RegionPagerBase::SetTile(int x, int y, int z, int v) {
Region::type_t RegionPagerBase::SetTile(int x, int y, int z, Region::type_t v) {
Region* ptr = GetRegion(x, y);
return ptr->SetTile(x - ptr->GetX(), y - ptr->GetY(), z, v);
}
int RegionPagerBase::GetTile(int x, int y, int z) {
Region::type_t RegionPagerBase::GetTile(int x, int y, int z) {
Region* ptr = GetRegion(x, y);
return ptr->GetTile(x - ptr->GetX(), y - ptr->GetY(), z);
}