Changeset 259 for trunk/deushax


Ignore:
Timestamp:
Jan 22, 2011, 6:02:25 PM (9 years ago)
Author:
sam
Message:

Slightly change the ...Data initialisation in classes.

Location:
trunk/deushax
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/debugsprite.cpp

    r222 r259  
    3333
    3434DebugSprite::DebugSprite(Game *game)
     35  : data(new DebugSpriteData())
    3536{
    36     data = new DebugSpriteData();
    3737    data->game = game;
    3838    Ticker::Ref(game);
  • trunk/deushax/game.cpp

    r222 r259  
    3535
    3636Game::Game(char const *mapname)
     37  : data(new GameData())
    3738{
    38     data = new GameData();
    3939    data->map = new Map(mapname);
    4040    data->x = data->y = 0;
  • trunk/deushax/mapviewer.cpp

    r222 r259  
    3535
    3636MapViewer::MapViewer(char const *mapname)
     37  : data(new MapViewerData())
    3738{
    38     data = new MapViewerData();
    3939    data->map = new Map(mapname);
    4040    data->x = data->y = 0;
Note: See TracChangeset for help on using the changeset viewer.