(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite

This commit is contained in:
celestar
2005-07-20 22:05:13 +00:00
parent 18a93cca3d
commit 85f06d6e7b
10 changed files with 21 additions and 17 deletions

View File

@@ -391,7 +391,7 @@ static void DrawWaterStuff(TileInfo *ti, const WaterDrawTileStruct *wdts,
for (; wdts->delta_x != 0x80; wdts++) {
image = wdts->image + base;
if (_display_opt & DO_TRANS_BUILDINGS) {
image = (image & 0x3FFF) | 0x03224000;
MAKE_TRANSPARENT(image);
} else {
image |= palette;
}