forked from jaildesigner-jailgames/jaildoctors_dilemma
Reestructurant la classe Options
This commit is contained in:
@@ -785,14 +785,20 @@ void Player::reLoadTexture()
|
||||
// Recarga la paleta
|
||||
void Player::reLoadPalette()
|
||||
{
|
||||
color = stringToColor(options.palette, "white");
|
||||
if (options.cheat.infiniteLives)
|
||||
color = stringToColor(options.video.palette, "white");
|
||||
if (options.cheats.infinite_lives == Cheat::CheatState::ENABLED)
|
||||
{
|
||||
color = stringToColor(options.palette, "yellow");
|
||||
color = stringToColor(options.video.palette, "green");
|
||||
}
|
||||
if (options.cheat.invincible)
|
||||
{
|
||||
color = stringToColor(options.palette, "cyan");
|
||||
color = stringToColor(options.video.palette, "yellow");
|
||||
}
|
||||
if (options.cheats.invincible == Cheat::CheatState::ENABLED)
|
||||
{
|
||||
color = stringToColor(options.video.palette, "green");
|
||||
}
|
||||
{
|
||||
color = stringToColor(options.video.palette, "cyan");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user