diff options
author | rubidium <rubidium@openttd.org> | 2009-11-09 10:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-09 10:40:33 +0000 |
commit | 860b9b1cead825da2dfc109858f8f134f973f62d (patch) | |
tree | 217816b8cd30cd32331090a36222f2e968c830e2 /src/saveload | |
parent | c2221885f488b9a7ca52b11e621582d4c60ab80d (diff) | |
download | openttd-860b9b1cead825da2dfc109858f8f134f973f62d.tar.xz |
(svn r18028) -Codechange: unglobalise some functions
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 2 | ||||
-rw-r--r-- | src/saveload/saveload.cpp | 2 | ||||
-rw-r--r-- | src/saveload/station_sl.cpp | 2 | ||||
-rw-r--r-- | src/saveload/subsidy_sl.cpp | 4 | ||||
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index 332447b6c..7acac2937 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -148,7 +148,7 @@ static uint32 RemapOldTownName(uint32 townnameparts, byte old_town_name_type) #undef FIXNUM -void FixOldTowns() +static void FixOldTowns() { Town *town; diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 3eb4ae6f5..76025aee7 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -767,7 +767,7 @@ static inline size_t SlCalcListLen(const void *list) * @param list The list being manipulated * @param conv SLRefType type of the list (Vehicle *, Station *, etc) */ -void SlList(void *list, SLRefType conv) +static void SlList(void *list, SLRefType conv) { /* Automatically calculate the length? */ if (_sl.need_length != NL_NONE) { diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp index 9c44ddb26..1e0f6d887 100644 --- a/src/saveload/station_sl.cpp +++ b/src/saveload/station_sl.cpp @@ -259,7 +259,7 @@ static void Load_STNS() } } -void Ptrs_STNS() +static void Ptrs_STNS() { /* Don't run when savegame version is higher than or equal to 123. */ if (!CheckSavegameVersion(123)) return; diff --git a/src/saveload/subsidy_sl.cpp b/src/saveload/subsidy_sl.cpp index 62f31ab19..e5c18a2a4 100644 --- a/src/saveload/subsidy_sl.cpp +++ b/src/saveload/subsidy_sl.cpp @@ -27,7 +27,7 @@ static const SaveLoad _subsidies_desc[] = { SLE_END() }; -void Save_SUBS() +static void Save_SUBS() { Subsidy *s; FOR_ALL_SUBSIDIES(s) { @@ -36,7 +36,7 @@ void Save_SUBS() } } -void Load_SUBS() +static void Load_SUBS() { int index; while ((index = SlIterateArray()) != -1) { diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index f0cc170ca..0e1023909 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -737,7 +737,7 @@ void Load_VEHS() } } -void Ptrs_VEHS() +static void Ptrs_VEHS() { Vehicle *v; FOR_ALL_VEHICLES(v) { |