mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changed speed of sound to double
This commit is contained in:
parent
89dfd8be17
commit
b8b980bd92
@ -577,7 +577,7 @@ void __stdcall RVExtension(char *output, int outputSize, const char *function)
|
||||
positionOffset[0] += sin(bulletDir + M_PI / 2) * spinDriftPartial;
|
||||
positionOffset[1] += cos(bulletDir + M_PI / 2) * spinDriftPartial;
|
||||
|
||||
float speedOfSound = 331.3 + (0.6 * temperature);
|
||||
double speedOfSound = 331.3 + (0.6 * temperature);
|
||||
if (bulletSpeed < (speedOfSound + 5) && bulletSpeedAvg > speedOfSound && bulletSpeed > (speedOfSound - 5)) {
|
||||
std::uniform_real_distribution<double> distribution(0.0, 1.0);
|
||||
double coef = 1.0f - bulletDatabase[index].transonicStabilityCoef;
|
||||
|
Loading…
Reference in New Issue
Block a user