diff options
author | smatz <smatz@openttd.org> | 2009-05-21 22:43:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-21 22:43:25 +0000 |
commit | 6afce484bb9643510fbe51bd2127ed37961099a4 (patch) | |
tree | d3c5bfec1b9efe3edeb171b5db8554f742219a08 /src/landscape.cpp | |
parent | c497e9e7edb2a891544450280e326c31a964d1a9 (diff) | |
download | openttd-6afce484bb9643510fbe51bd2127ed37961099a4.tar.xz |
(svn r16373) -Codechange: use () instead of (void) for functions without parameters
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r-- | src/landscape.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp index e599203c5..91372f456 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -526,7 +526,7 @@ void GetTileDesc(TileIndex tile, TileDesc *td) * @return true if the table has been loaded already. * @ingroup SnowLineGroup */ -bool IsSnowLineSet(void) +bool IsSnowLineSet() { return _snow_line != NULL; } @@ -555,7 +555,7 @@ void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]) * @return the snow line height. * @ingroup SnowLineGroup */ -byte GetSnowLine(void) +byte GetSnowLine() { if (_snow_line == NULL) return _settings_game.game_creation.snow_line; @@ -569,7 +569,7 @@ byte GetSnowLine(void) * @return the highest snow line height. * @ingroup SnowLineGroup */ -byte HighestSnowLine(void) +byte HighestSnowLine() { return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->highest_value; } @@ -579,7 +579,7 @@ byte HighestSnowLine(void) * @return the lowest snow line height. * @ingroup SnowLineGroup */ -byte LowestSnowLine(void) +byte LowestSnowLine() { return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->lowest_value; } @@ -588,7 +588,7 @@ byte LowestSnowLine(void) * Clear the variable snow line table and free the memory. * @ingroup SnowLineGroup */ -void ClearSnowLine(void) +void ClearSnowLine() { free(_snow_line); _snow_line = NULL; |