forked from jaildesigner-jailgames/jaildoctors_dilemma
FIx: El jugador no se moria al caer de alto si se mantenia la tecla de slto pulsada
This commit is contained in:
@@ -72,7 +72,7 @@ void Screen::blit()
|
||||
SDL_RenderCopy(renderer, gameCanvas, nullptr, &dest);
|
||||
|
||||
// Dibuja las notificaciones
|
||||
//renderNotifications();
|
||||
renderNotifications();
|
||||
|
||||
// Muestra por pantalla el renderizador
|
||||
SDL_RenderPresent(renderer);
|
||||
@@ -356,12 +356,12 @@ void Screen::showText(std::string text)
|
||||
// Dibuja las notificaciones
|
||||
void Screen::renderNotifications()
|
||||
{
|
||||
// if (!notifyActive)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
//if (!notifyActive)
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
|
||||
SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight);
|
||||
//SDL_RenderSetLogicalSize(renderer, windowWidth * options->windowSize, windowHeight * options->windowSize);
|
||||
notify->render();
|
||||
SDL_RenderSetLogicalSize(renderer, gameCanvasWidth, gameCanvasHeight);
|
||||
//SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight);
|
||||
}
|
||||
Reference in New Issue
Block a user