Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6305 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Dec 26, 2005, 1:46:16 PM (19 years ago)
Author:
bensch
Message:

trunk: removed unused Text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/aim.cc

    r6222 r6305  
    5353    delete this->material;
    5454
    55   if (this->text != NULL)
    56     delete this->text;
     55/*  if (this->text != NULL)
     56    delete this->text;*/
    5757}
    5858
     
    7979  this->anim->addKeyFrame(50, .01, ANIM_LINEAR);
    8080
    81   this->text = new Text();
     81/*  this->text = new Text();
    8282  this->text->setLayer(this->getLayer());
    8383  this->text->setParent2D(this);
    8484  this->text->setRelCoor2D(10, -50);
    8585  this->text->setParentMode2D(E2D_PARENT_MOVEMENT);
    86   this->text->setText("Testing");
     86  this->text->setText("Testing");*/
    8787}
    8888
     
    124124
    125125/**
    126  * sets the size of the Aim.
     126 * @brief sets the size of the Aim.
    127127 * @param size the size in pixels
    128128 */
     
    150150  this->shiftDir2D(dt * rotationSpeed);
    151151
    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);
    155155
    156156
Note: See TracChangeset for help on using the changeset viewer.