summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-01 00:09:13 +0000
committerDarkvater <darkvater@openttd.org>2006-12-01 00:09:13 +0000
commit04f99447469d335af52702aad35cc2d3f705c06d (patch)
tree34e228c15bbd169f5c13601b61aa43ae9e3b95ba /ship_gui.c
parent9b4d3ff4b88eb6d655bf31afc28a6afa849f07f7 (diff)
downloadopenttd-04f99447469d335af52702aad35cc2d3f705c06d.tar.xz
(svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call
that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls.
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 90663533a..c0719d803 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -242,10 +242,6 @@ void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2)
static void NewShipWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
- case WE_INVALIDATE_DATA:
- SetWindowDirty(w);
- break;
-
case WE_PAINT: {
EngineID selected_id;
EngineID eid;