DEVELOP-gated reset cmd parameters

- Introduce "-resetspraycans"
- "-resetchallengegrid" existed, now gated
This commit is contained in:
toaster 2025-02-25 14:05:20 +00:00
parent 1fa1da9b4e
commit a6bf7f46a7

View file

@ -503,7 +503,9 @@ void srb2::load_ng_gamedata()
gamedata->achieved[i] = js.conditionsets[i];
}
#ifdef DEVELOP
if (!M_CheckParm("-resetchallengegrid"))
#endif
{
gamedata->challengegridwidth = std::max(js.challengegrid.width, (uint32_t)0);
if (gamedata->challengegridwidth)
@ -577,6 +579,11 @@ void srb2::load_ng_gamedata()
std::vector<candata_t> tempcans;
#ifdef DEVELOP
if (M_CheckParm("-resetspraycans"))
;
else
#endif
for (auto& cancolor : js.spraycans_v2)
{
// Version 2 behaviour - spraycans_v2, not spraycans!