mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Move special_filter/ templates to special/filter/.
This should help with simplifying the (un)placeable filtering again. Reviewed By: fatherbushido Differential Revision: https://code.wildfiregames.com/D934 This was SVN commit r20242.
This commit is contained in:
@@ -221,7 +221,7 @@ AIInterface.prototype.OnTemplateModification = function(msg)
|
||||
{
|
||||
// Remove templates that we obviously don't care about.
|
||||
if (templateName.startsWith("rubble/") || templateName.startsWith("skirmish/") ||
|
||||
templateName.startsWith("special_filter/"))
|
||||
templateName.startsWith("special/filter/"))
|
||||
continue;
|
||||
let template = cmpTemplateManager.GetTemplateWithoutValidation(templateName);
|
||||
if (!template || !template.Identity || !template.Identity.Civ)
|
||||
|
||||
@@ -62,7 +62,7 @@ bool CTemplateLoader::LoadTemplateFile(const std::string& templateName, int dept
|
||||
return false;
|
||||
}
|
||||
|
||||
VfsPath path = VfsPath(TEMPLATE_ROOT) / L"special_filter" / wstring_from_utf8(prefix + ".xml");
|
||||
VfsPath path = VfsPath(TEMPLATE_ROOT) / L"special" / L"filter" / wstring_from_utf8(prefix + ".xml");
|
||||
if (!VfsFileExists(path))
|
||||
{
|
||||
LOGERROR("Invalid subset '%s'", prefix.c_str());
|
||||
|
||||
Reference in New Issue
Block a user