mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +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 },
|
{ "weaponsway", USERDEFS_WEAPONSWAY, 0, 0 },
|
||||||
{ "angleinterpolation", USERDEFS_ANGLEINTERPOLATION, 0, 0 },
|
{ "angleinterpolation", USERDEFS_ANGLEINTERPOLATION, 0, 0 },
|
||||||
{ "deathmsgs", USERDEFS_DEATHMSGS, 0, 0 },
|
{ "deathmsgs", USERDEFS_DEATHMSGS, 0, 0 },
|
||||||
|
{ "levelstats", USERDEFS_LEVELSTATS, 0, 0 },
|
||||||
{ "", -1, 0, 0 } // END OF LIST
|
{ "", -1, 0, 0 } // END OF LIST
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,8 @@ enum userdefslabels
|
||||||
USERDEFS_VIEWBOB,
|
USERDEFS_VIEWBOB,
|
||||||
USERDEFS_WEAPONSWAY,
|
USERDEFS_WEAPONSWAY,
|
||||||
USERDEFS_ANGLEINTERPOLATION,
|
USERDEFS_ANGLEINTERPOLATION,
|
||||||
USERDEFS_DEATHMSGS
|
USERDEFS_DEATHMSGS,
|
||||||
|
USERDEFS_LEVELSTATS
|
||||||
};
|
};
|
||||||
|
|
||||||
enum sectorlabels
|
enum sectorlabels
|
||||||
|
|
|
@ -850,6 +850,15 @@ static void DoUserDef(int iSet, int lLabelID, int lVar2)
|
||||||
SetGameVarID(lVar2, ud.deathmsgs, g_i, g_p);
|
SetGameVarID(lVar2, ud.deathmsgs, g_i, g_p);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
case USERDEFS_LEVELSTATS:
|
||||||
|
if (iSet)
|
||||||
|
{
|
||||||
|
ud.levelstats = lValue;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SetGameVarID(lVar2, ud.levelstats, g_i, g_p);
|
||||||
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue