Changeset 6305 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Dec 26, 2005, 1:46:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aim.cc
r6222 r6305 53 53 delete this->material; 54 54 55 if (this->text != NULL)56 delete this->text; 55 /* if (this->text != NULL) 56 delete this->text;*/ 57 57 } 58 58 … … 79 79 this->anim->addKeyFrame(50, .01, ANIM_LINEAR); 80 80 81 this->text = new Text();81 /* this->text = new Text(); 82 82 this->text->setLayer(this->getLayer()); 83 83 this->text->setParent2D(this); 84 84 this->text->setRelCoor2D(10, -50); 85 85 this->text->setParentMode2D(E2D_PARENT_MOVEMENT); 86 this->text->setText("Testing"); 86 this->text->setText("Testing");*/ 87 87 } 88 88 … … 124 124 125 125 /** 126 * sets the size of the Aim.126 * @brief sets the size of the Aim. 127 127 * @param size the size in pixels 128 128 */ … … 150 150 this->shiftDir2D(dt * rotationSpeed); 151 151 152 char outputText[100];153 sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len());154 this->text->setText(outputText);152 // char outputText[100]; 153 // sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len()); 154 // this->text->setText(outputText); 155 155 156 156
Note: See TracChangeset
for help on using the changeset viewer.