Fix an MSVC error
This commit is contained in:
parent
0af316d7fc
commit
e845dab6e0
2 changed files with 3 additions and 3 deletions
|
@ -182,8 +182,8 @@ FGAISim::update(double ddt)
|
|||
float gear_comp = 0.2f + _MINMAX(agl/gear[Z], -0.2f, 0.0f);
|
||||
printf("agl: %7.6f, gear-z: %7.6f, comp: %f\n", agl, gear[Z], gear_comp);
|
||||
if (gear_comp > 0.1f) {
|
||||
simd4_t<float,3> FLGear = 0.0f; FLGear[Z] = Cgear*gear_comp;
|
||||
// simd4_t<float,3> MLGear = 0.0f;
|
||||
simd4_t<float,4> FLGear = 0.0f; FLGear[Z] = Cgear*gear_comp;
|
||||
// simd4_t<float,4> MLGear = 0.0f;
|
||||
|
||||
FXYZ += FLGear;
|
||||
// MlmnT += MLGear;
|
||||
|
|
|
@ -180,7 +180,7 @@ private:
|
|||
/* run 20 to 60 times (or more) per second */
|
||||
|
||||
/* cache, values that don't change very often */
|
||||
simd4_t<float,3> FThrust, MThrust;
|
||||
simd4_t<float,4> FThrust, MThrust;
|
||||
float b_2U, cbar_2U;
|
||||
|
||||
/* dynamic coefficients (already multiplied with their value) */
|
||||
|
|
Loading…
Reference in a new issue