diff options
author | rubidium <rubidium@openttd.org> | 2008-09-02 15:20:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-02 15:20:38 +0000 |
commit | c3589551274ffbef4b39cd69a9d878e51eec0cd1 (patch) | |
tree | e7050537d14303dbc6bc9a461ff38931861cc4aa /src/blitter/8bpp_base.cpp | |
parent | 2c58a87f4ce849cdd93c0a008baa60bf37e74463 (diff) | |
download | openttd-c3589551274ffbef4b39cd69a9d878e51eec0cd1.tar.xz |
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
Diffstat (limited to 'src/blitter/8bpp_base.cpp')
-rw-r--r-- | src/blitter/8bpp_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/8bpp_base.cpp b/src/blitter/8bpp_base.cpp index 78bb90f5e..4bdbfe2df 100644 --- a/src/blitter/8bpp_base.cpp +++ b/src/blitter/8bpp_base.cpp @@ -8,7 +8,7 @@ void Blitter_8bppBase::DrawColorMappingRect(void *dst, int width, int height, int pal) { - const uint8 *ctab = GetNonSprite(pal) + 1; + const uint8 *ctab = GetNonSprite(pal, ST_RECOLOUR) + 1; do { for (int i = 0; i != width; i++) *((uint8 *)dst + i) = ctab[((uint8 *)dst)[i]]; |