mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed: The powered up Mace was missing its HoldAtkState.
- Added: Using "*" with ACS's music commands will play the level's default music set in MAPINFO. SVN r478 (trunk)
This commit is contained in:
parent
7c2fc08f35
commit
0320057260
3 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
February 4, 2007 (Changes by Graf Zahl)
|
||||
- Fixed: The powered up Mace was missing its HoldAtkState.
|
||||
- Added: Using "*" with ACS's music commands will play the level's default
|
||||
music set in MAPINFO.
|
||||
|
||||
February 3, 2007
|
||||
- Added two new MAPINFO flags to control what actor activates impact lines:
|
||||
* MissileShootersActivateImpactLines - the current behavior.
|
||||
|
|
|
@ -882,6 +882,7 @@ IMPLEMENT_STATELESS_ACTOR (AMacePowered, Heretic, -1, 0)
|
|||
PROP_Weapon_AmmoUse1 (USE_MACE_AMMO_2)
|
||||
PROP_Weapon_AmmoGive1 (0)
|
||||
PROP_Weapon_AtkState (S_MACEATK2)
|
||||
PROP_Weapon_HoldAtkState (S_MACEATK2)
|
||||
PROP_Weapon_SisterType ("Mace")
|
||||
PROP_Weapon_ProjectileType ("MaceFX4")
|
||||
END_DEFAULTS
|
||||
|
|
|
@ -1491,6 +1491,20 @@ bool S_ChangeMusic (const char *musicname, int order, bool looping, bool force)
|
|||
return false;
|
||||
}
|
||||
|
||||
// allow specifying "*" as a placeholder to play the level's default music.
|
||||
if (musicname != NULL && !strcmp(musicname, "*"))
|
||||
{
|
||||
if (gamestate == GS_LEVEL || gamestate == GS_TITLELEVEL)
|
||||
{
|
||||
musicname = level.music;
|
||||
order = level.musicorder
|
||||
}
|
||||
else
|
||||
{
|
||||
musicname = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (musicname == NULL || musicname[0] == 0)
|
||||
{
|
||||
// Don't choke if the map doesn't have a song attached
|
||||
|
|
Loading…
Reference in a new issue