(BANDAID FIX!) filling in landmass cells for regions "missed" by ray casting

This commit is contained in:
devZoGok
2023-09-03 09:22:54 +03:00
parent f228297b8a
commit fa4b875a2b
+3 -2
View File
@@ -272,8 +272,9 @@ namespace battleship{
Ray::sortResults(res);
if(res.empty()){
cout << "Missed map from " << rayPos.x << " " << rayPos.y << " " << rayPos.z << "\n";
continue;
Ray::CollisionResult r;
r.pos = Vector3(rayPos.x, 0, rayPos.z);
res.push_back(r);
}
Map::Cell::Type type = Map::Cell::Type::LAND;