Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2008, 4:05:31 PM (16 years ago)
Author:
rgrieder
Message:

fixed a bug with Bar loading. setValue wasn't called after setLeft2Right()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/hud/HUDSpeedBar.cc

    r1625 r1626  
    5353        {
    5454            float v = ship->getVelocity().length();
    55             float vmax = ship->getMaxSpeed();
    56             this->setValue(v/vmax);
     55            float value = v / ship->getMaxSpeed();
     56                        if (value != this->getValue())
     57                this->setValue(value);
    5758        }
    5859    }
Note: See TracChangeset for help on using the changeset viewer.