summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-17 18:49:05 +0000
committerludde <ludde@openttd.org>2005-07-17 18:49:05 +0000
commit52b42ff5081f25da96f70d7f16705e71e691216e (patch)
treeca24ca0eb13d1c91219a49637c54c29e013e48ee
parentedbe969d239c45909ce557e1a81ce9be9ed89664 (diff)
downloadopenttd-52b42ff5081f25da96f70d7f16705e71e691216e.tar.xz
(svn r2622) Fix: remove _cargoc.names_p, it was never used.
-rw-r--r--misc.c4
-rw-r--r--variables.h1
2 files changed, 1 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index 4fdd7740f..d2479bd89 100644
--- a/misc.c
+++ b/misc.c
@@ -423,9 +423,7 @@ void InitializeLandscapeVariables(bool only_constants)
str = lpd->names[i];
_cargoc.names_s[i] = str;
- _cargoc.names_p[i] = (str += 0x20);
- _cargoc.names_long[i] = (str += 0x20);
-// _cargoc.names_long_p[i] = (str += 0x20);
+ _cargoc.names_long[i] = (str += 0x40);
_cargoc.names_short[i] = (str += 0x20);
_cargoc.weights[i] = lpd->weights[i];
diff --git a/variables.h b/variables.h
index cba31fca5..f026a7601 100644
--- a/variables.h
+++ b/variables.h
@@ -379,7 +379,6 @@ VARDEF FILE *_log_file_fd;
// NOSAVE: These can be recalculated from InitializeLandscapeVariables
typedef struct {
StringID names_s[NUM_CARGO];
- StringID names_p[NUM_CARGO];
StringID names_long[NUM_CARGO];
StringID names_short[NUM_CARGO];
byte weights[NUM_CARGO];