mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- fixed: P_RailAttack did not make adjustments for the shooter's floorclip.
This commit is contained in:
parent
5158b1c337
commit
19df603f92
2 changed files with 7 additions and 1 deletions
|
@ -432,10 +432,16 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
StatusBar->Destroy();
|
||||
StatusBar = NULL;
|
||||
}
|
||||
auto cls = PClass::FindClass("DoomStatusBar");
|
||||
|
||||
if (bTitleLevel)
|
||||
{
|
||||
StatusBar = new DBaseStatusBar (0);
|
||||
}
|
||||
else if (cls && gameinfo.gametype == GAME_Doom)
|
||||
{
|
||||
StatusBar = (DBaseStatusBar*)cls->CreateNew();
|
||||
}
|
||||
else if (SBarInfoScript[SCRIPT_CUSTOM] != NULL)
|
||||
{
|
||||
int cstype = SBarInfoScript[SCRIPT_CUSTOM]->GetGameType();
|
||||
|
|
|
@ -5011,7 +5011,7 @@ void P_RailAttack(FRailParams *p)
|
|||
DAngle angle = source->Angles.Yaw + p->angleoffset;
|
||||
|
||||
DVector3 vec(DRotator(-pitch, angle, angle));
|
||||
double shootz = source->Center() - source->FloatSpeed + p->offset_z;
|
||||
double shootz = source->Center() - source->FloatSpeed + p->offset_z - source->Floorclip;
|
||||
|
||||
if (!(p->flags & RAF_CENTERZ))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue