mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
Fix #432
This commit is contained in:
parent
de8131924d
commit
5da89a871b
@ -402,12 +402,12 @@ void GameRenderer::renderWorld(GameWorld* world, const ViewCamera& camera,
|
||||
}
|
||||
|
||||
if ((world->state->isCinematic || world->state->currentCutscene) &&
|
||||
splashTexName != 0) {
|
||||
splashTexName != 0 && !world->isPaused()) {
|
||||
renderLetterbox();
|
||||
}
|
||||
|
||||
float fadeTimer = world->getGameTime() - world->state->fadeStart;
|
||||
if (fadeTimer < world->state->fadeTime || !world->state->fadeOut) {
|
||||
if ((fadeTimer < world->state->fadeTime || !world->state->fadeOut) && !world->isPaused()) {
|
||||
/// @todo rewrite this render code to use renderer class
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glUseProgram(ssRectProgram);
|
||||
@ -439,7 +439,7 @@ void GameRenderer::renderWorld(GameWorld* world, const ViewCamera& camera,
|
||||
}
|
||||
|
||||
if ((world->state->isCinematic || world->state->currentCutscene) &&
|
||||
splashTexName == 0) {
|
||||
splashTexName == 0 && !world->isPaused()) {
|
||||
renderLetterbox();
|
||||
}
|
||||
|
||||
|
@ -604,7 +604,8 @@ void RWGame::render(float alpha, float time) {
|
||||
}
|
||||
RW_PROFILE_END();
|
||||
|
||||
drawOnScreenText(world.get(), &renderer);
|
||||
if (!world->isPaused())
|
||||
drawOnScreenText(world.get(), &renderer);
|
||||
}
|
||||
|
||||
void RWGame::renderDebugStats(float time) {
|
||||
|
Loading…
Reference in New Issue
Block a user