mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Added Thomas's submissions for decal assignment to puffs and NOINFIGHTING flag.
SVN r847 (trunk)
This commit is contained in:
parent
7e900c1016
commit
1e81eb0fee
3 changed files with 22 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
March 24, 2008 (Changes by Graf Zahl)
|
||||
- Added Thomas's submissions for decal assignment to puffs and NOINFIGHTING flag.
|
||||
- Reverted changes of r715 in v_collection.cpp because they broke loading
|
||||
of status bar face graphics belonging to skins.
|
||||
SBARINFO update #15
|
||||
|
|
|
@ -1270,7 +1270,8 @@ bool AActor::OkayToSwitchTarget (AActor *other)
|
|||
}
|
||||
|
||||
int infight;
|
||||
if (level.flags & LEVEL_TOTALINFIGHTING) infight=1;
|
||||
if (flags5 & MF5_NOINFIGHTING) infight=-1;
|
||||
else if (level.flags & LEVEL_TOTALINFIGHTING) infight=1;
|
||||
else if (level.flags & LEVEL_NOINFIGHTING) infight=-1;
|
||||
else infight = infighting;
|
||||
|
||||
|
|
|
@ -2877,9 +2877,25 @@ AActor *P_LineAttack (AActor *t1, angle_t angle, fixed_t distance,
|
|||
|
||||
// [RH] Spawn a decal
|
||||
if (trace.HitType == TRACE_HitWall && trace.Line->special != Line_Horizon)
|
||||
{
|
||||
// [TN] If the actor or weapon has a decal defined, use that one.
|
||||
if(t1->DecalGenerator != NULL ||
|
||||
(t1->player != NULL && t1->player->ReadyWeapon != NULL && t1->player->ReadyWeapon->DecalGenerator != NULL))
|
||||
{
|
||||
SpawnShootDecal (t1, trace);
|
||||
}
|
||||
|
||||
// Else, look if the bulletpuff has a decal defined.
|
||||
else if(puff != NULL && puff->DecalGenerator)
|
||||
{
|
||||
SpawnShootDecal (puff, trace);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
SpawnShootDecal (t1, trace);
|
||||
}
|
||||
}
|
||||
else if (puff != NULL &&
|
||||
trace.CrossedWater == NULL &&
|
||||
trace.Sector->heightsec == NULL &&
|
||||
|
|
Loading…
Reference in a new issue