summaryrefslogtreecommitdiff
path: root/src/signs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/signs.cpp')
-rw-r--r--src/signs.cpp15
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();
+ }
}
/**