Changeset 11083 for code/trunk/src/modules/towerdefense/TDCoordinate.cc
- Timestamp:
- Jan 21, 2016, 1:59:04 PM (8 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.