mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-24 14:57:08 -05:00
Reserve MAP_UNDEFINED
This commit is contained in:
parent
83ef14a242
commit
ba4a43d595
|
|
@ -238,6 +238,7 @@ public:
|
|||
static QString getExistingFilepath(QString filepath);
|
||||
void applyParsedLimits();
|
||||
|
||||
static QString getEmptyMapDefineName();
|
||||
static QString getDynamicMapDefineName();
|
||||
static QString getDynamicMapName();
|
||||
static int getNumTilesPrimary();
|
||||
|
|
|
|||
|
|
@ -1990,6 +1990,8 @@ bool Project::isIdentifierUnique(const QString &identifier) const {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (identifier == getEmptyMapDefineName())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -3050,6 +3052,11 @@ int Project::getMaxObjectEvents()
|
|||
return Project::max_object_events;
|
||||
}
|
||||
|
||||
QString Project::getEmptyMapDefineName() {
|
||||
const QString prefix = projectConfig.getIdentifier(ProjectIdentifier::define_map_prefix);
|
||||
return prefix + projectConfig.getIdentifier(ProjectIdentifier::define_map_empty);
|
||||
}
|
||||
|
||||
QString Project::getDynamicMapDefineName() {
|
||||
const QString prefix = projectConfig.getIdentifier(ProjectIdentifier::define_map_prefix);
|
||||
return prefix + projectConfig.getIdentifier(ProjectIdentifier::define_map_dynamic);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user