- Timestamp:
- Jan 19, 2006, 12:29:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r6523 r6610 90 90 delete[] this->velocities; 91 91 } 92 if (this->grid != NULL) 93 delete this->grid; 92 93 // WE DO NOT NEED THIS AS IT IS DONE IN WORLDENTITY->setModel(); 94 // if (this->grid != NULL) 95 // this->grid = NULL; 96 94 97 this->grid = new Grid(this->sizeX, this->sizeY, this->resX, this->resY); 95 98 this->velocities = new float*[this->resX]; 96 99 for (unsigned int i = 0; i < this->grid->rows(); i++) 100 { 97 101 this->velocities[i] = new float[this->resY]; 98 102 for (unsigned int j = 0; j < this->resY; j++) 103 this->velocities[i][j] = 0.0; 104 } 99 105 this->setModel(this->grid, 0); 100 106 }
Note: See TracChangeset
for help on using the changeset viewer.