summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-21 00:13:56 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-21 00:13:56 +0000
commit85cd063a9dccddcca3aa1bf635e07a1730dd90f1 (patch)
tree6d57ebdb603e24ff10ed51cfade95a16ac374379
parent0f06c40be7ede24764656bb0f8ffd8370b518bb4 (diff)
downloadopenttd-85cd063a9dccddcca3aa1bf635e07a1730dd90f1.tar.xz
(svn r7521) -Codechange: Rename UpdateAllWaypointCustomGraphics to AfterLoadWaypoints to be more conforming with other such functions.
-rw-r--r--openttd.c2
-rw-r--r--waypoint.c2
-rw-r--r--waypoint.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/openttd.c b/openttd.c
index d91061395..c9d59c2f1 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1406,7 +1406,7 @@ bool AfterLoadGame(void)
} else {
/* As of version 17, we recalculate the custom graphic ID of waypoints
* from the GRF ID / station index. */
- UpdateAllWaypointCustomGraphics();
+ AfterLoadWaypoints();
}
/* From version 15, we moved a semaphore bit from bit 2 to bit 3 in m4, making
diff --git a/waypoint.c b/waypoint.c
index 64d508b92..eaf927504 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -150,7 +150,7 @@ static Waypoint *FindDeletedWaypointCloseTo(TileIndex tile)
* Update waypoint graphics id against saved GRFID/localidx.
* This is to ensure the chosen graphics are correct if GRF files are changed.
*/
-void UpdateAllWaypointCustomGraphics(void)
+void AfterLoadWaypoints(void)
{
Waypoint *wp;
diff --git a/waypoint.h b/waypoint.h
index 0b689b317..75366fb18 100644
--- a/waypoint.h
+++ b/waypoint.h
@@ -68,6 +68,6 @@ void ShowRenameWaypointWindow(const Waypoint *cp);
void DrawWaypointSprite(int x, int y, int image, RailType railtype);
void FixOldWaypoints(void);
void UpdateAllWaypointSigns(void);
-void UpdateAllWaypointCustomGraphics(void);
+void AfterLoadWaypoints(void);
#endif /* WAYPOINT_H */