Quake Map Component reflected

This commit is contained in:
WiggleWizard
2024-09-15 00:11:12 +01:00
parent 0dcd383dbb
commit 7846a667a2
4 changed files with 89 additions and 71 deletions

View File

@@ -273,9 +273,9 @@ namespace Nuake
for (const auto& e : view)
{
auto& map = view.get<QuakeMapComponent>(e);
if (map.AutoRebuild && !map.Path.empty() && FileSystem::FileExists(map.Path))
if (map.AutoRebuild && map.Path.Exist())
{
if (auto file = FileSystem::GetFile(map.Path); file->Exist() && file->GetHasBeenModified())
if (auto file = FileSystem::GetFile(map.Path.GetRelativePath()); file->Exist() && file->GetHasBeenModified())
{
file->SetHasBeenModified(false);