mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
type safe CVAR declaration.
This commit is contained in:
parent
db5fcde0db
commit
1111251887
9 changed files with 43 additions and 35 deletions
|
@ -72,7 +72,7 @@ CUSTOM_CVAR(Int, con_notifylines, 4, CVAR_GLOBALCONFIG | CVAR_ARCHIVE)
|
|||
NotifyStrings.Shift(self);
|
||||
}
|
||||
|
||||
CUSTOM_CVAR(Float, con_notifyscale, 1, CVAR_ARCHIVE)
|
||||
CUSTOM_CVAR(Float, con_notifyscale, 1.f, CVAR_ARCHIVE)
|
||||
{
|
||||
if (self < 0.36f) self = 0.36f;
|
||||
if (self > 1) self = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue