1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

Load splash

This commit is contained in:
husho 2018-06-05 03:01:42 +03:00
parent e98cb05c47
commit 04c3b62f01

View File

@ -147,6 +147,9 @@ void RWGame::loadGame(const std::string& savename) {
if (!SaveGame::loadGame(state, savename)) { if (!SaveGame::loadGame(state, savename)) {
log.error("Game", "Failed to load game"); log.error("Game", "Failed to load game");
} }
// Set fade splash
state.world->data->loadSplash("SPLASH1");
} }
void RWGame::startScript(const std::string& name) { void RWGame::startScript(const std::string& name) {
@ -615,8 +618,7 @@ void RWGame::render(float alpha, float time) {
} }
RW_PROFILE_END(); RW_PROFILE_END();
if (!world->isPaused()) if (!world->isPaused()) drawOnScreenText(world.get(), &renderer);
drawOnScreenText(world.get(), &renderer);
} }
void RWGame::renderDebugStats(float time) { void RWGame::renderDebugStats(float time) {