Merge branch 'develop' of https://github.com/antopilo/Nuake into develop

This commit is contained in:
Antoine Pilote
2024-09-03 18:48:10 -04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -596,6 +596,8 @@ namespace Nuake
light.m_Framebuffers[0]->Clear();
{
Matrix4 spotLightTransform = Matrix4(1.0f);
Vector3 pos = lightTransform.GetGlobalPosition();
pos.y *= -1.0f;
pos.x *= -1.0f;

View File

@@ -269,7 +269,7 @@ namespace Nuake
for (const auto& e : view)
{
auto& map = view.get<QuakeMapComponent>(e);
if (map.AutoRebuild && !map.Path.empty())
if (map.AutoRebuild && !map.Path.empty() && FileSystem::FileExists(map.Path))
{
if (auto file = FileSystem::GetFile(map.Path); file->IsValid() && file->GetHasBeenModified())
{