summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-09 09:29:27 +0000
committerrubidium <rubidium@openttd.org>2008-05-09 09:29:27 +0000
commitf4387004025efb3860a2934ed6d82a7e6f1cd716 (patch)
tree3a614e86500df9bd4d6ff37cbc44cca603933d88 /src/rail_gui.cpp
parent486172e07f92f4ac4a9602cf47568d0e1d3cf9bb (diff)
downloadopenttd-f4387004025efb3860a2934ed6d82a7e6f1cd716.tar.xz
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 2354689b3..12ddba97b 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -1122,7 +1122,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e)
w->SetDirty();
break;
- case WE_MOUSELOOP:
+ case WE_TICK:
if (WP(w, def_d).close) {
delete w;
return;
@@ -1345,7 +1345,7 @@ static void SignalBuildWndProc(Window *w, WindowEvent *e)
w->SetDirty();
break;
- case WE_MOUSELOOP:
+ case WE_TICK:
if (WP(w, def_d).close) delete w;
return;
@@ -1436,7 +1436,7 @@ static void BuildTrainDepotWndProc(Window *w, WindowEvent *e)
}
break;
- case WE_MOUSELOOP:
+ case WE_TICK:
if (WP(w, def_d).close) delete w;
return;
@@ -1535,7 +1535,7 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e)
break;
}
- case WE_MOUSELOOP:
+ case WE_TICK:
if (WP(w, def_d).close) delete w;
break;