- Timestamp:
- Sep 21, 2005, 8:07:51 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.cc
r5211 r5212 32 32 Texture::Texture(const char* imageName) 33 33 { 34 bAlpha = false;34 this->bAlpha = false; 35 35 this->texture = 0; 36 36 if (imageName) -
trunk/src/lib/graphics/light.cc
r5211 r5212 242 242 243 243 for (int i = 0; i < NUMBEROFLIGHTS; i++) 244 if (this->lights[i] )244 if (this->lights[i] != NULL) 245 245 delete lights[i]; 246 246 delete[] lights; -
trunk/src/lib/graphics/render2D/element_2d.cc
r5211 r5212 467 467 void Element2D::removeChild2D (Element2D* child) 468 468 { 469 child->remove2D(); 470 this->children->remove(child); 471 child->parent = NULL; 469 if (child != NULL) 470 { 471 child->remove2D(); 472 this->children->remove(child); 473 child->parent = NULL; 474 } 472 475 } 473 476 -
trunk/src/lib/shell/shell_buffer.cc
r5210 r5212 157 157 158 158 // adding all the new Lines 159 while (newLineBegin < inputEnd )159 while (newLineBegin < inputEnd ) 160 160 { 161 161 newLineEnd = strchr(newLineBegin, '\n'); … … 165 165 { 166 166 // newLineEnd = newLineBegin + strlen(newLineBegin); 167 strc py(this->keepBufferArray, newLineBegin);167 strcat(this->keepBufferArray, newLineBegin); 168 168 this->keepBuffer = true; 169 169 break; -
trunk/src/world_entities/player.cc
r5162 r5212 141 141 PRINTF(1)("PLAYER INIT\n"); 142 142 travelSpeed = 15.0; 143 velocity = new Vector();144 143 bUp = bDown = bLeft = bRight = bAscend = bDescend = false; 145 144 bFire = false; -
trunk/src/world_entities/player.h
r4975 r5212 66 66 WeaponManager* weaponMan; //!< the weapon manager: managing a list of weapon to wepaon-slot mapping 67 67 68 Vector *velocity; //!< the velocity of the player.68 Vector velocity; //!< the velocity of the player. 69 69 float travelSpeed; //!< the current speed of the player (to make soft movement) 70 70 float acceleration; //!< the acceleration of the player. -
trunk/src/world_entities/skybox.cc
r5155 r5212 102 102 delete this->material[i]; 103 103 delete []this->material; 104 delete this->model; 104 105 } 105 106 -
trunk/src/world_entities/weapons/crosshair.cc
r4955 r5212 162 162 //cout << z << endl; 163 163 164 GLdouble objX , objY, objZ;164 GLdouble objX=.0, objY=.0, objZ=.0; 165 165 gluUnProject(position2D[0], 166 166 GraphicsEngine::getInstance()->getResolutionY()-position2D[1]-1,
Note: See TracChangeset
for help on using the changeset viewer.