Muntat a c++14 per a make_unique

Mes autos, const i constexpr perl codi
Ara la classe Screen es un poc pitjor
This commit is contained in:
2024-10-06 14:58:00 +02:00
parent 25a2753b13
commit afe092c742
16 changed files with 290 additions and 381 deletions

View File

@@ -4,6 +4,7 @@
#include <string> // for basic_string, char_traits, string
#include "jail_audio.h" // for JA_DeleteSound, JA_LoadSound, JA_Pla...
#include "options.h" // for options
#include "param.h"
#include "sprite.h" // for Sprite
#include "text.h" // for Text
#include "texture.h" // for Texture
@@ -210,11 +211,11 @@ void Notify::showText(std::string text1, std::string text2, int icon)
}
else if (options.notification.posH == pos_middle)
{
despH = ((options.video.gameWidth / 2) - (width / 2));
despH = ((param.game.width / 2) - (width / 2));
}
else
{
despH = options.video.gameWidth - width - paddingOut;
despH = param.game.width - width - paddingOut;
}
// Posición vertical
@@ -225,7 +226,7 @@ void Notify::showText(std::string text1, std::string text2, int icon)
}
else
{
despV = options.video.gameHeight - height - paddingOut;
despV = param.game.height - height - paddingOut;
}
const int travelDist = height + paddingOut;