Changeset 5497 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Nov 7, 2005, 5:18:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/rocket.cc
r5495 r5497 27 27 #include "particle_emitter.h" 28 28 #include "particle_system.h" 29 #include "text.h"30 29 31 30 … … 33 32 34 33 CREATE_FAST_FACTORY_STATIC(Rocket, CL_ROCKET); 35 36 unsigned int Points = 0;37 Text* pointsText = NULL;38 39 34 40 35 /** … … 72 67 delete Rocket::trailParticles; 73 68 Rocket::trailParticles = NULL; 74 Points = 0;75 delete pointsText;76 pointsText = NULL;77 69 } 78 70 if (Rocket::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->getSize() <= 1) … … 105 97 Rocket::trailParticles->setColor(0.5, .8,.8,.8,.8); 106 98 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 114 99 } 115 100 if (unlikely(Rocket::explosionParticles == NULL)) … … 150 135 { 151 136 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);157 137 this->destroy(); 158 }159 138 this->hitEntity = entity; 160 139 }
Note: See TracChangeset
for help on using the changeset viewer.