(svn r7325) -Feature: Add support for action 5 type 0x0D, coast sprites.

This commit is contained in:
2006-12-02 09:54:49 +00:00
parent 0d5b0eb4f7
commit 6a4d8fdd33
3 changed files with 17 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
#include "vehicle_gui.h"
#include "train.h"
#include "water_map.h"
#include "newgrf.h"
const SpriteID _water_shore_sprites[15] = {
0,
@@ -452,7 +453,11 @@ static void DrawTile_Water(TileInfo *ti)
case WATER_COAST:
assert(!IsSteepSlope(ti->tileh));
DrawGroundSprite(_water_shore_sprites[ti->tileh]);
if (_coast_base != 0) {
DrawGroundSprite(_coast_base + ti->tileh);
} else {
DrawGroundSprite(_water_shore_sprites[ti->tileh]);
}
break;
case WATER_LOCK: {