mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
(BANDAID FIX!) filling in landmass cells for regions "missed" by ray casting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user