mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- Duke: Fix integer division in shootrpg()
.
* Stems from initial floatification in `- floatified Duke's shootrpg`.
This commit is contained in:
parent
520d838a8c
commit
80f4124b17
1 changed files with 1 additions and 1 deletions
|
@ -749,7 +749,7 @@ static void shootrpg(DDukeActor *actor, int p, DVector3 pos, DAngle ang, int atw
|
||||||
}
|
}
|
||||||
if (p < 0) aimed = nullptr;
|
if (p < 0) aimed = nullptr;
|
||||||
|
|
||||||
auto offset = (ang + DAngle1 * 61).ToVector() * (1024 / 448);
|
auto offset = (ang + DAngle1 * 61.171875).ToVector() * (1024. / 448.);
|
||||||
auto spawned = CreateActor(sect, pos.plusZ(-1) + offset, atwith, 0, 14, 14, ang, vel, zvel, actor, 4);
|
auto spawned = CreateActor(sect, pos.plusZ(-1) + offset, atwith, 0, 14, 14, ang, vel, zvel, actor, 4);
|
||||||
|
|
||||||
if (!spawned) return;
|
if (!spawned) return;
|
||||||
|
|
Loading…
Reference in a new issue