summaryrefslogtreecommitdiff
path: root/engine.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-10-10 08:14:30 +0000
committerbjarni <bjarni@openttd.org>2006-10-10 08:14:30 +0000
commit238b34e000b158ee8bf8e1c4dc07b290e937ff72 (patch)
tree64aaeebbbaf19230f218f88798dbb3ec0de726b7 /engine.c
parent13a0eb3ca6a4eacee4be5032e4c0d4ede2800c1a (diff)
downloadopenttd-238b34e000b158ee8bf8e1c4dc07b290e937ff72.tar.xz
(svn r6714) -Codechange: replaced a direct manipulation of windows with InvalidateWindowData() in rail_cmd.c
Moved the actual modification of railtype to WE_INVALIDATE_DATA in the train depot handler -Codechange: added SetWindowDirty() to WE_INVALIDATE_DATA as it made no sense to update the list without making the window dirty
Diffstat (limited to 'engine.c')
-rw-r--r--engine.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/engine.c b/engine.c
index 4862bd5fc..049b7295e 100644
--- a/engine.c
+++ b/engine.c
@@ -214,7 +214,6 @@ static void AcceptEnginePreview(Engine *e, PlayerID player)
e->preview_player = 0xFF;
if (player == _local_player) {
InvalidateWindowClassesData(WC_BUILD_VEHICLE);
- InvalidateWindowClasses(WC_BUILD_VEHICLE);
InvalidateWindowClasses(WC_REPLACE_VEHICLE);
}
}
@@ -339,7 +338,6 @@ static void NewVehicleAvailable(Engine *e)
e->flags = (e->flags & ~ENGINE_INTRODUCING) | ENGINE_AVAILABLE;
InvalidateWindowClassesData(WC_BUILD_VEHICLE);
- InvalidateWindowClasses(WC_BUILD_VEHICLE);
InvalidateWindowClasses(WC_REPLACE_VEHICLE);
// Now available for all players