Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6756 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jan 26, 2006, 1:55:40 AM (19 years ago)
Author:
bensch
Message:

trunk: Burst Particles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r6671 r6756  
    154154  std::list<GLGuiWidget*>::iterator weaponWidget;
    155155  float pos = .2;
    156   bool test = true;
    157   for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03, test = !test)
     156  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03)
    158157  {
    159     if (test)
    160     {
    161158      (*weaponWidget)->setSize2D(.02*this->resX, .2 *this->resY);
    162159      (*weaponWidget)->setAbsCoor2D(pos*this->resX, .75*this->resY);
    163     }
    164     else
    165     {
    166       (*weaponWidget)->setSize2D(.02*this->resX, .17*this->resY);
    167       (*weaponWidget)->setAbsCoor2D((pos-.008)*this->resX, .75*this->resY);
    168     }
     160
    169161  }
    170162}
Note: See TracChangeset for help on using the changeset viewer.