mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Add changerespawncolour() script command
This command simply changes the color that the player respawns with upon death. The respawn color also persists through custom save files. Closes #830.
This commit is contained in:
@@ -363,6 +363,8 @@ void Game::init(void)
|
||||
disableaudiopause = false;
|
||||
disabletemporaryaudiopause = true;
|
||||
inputdelay = false;
|
||||
|
||||
respawncolour = 0;
|
||||
}
|
||||
|
||||
void Game::lifesequence(void)
|
||||
@@ -5198,6 +5200,10 @@ void Game::customloadquick(const std::string& savfile)
|
||||
{
|
||||
map.showtrinkets = help.Int(pText);
|
||||
}
|
||||
else if (SDL_strcmp(pKey, "respawncolour") == 0)
|
||||
{
|
||||
respawncolour = help.Int(pText);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5670,6 +5676,8 @@ bool Game::customsavequick(const std::string& savfile)
|
||||
|
||||
xml::update_tag(msgs, "showtrinkets", (int) map.showtrinkets);
|
||||
|
||||
xml::update_tag(msgs, "respawncolour", respawncolour);
|
||||
|
||||
std::string summary = savearea + ", " + timestring();
|
||||
xml::update_tag(msgs, "summary", summary.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user