mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- replaced all calls to GetCVar with direct CVar accesses.
This commit is contained in:
parent
8f722a3633
commit
0cbd260f96
5 changed files with 6 additions and 6 deletions
|
@ -186,11 +186,11 @@ extend class Actor
|
||||||
void A_BrainDie()
|
void A_BrainDie()
|
||||||
{
|
{
|
||||||
// [RH] If noexit, then don't end the level.
|
// [RH] If noexit, then don't end the level.
|
||||||
if ((GetCVar("deathmatch") || GetCVar("alwaysapplydmflags")) && GetCVar("sv_noexit"))
|
if ((deathmatch || alwaysapplydmflags) && sv_noexit)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// New dmflag: Kill all boss spawned monsters before ending the level.
|
// New dmflag: Kill all boss spawned monsters before ending the level.
|
||||||
if (GetCVar("sv_killbossmonst"))
|
if (sv_killbossmonst)
|
||||||
{
|
{
|
||||||
int count; // Repeat until we have no more boss-spawned monsters.
|
int count; // Repeat until we have no more boss-spawned monsters.
|
||||||
ThinkerIterator it = ThinkerIterator.Create();
|
ThinkerIterator it = ThinkerIterator.Create();
|
||||||
|
|
|
@ -38,7 +38,7 @@ extend class Actor
|
||||||
{
|
{
|
||||||
void A_BarrelDestroy()
|
void A_BarrelDestroy()
|
||||||
{
|
{
|
||||||
if (GetCVar("sv_barrelrespawn"))
|
if (sv_barrelrespawn)
|
||||||
{
|
{
|
||||||
Height = Default.Height;
|
Height = Default.Height;
|
||||||
bInvisible = true;
|
bInvisible = true;
|
||||||
|
|
|
@ -41,7 +41,7 @@ extend class StateProvider
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int damage = GetCVar("deathmatch") ? 100 : 150;
|
int damage = deathmatch ? 100 : 150;
|
||||||
A_RailAttack(damage, offset_xy, false); // note that this function handles ammo depletion itself for Dehacked compatibility purposes.
|
A_RailAttack(damage, offset_xy, false); // note that this function handles ammo depletion itself for Dehacked compatibility purposes.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@ extend class Actor
|
||||||
aimtarget.Height = Height;
|
aimtarget.Height = Height;
|
||||||
|
|
||||||
bool shootmode = ((flags & MSF_Classic) || // Flag explicitely set, or no flags and compat options
|
bool shootmode = ((flags & MSF_Classic) || // Flag explicitely set, or no flags and compat options
|
||||||
(flags == 0 && isDehState(CurState) && GetCVar("compat_mushroom")));
|
(flags == 0 && isDehState(CurState) && compat_mushroom));
|
||||||
|
|
||||||
for (i = -numspawns; i <= numspawns; i += 8)
|
for (i = -numspawns; i <= numspawns; i += 8)
|
||||||
{
|
{
|
||||||
|
|
|
@ -81,7 +81,7 @@ extend class StateProvider
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SpawnPlayerMissile("BFGBall", angle, 0, 0, 0, null, false, GetCVar("sv_nobfgaim"));
|
SpawnPlayerMissile("BFGBall", angle, 0, 0, 0, null, false, sv_nobfgaim);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue