diff options
author | frosch <frosch@openttd.org> | 2011-05-14 17:25:45 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-14 17:25:45 +0000 |
commit | 7415b9cca278e86db5ba00b84aa535057279ef37 (patch) | |
tree | 9f01e323319a68661a0ebcd8d846fdf52c70e0d3 /src/sprite.h | |
parent | 3183cb79079a20739e68966de2c0c0356e3c67b1 (diff) | |
download | openttd-7415b9cca278e86db5ba00b84aa535057279ef37.tar.xz |
(svn r22456) -Codechange: Derive NewGRFSpriteLayout from DrawTileSprites for spritelayouts allocated on the heap, and make use of constructors and destructors.
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sprite.h b/src/sprite.h index 9321ba534..acb19ed4e 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -52,9 +52,11 @@ struct DrawTileSeqStruct { } }; -const DrawTileSeqStruct *CopyDrawTileSeqStruct(const DrawTileSeqStruct *dtss); - -/** Ground palette sprite of a tile, together with its child sprites */ +/** + * Ground palette sprite of a tile, together with its sprite layout. + * This struct is used for static sprite layouts in the code. + * For allocated ones from NewGRF see #NewGRFSpriteLayout. + */ struct DrawTileSprites { PalSpriteID ground; ///< Palette and sprite for the ground const DrawTileSeqStruct *seq; ///< Array of child sprites. Terminated with a terminator entry |