[Maps] Load sun from main zone instead of gfxworld basename
This commit is contained in:
parent
38aba91cc9
commit
6a14220ee7
@ -189,9 +189,9 @@ namespace Components
|
||||
|
||||
Game::GfxWorld* world = *reinterpret_cast<Game::GfxWorld**>(0x66DEE94);
|
||||
|
||||
if (FileSystem::File(fmt::sprintf("sun/%s.sun", world->baseName)).exists())
|
||||
if (FileSystem::File(fmt::sprintf("sun/%s.sun", Maps::CurrentMainZone.data())).exists())
|
||||
{
|
||||
Game::R_LoadSunThroughDvars(world->baseName, &world->sun);
|
||||
Game::R_LoadSunThroughDvars(Maps::CurrentMainZone.data(), &world->sun);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user