Fix for x and y swapped on water maps

This commit is contained in:
KimLS
2015-01-23 12:23:24 -08:00
parent 269d56e1d0
commit 143c0cf0f9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ WaterMapV1::~WaterMapV1() {
}
WaterRegionType WaterMapV1::ReturnRegionType(const glm::vec3& location) const {
return BSPReturnRegionType(1, location);
return BSPReturnRegionType(1, glm::vec3(location.y, location.x, location.z));
}
bool WaterMapV1::InWater(const glm::vec3& location) const {