diff options
author | belugas <belugas@openttd.org> | 2009-08-03 20:02:25 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2009-08-03 20:02:25 +0000 |
commit | a2b996106ea25c97ece3e724c10d9d1b9e1d5aa2 (patch) | |
tree | 5cc371e6bbe7677dccd271c6c169145d51722d73 /src/graph_gui.cpp | |
parent | 37d01c7758d018bfd2d29b623f83bde080598233 (diff) | |
download | openttd-a2b996106ea25c97ece3e724c10d9d1b9e1d5aa2.tar.xz |
(svn r17058) -Codechange: magic numbers removal.
Two values used intead of just one, as it gives more possibilities to those who dare...
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 4142d5556..77c86c1e6 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -160,6 +160,7 @@ protected: enum { GRAPH_MAX_DATASETS = 32, GRAPH_AXIS_LINE_COLOUR = 215, + GRAPH_NUM_MONTHS = 24, ///< Number of months displayed in the graph. GRAPH_X_POSITION_BEGINNING = 44, ///< Start the graph 44 pixels from gd_left GRAPH_X_POSITION_SEPARATION = 22, ///< There are 22 pixels between each X value @@ -190,7 +191,7 @@ protected: Rect graph_location; StringID format_str_y_axis; byte colours[GRAPH_MAX_DATASETS]; - OverflowSafeInt64 cost[GRAPH_MAX_DATASETS][24]; ///< last 2 years + OverflowSafeInt64 cost[GRAPH_MAX_DATASETS][GRAPH_NUM_MONTHS]; ///< Stored costs for the last #GRAPH_NUM_MONTHS months /** * Actually draw the graph. |