mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
b13c265ff4
3 changed files with 17 additions and 2 deletions
|
@ -91,6 +91,8 @@ bool P_MorphPlayer (player_t *activator, player_t *p, PClassPlayerPawn *spawntyp
|
|||
morphed->Angles.Yaw = actor->Angles.Yaw;
|
||||
morphed->target = actor->target;
|
||||
morphed->tracer = actor;
|
||||
morphed->FriendPlayer = actor->FriendPlayer;
|
||||
morphed->DesignatedTeam = actor->DesignatedTeam;
|
||||
morphed->Score = actor->Score;
|
||||
p->PremorphWeapon = p->ReadyWeapon;
|
||||
morphed->special2 = actor->flags & ~MF_JUSTHIT;
|
||||
|
|
|
@ -122,7 +122,20 @@ public:
|
|||
bool Activate()
|
||||
{
|
||||
const char *msg = GStrings("SAFEMESSAGE");
|
||||
if (msg) M_StartMessage(msg, 0);
|
||||
|
||||
const char *actionLabel = mLabel;
|
||||
if (actionLabel != NULL)
|
||||
{
|
||||
if (*actionLabel == '$')
|
||||
{
|
||||
actionLabel = GStrings(actionLabel + 1);
|
||||
}
|
||||
}
|
||||
|
||||
FString FullString;
|
||||
FullString.Format(TEXTCOLOR_WHITE "%s" TEXTCOLOR_NORMAL "\n\n" "%s", actionLabel != NULL ? actionLabel : "", msg);
|
||||
|
||||
if (msg && FullString) M_StartMessage(FullString, 0);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -114,7 +114,7 @@ public:
|
|||
{
|
||||
sightstart = t1->PosRelative(task->portalgroup);
|
||||
sightend = t2->PosRelative(task->portalgroup);
|
||||
sightstart.Z += t1->Height / 2;
|
||||
sightstart.Z += t1->Height * 0.75;
|
||||
|
||||
Startfrac = task->Frac;
|
||||
Trace = { sightstart.X, sightstart.Y, sightend.X - sightstart.X, sightend.Y - sightstart.Y };
|
||||
|
|
Loading…
Reference in a new issue