1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Apply review requests

This commit is contained in:
Gymnasiast
2021-03-31 19:15:33 +02:00
parent b3bbdcbfd5
commit b627dbd3a4
4 changed files with 5 additions and 15 deletions

View File

@@ -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")