mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 20:03:45 +00:00
[generator] Ignore edited status for nearby places during map generation
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
zyphlar
parent
c8bfeb8e96
commit
01a198a866
@@ -29,8 +29,15 @@ MwmContext::MwmContext(MwmSet::MwmHandle handle, MwmType type) : MwmContext(std:
|
||||
m_type = type;
|
||||
}
|
||||
|
||||
std::unique_ptr<FeatureType> MwmContext::GetFeature(uint32_t index) const
|
||||
std::unique_ptr<FeatureType> MwmContext::GetFeature(uint32_t index, bool ignoredEditedStatus) const
|
||||
{
|
||||
if (ignoredEditedStatus) {
|
||||
auto ft = m_vector.GetByIndex(index);
|
||||
CHECK(ft, ());
|
||||
ft->SetID(FeatureID(GetId(), index));
|
||||
return ft;
|
||||
}
|
||||
|
||||
std::unique_ptr<FeatureType> ft;
|
||||
switch (GetEditedStatus(index))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user