Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 22, 2012, 5:06:56 PM (12 years ago)
Author:
landauf
Message:

small refactoring of tetris gametype, fixed memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/modules/tetris/TetrisBrick.cc

    r9286 r9326  
    175175        return NULL;
    176176    }
    177 //TODO: refactor this function; is not needed if brickstones are added to Tetris::stones_ after collision.
    178     bool TetrisBrick::contains(TetrisStone* stone)
    179     {
    180         for(unsigned int i = 0; i < brickStones_.size(); i++)
    181         {
    182             if(stone == brickStones_[i])
    183                 return true;
    184         }
    185         return false;
    186     }
    187177
    188178    /**
Note: See TracChangeset for help on using the changeset viewer.