- Timestamp:
- Sep 25, 2005, 6:27:22 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5254 r5256 141 141 for (int i = 0; i < this->bufferDisplaySize; i++) 142 142 { 143 this->bufferText[i]->setText(bufferIT->getCurrent(), true);143 this->bufferText[i]->setText(bufferIT->getCurrent(), false); 144 144 bufferIT->prevStep(); 145 145 } -
trunk/src/story_entities/world.cc
r5218 r5256 464 464 char npcChar[10]; 465 465 sprintf (npcChar, "NPC_%d", i); 466 tmp->setName(npcChar);466 tmp->setName(npcChar); 467 467 tmp->setAbsCoor(((float)rand()/RAND_MAX) * 5000, 50/*+ (float)rand()/RAND_MAX*20*/, ((float)rand()/RAND_MAX -.5) *100); 468 468 this->spawn(tmp); -
trunk/src/world_entities/environment.cc
r5213 r5256 36 36 this->model = (Model*)ResourceManager::getInstance()->load("models/ships/bolido.obj", OBJ, RP_CAMPAIGN); 37 37 38 /*if(this->obbTree == NULL)39 this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); */38 if(this->obbTree == NULL) 39 this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 40 40 } 41 41 -
trunk/src/world_entities/test_entity.cc
r5213 r5256 36 36 // this->md2Model = new MD2Model("models/tris.md2", "models/tris.pcx"); 37 37 // this->md2Model = new MD2Model("models/goblin.md2", "maps/goblin.bmp"); 38 //this->obbTree = new OBBTree(4, (sVec3D*)this->md2Model->data->pVertices, this->md2Model->data->numVertices);38 this->obbTree = new OBBTree(4, (sVec3D*)this->md2Model->data->pVertices, this->md2Model->data->numVertices); 39 39 40 40 this->md2Model->setAnim(RUN); -
trunk/src/world_entities/world_entity.cc
r5213 r5256 99 99 bool WorldEntity::buildObbTree(unsigned int depth) 100 100 { 101 //if (this->obbTree)102 //delete this->obbTree;103 // 104 //if (this->model)105 //{106 //PRINTF(4)("creating obb tree\n");107 //this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());108 //return true;109 //}110 //else111 //{112 //PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");113 //this->obbTree = NULL;114 //return false;115 //}101 if (this->obbTree) 102 delete this->obbTree; 103 104 if (this->model) 105 { 106 PRINTF(4)("creating obb tree\n"); 107 this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 108 return true; 109 } 110 else 111 { 112 PRINTF(2)("could not create obb-tree, because no model was loaded yet\n"); 113 this->obbTree = NULL; 114 return false; 115 } 116 116 } 117 117
Note: See TracChangeset
for help on using the changeset viewer.