Changeset 11083 for code/trunk/src/modules/towerdefense
- Timestamp:
- Jan 21, 2016, 1:59:04 PM (9 years ago)
- Location:
- code/trunk/src/modules/towerdefense
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/towerdefense/TDCoordinate.cc
r10629 r11083 66 66 float tileScale = 100; 67 67 68 Vector3 *coord = new Vector3();69 coord ->x= (_x-8) * tileScale;70 coord ->y= (_y-8) * tileScale;71 coord ->z=0;68 Vector3 coord; 69 coord.x= (_x-8) * tileScale; 70 coord.y= (_y-8) * tileScale; 71 coord.z=0; 72 72 73 return *coord;73 return coord; 74 74 } 75 75 } -
code/trunk/src/modules/towerdefense/TowerDefense.cc
r11071 r11083 377 377 { 378 378 TowerDefenseField* thisField = fields_[thisCoord->GetX()][thisCoord->GetY()]; 379 TDCoordinate* nextCoord = new TDCoordinate(0,0);380 379 381 380 if (thisField->getType() != TowerDefenseFieldType::STREET && thisField->getType() != TowerDefenseFieldType::START) … … 384 383 } 385 384 385 TDCoordinate* nextCoord = new TDCoordinate(0, 0); 386 386 387 if (thisField->getAngle() == 0) 387 388 { … … 406 407 } 407 408 409 delete nextCoord; 408 410 return nullptr; 409 411 }
Note: See TracChangeset
for help on using the changeset viewer.