Skip to content

Commit

Permalink
fixed bad randoms in aicaleb.cpp.
Browse files Browse the repository at this point in the history
Value range for velocity vectors was Q14.16 in Blood's fixed point format so the numbers here must be scaled accordingly.
  • Loading branch information
coelckers committed Feb 4, 2024
1 parent 33e59a6 commit 57f4dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/games/blood/src/aicaleb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ void SeqAttackCallback(int, DBloodActor* actor)

for (int i = 0; i < 2; i++)
{
double r3 = Random3F(500, 4);
double r2 = Random3F(1000, 4);
double r1 = Random3F(1000, 8);
double r3 = Random3F(500, 14);
double r2 = Random3F(1000, 14);
double r1 = Random3F(1000, 14);
actFireVector(actor, 0, 0, vect + DVector3(r1, r2, r3), kVectorShell);
}
if (Chance(0x8000))
Expand Down

0 comments on commit 57f4dc7

Please sign in to comment.