[Maps] Load sun from main zone instead of gfxworld basename

This commit is contained in:
momo5502 2016-12-04 21:42:05 +01:00
parent 38aba91cc9
commit 6a14220ee7

View File

@ -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);
}
}