summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-02-25 21:24:42 +0000
committerfrosch <frosch@openttd.org>2009-02-25 21:24:42 +0000
commit751a9bdf0a84666d37a05d7e2c92dfbc135a134a (patch)
tree93a2115063e2581a329f86bc622fec309ed10abb /src
parentf6d8e6079945cfddc3b327dc0c8b4ad323506b45 (diff)
downloadopenttd-751a9bdf0a84666d37a05d7e2c92dfbc135a134a.tar.xz
(svn r15582) -Cleanup: Remove unused function AdjustTileCoordRandomly(). Btw. it would also cause desyncs and wrap around the map.
Diffstat (limited to 'src')
-rw-r--r--src/landscape.cpp11
-rw-r--r--src/landscape.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 1ddd2bcfe..998a552d4 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -951,14 +951,3 @@ void CallLandscapeTick()
OnTick_Companies();
OnTick_Train();
}
-
-TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng)
-{
- int rn = rng;
- uint32 r = Random();
-
- return TILE_MASK(TileXY(
- TileX(a) + (GB(r, 0, 8) * rn * 2 >> 8) - rn,
- TileY(a) + (GB(r, 8, 8) * rn * 2 >> 8) - rn
- ));
-}
diff --git a/src/landscape.h b/src/landscape.h
index 414de3df7..4eae6394e 100644
--- a/src/landscape.h
+++ b/src/landscape.h
@@ -58,6 +58,4 @@ void RunTileLoop();
void InitializeLandscape();
void GenerateLandscape(byte mode);
-TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng);
-
#endif /* LANDSCAPE_H */