diff options
author | rubidium <rubidium@openttd.org> | 2009-07-13 22:33:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-13 22:33:25 +0000 |
commit | e067d4a4b87d2c4b4fa92f24d241a88cb8432e38 (patch) | |
tree | f0528a4fd03a2b0bdb8ba6ddf08f48e76c4f0aac /src/signs.cpp | |
parent | db63e1ad82537ea7b278c64b2a5383afd1bfbc5c (diff) | |
download | openttd-e067d4a4b87d2c4b4fa92f24d241a88cb8432e38.tar.xz |
(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.
Diffstat (limited to 'src/signs.cpp')
-rw-r--r-- | src/signs.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/signs.cpp b/src/signs.cpp index 2744c31c4..ae5ef4d7c 100644 --- a/src/signs.cpp +++ b/src/signs.cpp @@ -33,16 +33,13 @@ Sign::~Sign() } /** - * * Update the coordinate of one sign - * @param si Pointer to the Sign - * */ -void UpdateSignVirtCoords(Sign *si) +void Sign::UpdateVirtCoord() { - Point pt = RemapCoords(si->x, si->y, si->z); - SetDParam(0, si->index); - si->sign.UpdatePosition(pt.x, pt.y - 6, STR_SIGN_WHITE); + Point pt = RemapCoords(this->x, this->y, this->z); + SetDParam(0, this->index); + this->sign.UpdatePosition(pt.x, pt.y - 6, STR_SIGN_WHITE); } /** Update the coordinates of all signs */ @@ -50,7 +47,9 @@ void UpdateAllSignVirtCoords() { Sign *si; - FOR_ALL_SIGNS(si) UpdateSignVirtCoords(si); + FOR_ALL_SIGNS(si) { + si->UpdateVirtCoord(); + } } /** |