mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed: Rocket trail particle positioning only worked when the rocket was moving.
SVN r2145 (trunk)
This commit is contained in:
parent
a5e1fe6906
commit
8a22712180
1 changed files with 12 additions and 1 deletions
|
@ -235,7 +235,18 @@ static void MakeFountain (AActor *actor, int color1, int color2)
|
|||
|
||||
void P_RunEffect (AActor *actor, int effects)
|
||||
{
|
||||
angle_t moveangle = R_PointToAngle2(0,0,actor->velx,actor->vely);
|
||||
angle_t moveangle;
|
||||
|
||||
// 512 is the limit below which R_PointToAngle2 does no longer returns usable values.
|
||||
if (abs(actor->velx) > 512 || abs(actor->vely) > 512)
|
||||
{
|
||||
moveangle = R_PointToAngle2(0,0,actor->velx,actor->vely);
|
||||
}
|
||||
else
|
||||
{
|
||||
moveangle = actor->angle;
|
||||
}
|
||||
|
||||
particle_t *particle;
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue