mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
- removed bogus angle modification from reflection code.
This commit is contained in:
parent
667c4ba5fc
commit
73bdd06ceb
1 changed files with 0 additions and 6 deletions
|
@ -1990,15 +1990,9 @@ fixed_t P_XYMovement (AActor *mo, fixed_t scrollx, fixed_t scrolly)
|
||||||
//dest->x - source->x
|
//dest->x - source->x
|
||||||
FVector3 velocity(origin->x - mo->x, origin->y - mo->y, (origin->z + (origin->height/2)) - mo->z);
|
FVector3 velocity(origin->x - mo->x, origin->y - mo->y, (origin->z + (origin->height/2)) - mo->z);
|
||||||
velocity.Resize(speed);
|
velocity.Resize(speed);
|
||||||
angle = mo->angle >>= ANGLETOFINESHIFT;
|
|
||||||
mo->velx = (fixed_t)(velocity.X);
|
mo->velx = (fixed_t)(velocity.X);
|
||||||
mo->vely = (fixed_t)(velocity.Y);
|
mo->vely = (fixed_t)(velocity.Y);
|
||||||
mo->velz = (fixed_t)(velocity.Z);
|
mo->velz = (fixed_t)(velocity.Z);
|
||||||
/*
|
|
||||||
mo->velx = FixedMul(mo->Speed, finecosine[angle]);
|
|
||||||
mo->vely = FixedMul(mo->Speed, finesine[angle]);
|
|
||||||
mo->velz = -mo->velz;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue