diff options
author | rubidium <rubidium@openttd.org> | 2011-01-18 23:09:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-18 23:09:43 +0000 |
commit | 9ca4b629cd91c2749d9efafd752fc5175ebce5fd (patch) | |
tree | 24da99d42f3e33eb7f4109462dcced5adc6eab15 /src/rail_cmd.cpp | |
parent | 7efd7e19ed046a4a0c03077f27930291ba5b9725 (diff) | |
download | openttd-9ca4b629cd91c2749d9efafd752fc5175ebce5fd.tar.xz |
(svn r21846) -Codechange: move documentation towards the code to make it more likely to be updated [o-s].
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index be056ed4b..508ba8459 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -45,7 +45,7 @@ RailtypeInfo _railtypes[RAILTYPE_END]; assert_compile(sizeof(_original_railtypes) <= sizeof(_railtypes)); /** - * Initialize rail type information. + * Reset all rail type information to its default values. */ void ResetRailTypes() { @@ -76,6 +76,9 @@ void ResolveRailTypeGUISprites(RailtypeInfo *rti) } } +/** + * Resolve sprites of custom rail types + */ void InitRailTypes() { for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) { @@ -84,6 +87,9 @@ void InitRailTypes() } } +/** + * Allocate a new rail type label + */ RailType AllocateRailType(RailTypeLabel label) { for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) { |