src/dock_gui.cpp
branchcustombridgeheads
changeset 5650 aefc131bf5ce
parent 5649 55c8267c933f
child 5933 0835f3342b79
--- a/src/dock_gui.cpp	Thu Jan 11 13:41:16 2007 +0000
+++ b/src/dock_gui.cpp	Mon Jan 15 20:14:06 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();