diff options
author | rubidium <rubidium@openttd.org> | 2011-01-22 09:53:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-22 09:53:15 +0000 |
commit | eb299736c1bcb277da1862afe95c11cb897effcf (patch) | |
tree | 3bb6bff78f066da770a367e078c569dbe8ce319a /src/saveload | |
parent | 0cdb1c78cdbfce4d426441c21ef7066f1cfecf6f (diff) | |
download | openttd-eb299736c1bcb277da1862afe95c11cb897effcf.tar.xz |
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/newgrf_sl.cpp | 8 | ||||
-rw-r--r-- | src/saveload/newgrf_sl.h | 9 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/saveload/newgrf_sl.cpp b/src/saveload/newgrf_sl.cpp index 2966bd08c..df0f462a3 100644 --- a/src/saveload/newgrf_sl.cpp +++ b/src/saveload/newgrf_sl.cpp @@ -24,6 +24,10 @@ static const SaveLoad _newgrf_mapping_desc[] = { SLE_END() }; +/** + * Save a GRF ID + local id -> OpenTTD's id mapping. + * @param mapping The mapping to save. + */ void Save_NewGRFMapping(const OverrideManagerBase &mapping) { for (uint i = 0; i < mapping.GetMaxMapping(); i++) { @@ -32,6 +36,10 @@ void Save_NewGRFMapping(const OverrideManagerBase &mapping) } } +/** + * Load a GRF ID + local id -> OpenTTD's id mapping. + * @param mapping The mapping to load. + */ void Load_NewGRFMapping(OverrideManagerBase &mapping) { /* Clear the current mapping stored. diff --git a/src/saveload/newgrf_sl.h b/src/saveload/newgrf_sl.h index 43c8552f7..c0714d65d 100644 --- a/src/saveload/newgrf_sl.h +++ b/src/saveload/newgrf_sl.h @@ -14,16 +14,7 @@ #include "../newgrf_commons.h" -/** - * Save a GRF ID + local id -> OpenTTD's id mapping. - * @param mapping The mapping to save. - */ void Save_NewGRFMapping(const OverrideManagerBase &mapping); - -/** - * Load a GRF ID + local id -> OpenTTD's id mapping. - * @param mapping The mapping to load. - */ void Load_NewGRFMapping(OverrideManagerBase &mapping); #endif /* SAVELOAD_NEWGRF_SL_H */ |