summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-08 12:01:26 +0000
committerrubidium <rubidium@openttd.org>2009-07-08 12:01:26 +0000
commit9ae07bba8546ab1f1cdf4f58c9b31af944325c43 (patch)
tree89fed2986d6c1c13c1d84989456fd4359ae3a78a /src/station_cmd.cpp
parent3fb1506d6d71fcc124779f7f4a7ede68d9970636 (diff)
downloadopenttd-9ae07bba8546ab1f1cdf4f58c9b31af944325c43.tar.xz
(svn r16766) -Codechange: remove station->MarkDirty. It is in all cases meant to only update the sign and not invalidate the widget; the widget would be invalidated by a call before/after the call to MarkDirty or it wouldn't make sense because e.g. the window doesn't exist anymore/yet.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 8990c2e65..fa8cb76e2 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -403,9 +403,9 @@ void UpdateAllStationVirtCoord()
*/
static void UpdateStationVirtCoordDirty(Station *st)
{
- st->MarkDirty();
+ st->sign.MarkDirty();
st->UpdateVirtCoord();
- st->MarkDirty();
+ st->sign.MarkDirty();
}
/** Get a mask of the cargo types that the station accepts.