Implement PVP regions

This commit is contained in:
Michael Cook (mackal) committed 2016-08-04 23:56:08 -04:00
1 parent d53d569020
commit 68df09a570
8 files changed
+57 -11

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ bool WaterMapV2::InLiquid(const glm::vec3& location) const {
return InWater(location) || InLava(location);
}
bool WaterMapV2::InPvP(const glm::vec3& location) const {
return ReturnRegionType(location) == RegionTypePVP;
}
bool WaterMapV2::Load(FILE *fp) {
uint32 region_count;
if (fread(&region_count, sizeof(region_count), 1, fp) != 1) {