mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Con access to ud.levelstats
git-svn-id: https://svn.eduke32.com/eduke32@674 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
833ec4d3e8
commit
e586fa650a
3 changed files with 12 additions and 1 deletions
|
@ -833,6 +833,7 @@ static const memberlabel_t userdefslabels[]=
|
|||
{ "weaponsway", USERDEFS_WEAPONSWAY, 0, 0 },
|
||||
{ "angleinterpolation", USERDEFS_ANGLEINTERPOLATION, 0, 0 },
|
||||
{ "deathmsgs", USERDEFS_DEATHMSGS, 0, 0 },
|
||||
{ "levelstats", USERDEFS_LEVELSTATS, 0, 0 },
|
||||
{ "", -1, 0, 0 } // END OF LIST
|
||||
};
|
||||
|
||||
|
|
|
@ -335,7 +335,8 @@ enum userdefslabels
|
|||
USERDEFS_VIEWBOB,
|
||||
USERDEFS_WEAPONSWAY,
|
||||
USERDEFS_ANGLEINTERPOLATION,
|
||||
USERDEFS_DEATHMSGS
|
||||
USERDEFS_DEATHMSGS,
|
||||
USERDEFS_LEVELSTATS
|
||||
};
|
||||
|
||||
enum sectorlabels
|
||||
|
|
|
@ -850,6 +850,15 @@ static void DoUserDef(int iSet, int lLabelID, int lVar2)
|
|||
SetGameVarID(lVar2, ud.deathmsgs, g_i, g_p);
|
||||
return;
|
||||
|
||||
case USERDEFS_LEVELSTATS:
|
||||
if (iSet)
|
||||
{
|
||||
ud.levelstats = lValue;
|
||||
return;
|
||||
}
|
||||
SetGameVarID(lVar2, ud.levelstats, g_i, g_p);
|
||||
return;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue