mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 09:14:58 +01:00
Apply review requests
This commit is contained in:
@@ -145,10 +145,10 @@ void mapgen_generate(mapgen_settings* settings)
|
||||
const auto selectedEdge = TerrainEdgeObject::GetById(settings->wall);
|
||||
std::string edgeTexture = selectedFloor != nullptr ? std::string(selectedEdge->GetIdentifier()) : "";
|
||||
|
||||
if (floorTexture == "")
|
||||
if (floorTexture.empty())
|
||||
floorTexture = BaseTerrain[util_rand() % std::size(BaseTerrain)];
|
||||
|
||||
if (edgeTexture == "")
|
||||
if (edgeTexture.empty())
|
||||
{
|
||||
// Base edge type on surface type
|
||||
if (floorTexture == "rct2.surface.dirt")
|
||||
|
||||
Reference in New Issue
Block a user