Skip to content

Commit

Permalink
reverted adding speed because of unexpected consequence KeeL noticed
Browse files Browse the repository at this point in the history
  • Loading branch information
tra committed Mar 27, 2024
1 parent 171de87 commit ff91855
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/game/CAbstractPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ void CAbstractPlayer::PlaceHUDParts() {
} else {
mt = &viewPortPart->itsTransform;

theHit.direction[0] = FMul((*mt)[2][0], PLAYERMISSILESPEED) + speed[0];
theHit.direction[1] = FMul((*mt)[2][1], PLAYERMISSILESPEED) + speed[1];
theHit.direction[2] = FMul((*mt)[2][2], PLAYERMISSILESPEED) + speed[2];
theHit.direction[0] = FMul((*mt)[2][0], PLAYERMISSILESPEED);
theHit.direction[1] = FMul((*mt)[2][1], PLAYERMISSILESPEED);
theHit.direction[2] = FMul((*mt)[2][2], PLAYERMISSILESPEED);

theHit.direction[3] = 0;
NormalizeVector(3, theHit.direction);
Expand Down Expand Up @@ -1690,9 +1690,9 @@ void CAbstractPlayer::GunActions() {
CombineTransforms(&m1, &m2, &viewPortPart->itsTransform);
MTranslate(speed[0], speed[1], speed[2], &m2);

theHit.direction[0] = FMul(m2[2][0], PLAYERMISSILESPEED) + speed[0];
theHit.direction[1] = FMul(m2[2][1], PLAYERMISSILESPEED) + speed[1];
theHit.direction[2] = FMul(m2[2][2], PLAYERMISSILESPEED) + speed[2];
theHit.direction[0] = FMul(m2[2][0], PLAYERMISSILESPEED);
theHit.direction[1] = FMul(m2[2][1], PLAYERMISSILESPEED);
theHit.direction[2] = FMul(m2[2][2], PLAYERMISSILESPEED);

missileSpeed[0] = theHit.direction[0];
missileSpeed[1] = theHit.direction[1];
Expand Down

0 comments on commit ff91855

Please sign in to comment.