--- a/src/dock_gui.cpp Wed Jan 10 18:44:52 2007 +0000
+++ b/src/dock_gui.cpp Wed Jan 10 18:56:51 2007 +0000
@@ -254,7 +254,7 @@
case 3:
case 4:
RaiseWindowWidget(w, _station_show_coverage + 3);
- _station_show_coverage = e->we.click.widget - 3;
+ _station_show_coverage = (e->we.click.widget != 3);
LowerWindowWidget(w, _station_show_coverage + 3);
SndPlayFx(SND_15_BEEP);
SetWindowDirty(w);
@@ -328,7 +328,7 @@
case 3:
case 4:
RaiseWindowWidget(w, _ship_depot_direction + 3);
- _ship_depot_direction = e->we.click.widget - 3;
+ _ship_depot_direction = (e->we.click.widget == 3 ? AXIS_X : AXIS_Y);
LowerWindowWidget(w, _ship_depot_direction + 3);
SndPlayFx(SND_15_BEEP);
UpdateDocksDirection();