diff options
author | maedhros <maedhros@openttd.org> | 2007-06-12 22:13:49 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-12 22:13:49 +0000 |
commit | 12be876131ad76d0fb8e7d0fbff586ea1a0a693e (patch) | |
tree | f4b3d4a7be99176b7ebd3e1980b37402b5128f4c /src/functions.h | |
parent | f3f744d36a60431a6845d2b7e3ce17e64ee2e4f5 (diff) | |
download | openttd-12be876131ad76d0fb8e7d0fbff586ea1a0a693e.tar.xz |
(svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops.
Diffstat (limited to 'src/functions.h')
-rw-r--r-- | src/functions.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/functions.h b/src/functions.h index 12cf9deb8..cc885917e 100644 --- a/src/functions.h +++ b/src/functions.h @@ -147,9 +147,11 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold); void ChangeTownRating(Town *t, int add, int max); uint GetTownRadiusGroup(const Town* t, TileIndex tile); -int FindFirstBit(uint32 x); void ShowHighscoreTable(int difficulty, int8 rank); +int FindFirstBit(uint32 x); +int CountBitsSet(uint32 value); + void AfterLoadTown(); void UpdatePatches(); void AskExitGame(); |