Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5497 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Nov 7, 2005, 5:18:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: removed the Kill-counter again, as it was very bad coding-style

File:
1 edited

Legend:

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

    r5495 r5497  
    2727#include "particle_emitter.h"
    2828#include "particle_system.h"
    29 #include "text.h"
    3029
    3130
     
    3332
    3433CREATE_FAST_FACTORY_STATIC(Rocket, CL_ROCKET);
    35 
    36 unsigned int Points = 0;
    37 Text* pointsText = NULL;
    38 
    3934
    4035/**
     
    7267      delete Rocket::trailParticles;
    7368    Rocket::trailParticles = NULL;
    74     Points = 0;
    75     delete pointsText;
    76     pointsText = NULL;
    7769  }
    7870  if (Rocket::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->getSize() <= 1)
     
    10597    Rocket::trailParticles->setColor(0.5, .8,.8,.8,.8);
    10698    Rocket::trailParticles->setColor(1.0, .8,.8,.8,.0);
    107 
    108     pointsText = new Text();
    109     pointsText->setAbsCoor2D(5, 100);
    110     pointsText->setText("0");
    111     pointsText->setColor(1,0,0);
    112     pointsText->setSize(50);
    113 
    11499  }
    115100  if (unlikely(Rocket::explosionParticles == NULL))
     
    150135{
    151136  if (this->hitEntity != entity && entity->isA(CL_NPC))
    152   {
    153     Points += 807187088;
    154     char pointTxt[50];
    155     sprintf(pointTxt, "points: %d", Points);
    156     pointsText->setText(pointTxt);
    157137    this->destroy();
    158   }
    159138  this->hitEntity = entity;
    160139}
Note: See TracChangeset for help on using the changeset viewer.