mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Pandora's Box support for player->spheres
Opting to handle this transparently via the Rings menu option. Doesn't seem worth making a separate entry for Spheres.
This commit is contained in:
parent
4cb7036f51
commit
672e196aa4
1 changed files with 10 additions and 2 deletions
|
@ -5273,6 +5273,9 @@ static void M_HandleAddons(INT32 choice)
|
|||
static void M_PandorasBox(INT32 choice)
|
||||
{
|
||||
(void)choice;
|
||||
if (maptol & TOL_NIGHTS)
|
||||
CV_StealthSetValue(&cv_dummyrings, max(players[consoleplayer].spheres, 0));
|
||||
else
|
||||
CV_StealthSetValue(&cv_dummyrings, max(players[consoleplayer].rings, 0));
|
||||
if (players[consoleplayer].lives == 0x7f)
|
||||
CV_StealthSetValue(&cv_dummylives, -1);
|
||||
|
@ -5291,7 +5294,12 @@ static void M_PandorasBox(INT32 choice)
|
|||
static boolean M_ExitPandorasBox(void)
|
||||
{
|
||||
if (cv_dummyrings.value != max(players[consoleplayer].rings, 0))
|
||||
{
|
||||
if (maptol & TOL_NIGHTS)
|
||||
COM_ImmedExecute(va("setspheres %d", cv_dummyrings.value));
|
||||
else
|
||||
COM_ImmedExecute(va("setrings %d", cv_dummyrings.value));
|
||||
}
|
||||
if (cv_dummylives.value != players[consoleplayer].lives)
|
||||
COM_ImmedExecute(va("setlives %d", cv_dummylives.value));
|
||||
if (cv_dummycontinues.value != players[consoleplayer].continues)
|
||||
|
|
Loading…
Reference in a new issue