summaryrefslogtreecommitdiff
path: root/dock_gui.c
diff options
context:
space:
mode:
authorCelestar <celestar@openttd.org>2004-12-08 15:46:13 +0000
committerCelestar <celestar@openttd.org>2004-12-08 15:46:13 +0000
commit5b0743d66bf73a1bbfdd95beca039283091d8d46 (patch)
treeaa862fd953b81bbc7c142d763f82868807933f7e /dock_gui.c
parent6fd3fc10e347695b28c8b3d1e0074b5456cd8100 (diff)
downloadopenttd-5b0743d66bf73a1bbfdd95beca039283091d8d46.tar.xz
(svn r979) Allow more realistically sized catchment areas
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/dock_gui.c b/dock_gui.c
index b4228922d..c9444c6e0 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "table/strings.h"
#include "window.h"
+#include "station.h"
#include "gui.h"
#include "viewport.h"
#include "gfx.h"
@@ -203,12 +204,21 @@ void ShowBuildDocksToolbar()
static void BuildDockStationWndProc(Window *w, WindowEvent *e)
{
+ int rad;
+
switch(e->event) {
case WE_PAINT: {
if (WP(w,def_d).close)
return;
DrawWindowWidgets(w);
- DrawStationCoverageAreaText(2, 15, (uint)-1);
+ //Add some code for the coverage area eariler or later!!
+ if (_patches.modified_catchment) {
+ rad = CA_DOCK;
+ } else {
+ rad = 4;
+ }
+
+ DrawStationCoverageAreaText(2, 15, (uint)-1, rad);
} break;
case WE_CLICK: {