(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.

Tiles which only consist of shore do not flood anymore, instead they get removed if they are no longer connected to flooding water.
This commit is contained in:
frosch
2008-01-22 17:48:08 +00:00
parent b99c83246b
commit 49d2087d7f
6 changed files with 263 additions and 176 deletions

View File

@@ -243,6 +243,20 @@ static inline TileIndexDiffC TileIndexDiffCByDiagDir(DiagDirection dir)
return _tileoffs_by_diagdir[dir];
}
/**
* Returns the TileIndexDiffC offset from a Direction.
*
* @param dir The given direction
* @return The offset as TileIndexDiffC value
*/
static inline TileIndexDiffC TileIndexDiffCByDir(Direction dir)
{
extern const TileIndexDiffC _tileoffs_by_dir[DIR_END];
assert(IsValidDirection(dir));
return _tileoffs_by_dir[dir];
}
/**
* Add a TileIndexDiffC to a TileIndex and returns the new one.
*