mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +00:00
parent
c42771228d
commit
e57d6f8785
2 changed files with 16 additions and 1 deletions
|
@ -195,6 +195,20 @@ struct PlayerAngle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void settarget(binangle value, bool backup = false)
|
||||||
|
{
|
||||||
|
if (!cl_syncinput)
|
||||||
|
{
|
||||||
|
target = value.asbam();
|
||||||
|
if (target == 0) target += 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ang = value;
|
||||||
|
if (backup) oang = ang;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void processhelpers(double const scaleAdjust)
|
void processhelpers(double const scaleAdjust)
|
||||||
{
|
{
|
||||||
if (target)
|
if (target)
|
||||||
|
|
|
@ -730,7 +730,8 @@ void movecrane(DDukeActor *actor, int crane)
|
||||||
actor->SetActiveCrane(true);
|
actor->SetActiveCrane(true);
|
||||||
ps[p].on_crane = actor;
|
ps[p].on_crane = actor;
|
||||||
S_PlayActorSound(isRR() ? 390 : DUKE_GRUNT, ps[p].GetActor());
|
S_PlayActorSound(isRR() ? 390 : DUKE_GRUNT, ps[p].GetActor());
|
||||||
ps[p].angle.settarget(spri->ang + 1024);
|
auto ang = ps[p].angle.ang;
|
||||||
|
ps[p].angle.settarget(ang + getincanglebam(ang, buildang(spri->ang + 1024)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue