Implementado el cambio de paleta durante el juego
This commit is contained in:
@@ -380,11 +380,9 @@ bool checkCollision(SDL_Point &p, d_line_t &l)
|
||||
}
|
||||
|
||||
// Devuelve un color_t a partir de un string
|
||||
color_t stringToColor(std::string str)
|
||||
color_t stringToColor(palette_e pal, std::string str)
|
||||
{
|
||||
const std::string palette = "spectrum";
|
||||
|
||||
if (palette == "spectrum")
|
||||
if (pal == p_zxspectrum)
|
||||
{
|
||||
if (str == "black")
|
||||
{
|
||||
@@ -467,7 +465,7 @@ color_t stringToColor(std::string str)
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
else if (pal == p_zxarne)
|
||||
{ // zxarne
|
||||
if (str == "black")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user