mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "stdafx.h"
|
||||
#include "openttd.h"
|
||||
#include "table/strings.h"
|
||||
#include "table/sprites.h"
|
||||
#include "table/tree_land.h"
|
||||
#include "map.h"
|
||||
#include "tile.h"
|
||||
@@ -302,7 +303,7 @@ static void DrawTile_Trees(TileInfo *ti)
|
||||
do {
|
||||
uint32 image = s[0] + (--i == 0 ? (ti->map5 & 7) : 3);
|
||||
if (_display_opt & DO_TRANS_BUILDINGS)
|
||||
image = (image & 0x3FFF) | 0x3224000;
|
||||
MAKE_TRANSPARENT(image);
|
||||
te[i].image = image;
|
||||
te[i].x = d[0];
|
||||
te[i].y = d[1];
|
||||
|
Reference in New Issue
Block a user