summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-16 22:25:44 +0000
committerfrosch <frosch@openttd.org>2010-01-16 22:25:44 +0000
commitd27999e4463edfb46158687343cd0e4f339a81a1 (patch)
tree81958834fbc08b062066858b039cf8e4ecdb83ec /src/newgrf_commons.h
parent199091600a9040f25c99b20431b5a2e072d19049 (diff)
downloadopenttd-d27999e4463edfb46158687343cd0e4f339a81a1.tar.xz
(svn r18837) -Codechange: Rename DrawStationTileSeq() to DrawCommonTileSeq() and move it to separate file.
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r--src/newgrf_commons.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h
index 6ace3d0da..92546d7e8 100644
--- a/src/newgrf_commons.h
+++ b/src/newgrf_commons.h
@@ -18,8 +18,6 @@
#include "transparency.h"
#include "sprite.h"
-#include "table/sprites.h"
-
/**
* Maps an entity id stored on the map to a GRF file.
* Entities are objects used ingame (houses, industries, industry tiles) for
@@ -109,45 +107,6 @@ uint32 GetTerrainType(TileIndex tile);
TileIndex GetNearbyTile(byte parameter, TileIndex tile);
uint32 GetNearbyTileInformation(TileIndex tile);
-/**
- * Applies PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOUR to a palette entry of a sprite layout entry
- * @Note for ground sprites use #GroundSpritePaletteTransform
- * @Note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set
- * when to use the default palette.
- *
- * @param image The sprite to draw
- * @param pal The palette from the sprite layout
- * @param default_pal The default recolour sprite to use (typically company colour resp. random industry/house colour)
- * @return The palette to use
- */
-static inline SpriteID SpriteLayoutPaletteTransform(SpriteID image, SpriteID pal, SpriteID default_pal)
-{
- if (HasBit(image, PALETTE_MODIFIER_TRANSPARENT) || HasBit(image, PALETTE_MODIFIER_COLOUR)) {
- return (pal != 0 ? pal : default_pal);
- } else {
- return PAL_NONE;
- }
-}
-
-/**
- * Applies PALETTE_MODIFIER_COLOUR to a palette entry of a ground sprite
- * @Note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set
- * when to use the default palette.
- *
- * @param image The sprite to draw
- * @param pal The palette from the sprite layout
- * @param default_pal The default recolour sprite to use (typically company colour resp. random industry/house colour)
- * @return The palette to use
- */
-static inline SpriteID GroundSpritePaletteTransform(SpriteID image, SpriteID pal, SpriteID default_pal)
-{
- if (HasBit(image, PALETTE_MODIFIER_COLOUR)) {
- return (pal != 0 ? pal : default_pal);
- } else {
- return PAL_NONE;
- }
-}
-
void DrawTileSeq(const TileInfo *ti, const DrawTileSprites *dts, TransparencyOption to, byte stage, SpriteID default_palette);
#endif /* NEWGRF_COMMONS_H */