Changeset 2710 for code/trunk/src/orxonox/overlays/hud
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/hud/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 HUDBar.cc 3 3 HUDNavigation.cc … … 8 8 GametypeStatus.cc 9 9 ) 10 11 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/overlays/hud/HUDBar.cc
r2662 r2710 117 117 if (this->colours_.size() > 0) 118 118 { 119 ColourValue colour1, colour2 = (*this->colours_.rbegin()).second; 120 float value1, value2 = (*this->colours_.rbegin()).first; 119 ColourValue colour1(0, 0, 0, 1); 120 ColourValue colour2 = (*this->colours_.rbegin()).second; 121 float value1(0); 122 float value2 = (*this->colours_.rbegin()).first; 121 123 for (std::map<float, ColourValue>::reverse_iterator it = this->colours_.rbegin(); it != this->colours_.rend(); ++it) 122 124 {
Note: See TracChangeset
for help on using the changeset viewer.