- Version bump to 2.1.4.
- Fixed: Friendlies would not turn to face you when you engaged them in conversation, nor would they reliably return to their original facing when you stopped talking to them. - Added deprecation warnings for the DontHurtShooter, ExplosionRadius, and ExplosionDamage actor "properties." They were considered deprecated before; now this is explicitly stated when they are used. The problem with them is that they are not really properties and do not behave like other properties and cannot be inherited, because they are really just an alternate way of specifying parameters for A_Explode. (Anything that currently prints a deprecation warning will be removed completely in 2.2.0, which will be the version where custom state labels make their debut.) SVN r272 (trunk)
This commit is contained in:
parent
f203219d24
commit
06681ec72d
8 changed files with 56 additions and 14 deletions
|
|
@ -2223,7 +2223,7 @@ static void StatePropertyIsDeprecated (const char *actorname, const char *prop)
|
|||
{
|
||||
static bool warned = false;
|
||||
|
||||
Printf (TEXTCOLOR_YELLOW "In actor %s, the %s property is deprecated.\n",
|
||||
Printf (TEXTCOLOR_YELLOW "In actor %s, the %s property is deprecated and will be removed in 2.2.0.\n",
|
||||
actorname, prop);
|
||||
if (!warned)
|
||||
{
|
||||
|
|
@ -2739,6 +2739,8 @@ static void ActorHitObituary (AActor *defaults, Baggage &bag)
|
|||
//==========================================================================
|
||||
static void ActorDontHurtShooter (AActor *defaults, Baggage &bag)
|
||||
{
|
||||
Printf (TEXTCOLOR_YELLOW "DontHurtShooter in %s is deprecated and will be removed in 2.2.0.\n",
|
||||
bag.Info->Class->TypeName.GetChars());
|
||||
bag.EParms.HurtShooter=false;
|
||||
}
|
||||
|
||||
|
|
@ -2747,6 +2749,8 @@ static void ActorDontHurtShooter (AActor *defaults, Baggage &bag)
|
|||
//==========================================================================
|
||||
static void ActorExplosionRadius (AActor *defaults, Baggage &bag)
|
||||
{
|
||||
Printf (TEXTCOLOR_YELLOW "ExplosionRadius in %s is deprecated and will be removed in 2.2.0.\n",
|
||||
bag.Info->Class->TypeName.GetChars());
|
||||
SC_MustGetNumber();
|
||||
bag.EParms.ExplosionRadius=sc_Number;
|
||||
}
|
||||
|
|
@ -2756,6 +2760,8 @@ static void ActorExplosionRadius (AActor *defaults, Baggage &bag)
|
|||
//==========================================================================
|
||||
static void ActorExplosionDamage (AActor *defaults, Baggage &bag)
|
||||
{
|
||||
Printf (TEXTCOLOR_YELLOW "ExplosionDamage in %s is deprecated and will be removed in 2.2.0.\n",
|
||||
bag.Info->Class->TypeName.GetChars());
|
||||
SC_MustGetNumber();
|
||||
bag.EParms.ExplosionDamage=sc_Number;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue