implemented map generator
This commit is contained in:
1 parent
69700f8b65
commit
f32cce0e56
9 files changed
+910
-38
No files matched your search
@@ -484,13 +484,17 @@ bool hasCityTileChanges()
|
||||
|
||||
const std::uint32_t *previewMap(int landMass)
|
||||
{
|
||||
constexpr std::int32_t PreviewRnd = 41601260; // randseed for preview map
|
||||
Database::lx = lxmax;
|
||||
Database::ly = lymax;
|
||||
Database::mapSize = Database::lx * Database::ly;
|
||||
// TODO: needs LandMass/DelphiRandSeed/CreateElevation/CreateMap, which
|
||||
// live in Database.pas's Map Editor section (not ported yet).
|
||||
Q_UNUSED(landMass);
|
||||
Q_UNUSED(previewElevation);
|
||||
Database::landMass = landMass;
|
||||
Database::delphiRandSeed = PreviewRnd;
|
||||
if (!previewElevation) {
|
||||
Database::createElevation();
|
||||
previewElevation = true;
|
||||
}
|
||||
Database::createMap(true);
|
||||
return Database::realMap.data();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user