1
0
Fork 0

Fix an MSVC error

This commit is contained in:
Erik Hofman 2016-12-15 10:49:09 +01:00
parent 0af316d7fc
commit e845dab6e0
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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) */