- Timestamp:
- Nov 4, 2014, 8:04:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.cc
r10105 r10106 8 8 namespace orxonox 9 9 { 10 RegisterClass(TDCoordinate);10 //RegisterClass(TDCoordinate); 11 11 12 12 /** … … 16 16 TDCoordinate::TDCoordinate() 17 17 { 18 RegisterObject(TDCoordinate);18 //RegisterObject(TDCoordinate); 19 19 x=0; 20 20 y=0; … … 33 33 int tileScale = 100; 34 34 35 Vector3 coord = new Vector3();36 coord .x= (x-8) * tileScale;37 coord .y= (y-8) * tileScale;38 coord .z=0;35 Vector3 *coord = new Vector3(); 36 coord->x= (x-8) * tileScale; 37 coord->y= (y-8) * tileScale; 38 coord->z=0; 39 39 40 return coord;40 return *coord; 41 41 } 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.