Skip to content

Commit

Permalink
- fix bad factor
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 10, 2022
1 parent a4e86d5 commit 6c5d9b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/games/duke/src/animatesprites_d.cpp
Expand Up @@ -596,8 +596,8 @@ void animatesprites_d(tspriteArray& tsprites, int x, int y, int a, int smoothrat
{
// Alter the shadow's position so that it appears behind the sprite itself.
int look = getangle(shadowspr->pos.XY() - ps[screenpeek].pos.XY());
shadowspr->pos.X += buildang(look).fcos() * 0.125;
shadowspr->pos.Y += buildang(look).fsin() * 0.125;
shadowspr->pos.X += buildang(look).fcos() * 2;
shadowspr->pos.Y += buildang(look).fsin() * 2;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions source/games/duke/src/animatesprites_r.cpp
Expand Up @@ -753,8 +753,8 @@ void animatesprites_r(tspriteArray& tsprites, int x, int y, int a, int smoothrat
{
// Alter the shadow's position so that it appears behind the sprite itself.
int look = getangle(shadowspr->pos.XY() - ps[screenpeek].pos.XY());
shadowspr->pos.X += buildang(look).fcos() * 0.125;
shadowspr->pos.Y += buildang(look).fsin() * 0.125;
shadowspr->pos.X += buildang(look).fcos() * 2;
shadowspr->pos.Y += buildang(look).fsin() * 2;
}
}
}
Expand Down

0 comments on commit 6c5d9b3

Please sign in to comment.