From 9d8c8c200ea254c0cdb7d62278ba46af509d0de5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 7 Oct 2007 15:26:20 +0000 Subject: (svn r11225) -Fix: if a sprite shares the bounding box of another sprite, the offset is unsigned instead of signed. --- src/newgrf_house.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_house.cpp') diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index b7718ee62..568225667 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -346,7 +346,7 @@ void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, Ho HASBIT(_transparent_opt, TO_HOUSES) ); } else { - AddChildSpriteScreen(image, pal, dtss->delta_x, dtss->delta_y, HASBIT(_transparent_opt, TO_HOUSES)); + AddChildSpriteScreen(image, pal, (byte)dtss->delta_x, (byte)dtss->delta_y, HASBIT(_transparent_opt, TO_HOUSES)); } } } -- cgit v1.2.3-70-g09d2