Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10474 in orxonox.OLD for branches/blink/src


Ignore:
Timestamp:
Jan 29, 2007, 1:33:06 AM (18 years ago)
Author:
stefalie
Message:

blinki: dirrrty hack

Location:
branches/blink/src/world_entities/effects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/blink/src/world_entities/effects/blink.cc

    r10470 r10474  
    8080  this->timer = 0;
    8181  this->seqCounter = 0;
     82
     83  // ugly hack continued
     84  this->setCoor = true;
    8285}
    8386
     
    105108void Blink::tick(float dt)
    106109{
    107   this->bBoard->setAbsCoor(this->getAbsCoor());
     110  // ugly hack continued, set absCoor only once
     111  if(this->setCoor) {
     112    this->bBoard->setAbsCoor(this->getAbsCoor());
     113    this->setCoor = false;
     114  }
    108115
    109116  timer += dt;
     
    120127
    121128  this->bBoard->colorTexture(Color(color.r(), color.g(), color.b(), this->blinkStr));
    122 
    123   PRINTF(0)("hithere\n\n\n\n\n\n");
    124129}
    125130
  • branches/blink/src/world_entities/effects/blink.h

    r10470 r10474  
    5858    float             symbolTime;       //! defines how long one symbol of the sequence will be shown in sec
    5959    float             timer;
     60    bool              setCoor;          // this is a really ugly hack
    6061};
    6162
Note: See TracChangeset for help on using the changeset viewer.