Skip to content

Commit

Permalink
Potential fix for bad water map generation
Browse files Browse the repository at this point in the history
  • Loading branch information
KimLS committed Jun 5, 2014
1 parent 992830b commit df2167e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions awater/water_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,28 @@ bool WaterMap::BuildAndWriteS3D(std::string zone_name) {
}
else if (!strncmp(region->GetName().c_str(), "VWA", 3)) {
region_type = RegionTypeVWater;
} else {
if (!strncmp(region->GetExtendedInfo().c_str(), "WT", 2)) {
region_type = RegionTypeWater;
}
else if (!strncmp(region->GetExtendedInfo().c_str(), "LA", 2)) {
region_type = RegionTypeLava;
}
else if (!strncmp(region->GetExtendedInfo().c_str(), "DRNTP", 5)) {
region_type = RegionTypeZoneLine;
}
else if (!strncmp(region->GetExtendedInfo().c_str(), "DRP_", 4)) {
region_type = RegionTypePVP;
}
else if (!strncmp(region->GetExtendedInfo().c_str(), "SL", 2)) {
region_type = RegionTypeSlime;
}
else if (!strncmp(region->GetExtendedInfo().c_str(), "DRN", 3)) {
region_type = RegionTypeIce;
}
else if (!strncmp(region->GetExtendedInfo().c_str(), "VWA", 3)) {
region_type = RegionTypeVWater;
}
}

for(size_t j = 0; j < regions.size(); ++j) {
Expand Down

0 comments on commit df2167e

Please sign in to comment.