(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
This commit is contained in:
@@ -47,7 +47,6 @@ CommandCost CmdPlaceSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
si->name = strdup(text);
|
||||
}
|
||||
si->UpdateVirtCoord();
|
||||
si->sign.MarkDirty();
|
||||
InvalidateWindowData(WC_SIGN_LIST, 0, 0);
|
||||
_new_sign_id = si->index;
|
||||
}
|
||||
@@ -80,10 +79,7 @@ CommandCost CmdRenameSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
si->name = strdup(text);
|
||||
si->owner = _current_company;
|
||||
|
||||
/* Update; mark sign dirty twice, because it can either become longer, or shorter */
|
||||
si->sign.MarkDirty();
|
||||
si->UpdateVirtCoord();
|
||||
si->sign.MarkDirty();
|
||||
InvalidateWindowData(WC_SIGN_LIST, 0, 1);
|
||||
}
|
||||
} else { // Delete sign
|
||||
|
Reference in New Issue
Block a user