mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- Added a Check for the Vavoom namespace to the UDMF parser. Functionally
it's 100% identical with ZDoom's own but needs to be checked for in case Vavoom compatible UDMF maps are released. SVN r1475 (trunk)
This commit is contained in:
parent
5c9654f220
commit
c65dc5bad4
4 changed files with 30 additions and 18 deletions
|
@ -1,4 +1,9 @@
|
||||||
March 10, 2009
|
March 11, 2009 (Changes by Graf Zahl)
|
||||||
|
- Added a Check for the Vavoom namespace to the UDMF parser. Functionally
|
||||||
|
it's 100% identical with ZDoom's own but needs to be checked for in
|
||||||
|
case Vavoom compatible UDMF maps are released.
|
||||||
|
|
||||||
|
March 10, 2009
|
||||||
- Added an SDL output plugin, so FMOD can produce sound using SDL's audio
|
- Added an SDL output plugin, so FMOD can produce sound using SDL's audio
|
||||||
support instead of its own OSS/ALSA/ESD support. This is selectable by
|
support instead of its own OSS/ALSA/ESD support. This is selectable by
|
||||||
setting snd_output to "sdl".
|
setting snd_output to "sdl".
|
||||||
|
@ -17,6 +22,7 @@ March 7, 2009
|
||||||
forces a write of the zip, even if it's newer than all the files it contains.
|
forces a write of the zip, even if it's newer than all the files it contains.
|
||||||
|
|
||||||
March 7, 2009 (Changes by Graf Zahl)
|
March 7, 2009 (Changes by Graf Zahl)
|
||||||
|
- Fixed: P_CompleteWeaponSetup was missing a NULL pointer check for the player.
|
||||||
- Adjusted some gravity related thresholds for the fix from Feb 28. Also removed
|
- Adjusted some gravity related thresholds for the fix from Feb 28. Also removed
|
||||||
some unnecessary floating point math from this code.
|
some unnecessary floating point math from this code.
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ extern FILE *Logfile;
|
||||||
extern bool insave;
|
extern bool insave;
|
||||||
|
|
||||||
CVAR (Bool, sv_cheats, false, CVAR_SERVERINFO | CVAR_LATCH)
|
CVAR (Bool, sv_cheats, false, CVAR_SERVERINFO | CVAR_LATCH)
|
||||||
CVAR (Bool, sv_unlimited_pickup, false, CVAR_ARCHIVE | CVAR_SERVERINFO)
|
CVAR (Bool, sv_unlimited_pickup, false, CVAR_SERVERINFO)
|
||||||
|
|
||||||
CCMD (toggleconsole)
|
CCMD (toggleconsole)
|
||||||
{
|
{
|
||||||
|
|
|
@ -375,6 +375,7 @@ xx(Monsterpush)
|
||||||
|
|
||||||
xx(ZDoom)
|
xx(ZDoom)
|
||||||
xx(ZDoomTranslated)
|
xx(ZDoomTranslated)
|
||||||
|
xx(Vavoom)
|
||||||
|
|
||||||
xx(Xpanningfloor)
|
xx(Xpanningfloor)
|
||||||
xx(Ypanningfloor)
|
xx(Ypanningfloor)
|
||||||
|
|
|
@ -104,6 +104,7 @@ enum
|
||||||
St=8,
|
St=8,
|
||||||
Zd=16,
|
Zd=16,
|
||||||
Zdt=32,
|
Zdt=32,
|
||||||
|
Va=64,
|
||||||
|
|
||||||
// will be extended later. Unknown namespaces will always be treated like the base
|
// will be extended later. Unknown namespaces will always be treated like the base
|
||||||
// namespace for each game
|
// namespace for each game
|
||||||
|
@ -274,7 +275,7 @@ struct UDMFParser
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Special:
|
case NAME_Special:
|
||||||
CHECK_N(Hx | Zd | Zdt)
|
CHECK_N(Hx | Zd | Zdt | Va)
|
||||||
th->special = CheckInt(key);
|
th->special = CheckInt(key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -283,7 +284,7 @@ struct UDMFParser
|
||||||
case NAME_Arg2:
|
case NAME_Arg2:
|
||||||
case NAME_Arg3:
|
case NAME_Arg3:
|
||||||
case NAME_Arg4:
|
case NAME_Arg4:
|
||||||
CHECK_N(Hx | Zd | Zdt)
|
CHECK_N(Hx | Zd | Zdt | Va)
|
||||||
th->args[int(key)-int(NAME_Arg0)] = CheckInt(key);
|
th->args[int(key)-int(NAME_Arg0)] = CheckInt(key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -323,7 +324,7 @@ struct UDMFParser
|
||||||
case NAME_Class14:
|
case NAME_Class14:
|
||||||
case NAME_Class15:
|
case NAME_Class15:
|
||||||
case NAME_Class16:
|
case NAME_Class16:
|
||||||
CHECK_N(Hx | Zd | Zdt)
|
CHECK_N(Hx | Zd | Zdt | Va)
|
||||||
if (CheckBool(key)) th->ClassFilter |= (1<<(int(key)-NAME_Class1));
|
if (CheckBool(key)) th->ClassFilter |= (1<<(int(key)-NAME_Class1));
|
||||||
else th->ClassFilter &= ~(1<<(int(key)-NAME_Class1));
|
else th->ClassFilter &= ~(1<<(int(key)-NAME_Class1));
|
||||||
break;
|
break;
|
||||||
|
@ -333,7 +334,7 @@ struct UDMFParser
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Dormant:
|
case NAME_Dormant:
|
||||||
CHECK_N(Hx | Zd | Zdt)
|
CHECK_N(Hx | Zd | Zdt | Va)
|
||||||
Flag(th->flags, MTF_DORMANT, key);
|
Flag(th->flags, MTF_DORMANT, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -350,27 +351,27 @@ struct UDMFParser
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Translucent:
|
case NAME_Translucent:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
Flag(th->flags, MTF_SHADOW, key);
|
Flag(th->flags, MTF_SHADOW, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Invisible:
|
case NAME_Invisible:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
Flag(th->flags, MTF_ALTSHADOW, key);
|
Flag(th->flags, MTF_ALTSHADOW, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Friend: // This maps to Strife's friendly flag
|
case NAME_Friend: // This maps to Strife's friendly flag
|
||||||
CHECK_N(Dm | Zd | Zdt)
|
CHECK_N(Dm | Zd | Zdt | Va)
|
||||||
Flag(th->flags, MTF_FRIENDLY, key);
|
Flag(th->flags, MTF_FRIENDLY, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Strifeally:
|
case NAME_Strifeally:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
Flag(th->flags, MTF_FRIENDLY, key);
|
Flag(th->flags, MTF_FRIENDLY, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Standing:
|
case NAME_Standing:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
Flag(th->flags, MTF_STANDSTILL, key);
|
Flag(th->flags, MTF_STANDSTILL, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -506,22 +507,22 @@ struct UDMFParser
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Jumpover:
|
case NAME_Jumpover:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
Flag(ld->flags, ML_RAILING, key);
|
Flag(ld->flags, ML_RAILING, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Blockfloating:
|
case NAME_Blockfloating:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
Flag(ld->flags, ML_BLOCK_FLOATERS, key);
|
Flag(ld->flags, ML_BLOCK_FLOATERS, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Transparent:
|
case NAME_Transparent:
|
||||||
CHECK_N(St | Zd | Zdt)
|
CHECK_N(St | Zd | Zdt | Va)
|
||||||
strifetrans = CheckBool(key);
|
strifetrans = CheckBool(key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NAME_Passuse:
|
case NAME_Passuse:
|
||||||
CHECK_N(Dm | Zd | Zdt)
|
CHECK_N(Dm | Zd | Zdt | Va)
|
||||||
passuse = CheckBool(key);
|
passuse = CheckBool(key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -573,7 +574,7 @@ struct UDMFParser
|
||||||
}
|
}
|
||||||
|
|
||||||
// This switch contains all keys which are ZDoom specific
|
// This switch contains all keys which are ZDoom specific
|
||||||
if (namespace_bits & (Zd|Zdt)) switch(key)
|
if (namespace_bits & (Zd|Zdt|Va)) switch(key)
|
||||||
{
|
{
|
||||||
case NAME_Alpha:
|
case NAME_Alpha:
|
||||||
ld->Alpha = CheckFixed(key);
|
ld->Alpha = CheckFixed(key);
|
||||||
|
@ -708,7 +709,7 @@ struct UDMFParser
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (namespace_bits & (Zd|Zdt)) switch(key)
|
if (namespace_bits & (Zd|Zdt|Va)) switch(key)
|
||||||
{
|
{
|
||||||
case NAME_offsetx_top:
|
case NAME_offsetx_top:
|
||||||
sd->SetTextureXOffset(side_t::top, CheckFixed(key));
|
sd->SetTextureXOffset(side_t::top, CheckFixed(key));
|
||||||
|
@ -848,7 +849,7 @@ struct UDMFParser
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (namespace_bits & (Zd|Zdt)) switch(key)
|
if (namespace_bits & (Zd|Zdt|Va)) switch(key)
|
||||||
{
|
{
|
||||||
case NAME_Xpanningfloor:
|
case NAME_Xpanningfloor:
|
||||||
sec->SetXOffset(sector_t::floor, CheckFixed(key));
|
sec->SetXOffset(sector_t::floor, CheckFixed(key));
|
||||||
|
@ -1121,6 +1122,10 @@ struct UDMFParser
|
||||||
case NAME_ZDoomTranslated:
|
case NAME_ZDoomTranslated:
|
||||||
namespace_bits = Zdt;
|
namespace_bits = Zdt;
|
||||||
break;
|
break;
|
||||||
|
case NAME_Vavoom:
|
||||||
|
namespace_bits = Va;
|
||||||
|
isTranslated = false;
|
||||||
|
break;
|
||||||
case NAME_Hexen:
|
case NAME_Hexen:
|
||||||
namespace_bits = Hx;
|
namespace_bits = Hx;
|
||||||
isTranslated = false;
|
isTranslated = false;
|
||||||
|
|
Loading…
Reference in a new issue