(svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords.

This commit is contained in:
rubidium
2009-07-13 22:33:25 +00:00
parent db63e1ad82
commit e067d4a4b8
15 changed files with 51 additions and 53 deletions

View File

@@ -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();
}
}
/**