Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2014, 8:04:19 AM (11 years ago)
Author:
smerkli
Message:

Fixed the list problem, it was a circular include.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.cc

    r10105 r10106  
    88namespace orxonox
    99{
    10     RegisterClass(TDCoordinate);
     10    //RegisterClass(TDCoordinate);
    1111
    1212    /**
     
    1616    TDCoordinate::TDCoordinate()
    1717    {
    18         RegisterObject(TDCoordinate);
     18        //RegisterObject(TDCoordinate);
    1919        x=0;
    2020        y=0;
     
    3333        int tileScale = 100;
    3434
    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;
    3939
    40         return coord;
     40        return *coord;
    4141    }
    4242}
Note: See TracChangeset for help on using the changeset viewer.