summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-22 01:37:31 +0000
committerbelugas <belugas@openttd.org>2006-04-22 01:37:31 +0000
commitc0acac3a14616917acc59f90450f8a90c0de5185 (patch)
tree426f510e352e2035af0df132920c1dc473861360 /strings.c
parent8dd7d35eb5e8c275a6018c7ec4e87612c418a03f (diff)
downloadopenttd-c0acac3a14616917acc59f90450f8a90c0de5185.tar.xz
(svn r4513) Codechange : Assemble a bit the scattered parts of Cargo types.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 022a4180a..48c0ab3b3 100644
--- a/strings.c
+++ b/strings.c
@@ -17,6 +17,7 @@
#include "industry.h"
#include "variables.h"
#include "newgrf_text.h"
+#include "table/landscape_const.h"
char _userstring[128];
@@ -584,7 +585,7 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c
// Short description of cargotypes. Layout:
// 8-bit = cargo type
// 16-bit = cargo count
- StringID cargo_str = _cargo_string_list[_opt_ptr->landscape][GetInt32(&argv)];
+ StringID cargo_str = _cargo_types_base_values[_opt_ptr->landscape].units_volume[GetInt32(&argv)];
switch (cargo_str) {
case STR_TONS: {
int32 args[1];