Changeset 10474 in orxonox.OLD for branches/blink/src/world_entities
- Timestamp:
- Jan 29, 2007, 1:33:06 AM (18 years ago)
- Location:
- branches/blink/src/world_entities/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blink/src/world_entities/effects/blink.cc
r10470 r10474 80 80 this->timer = 0; 81 81 this->seqCounter = 0; 82 83 // ugly hack continued 84 this->setCoor = true; 82 85 } 83 86 … … 105 108 void Blink::tick(float dt) 106 109 { 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 } 108 115 109 116 timer += dt; … … 120 127 121 128 this->bBoard->colorTexture(Color(color.r(), color.g(), color.b(), this->blinkStr)); 122 123 PRINTF(0)("hithere\n\n\n\n\n\n");124 129 } 125 130 -
branches/blink/src/world_entities/effects/blink.h
r10470 r10474 58 58 float symbolTime; //! defines how long one symbol of the sequence will be shown in sec 59 59 float timer; 60 bool setCoor; // this is a really ugly hack 60 61 }; 61 62
Note: See TracChangeset
for help on using the changeset viewer.