summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-30 01:14:00 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-30 01:14:00 +0000
commitfaea6549ce13b05ab565162a9d9e0fcf0818f6dc (patch)
tree92f27036ebc8f0f13918209d14cf815f12c9917e
parent41c6c79a25e97af665d71d586c334a9036445a51 (diff)
downloadopenttd-faea6549ce13b05ab565162a9d9e0fcf0818f6dc.tar.xz
(svn r7636) -Cleanup: Remove unused window classes (sorry WC-mess) and use sizeof(array) instead
of X * sizeof(array[0])
-rw-r--r--newgrf.c2
-rw-r--r--openttd.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/newgrf.c b/newgrf.c
index fa7d0ed86..d82ab294e 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -3425,7 +3425,7 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset)
/* Copy the initial parameter list */
assert(lengthof(newfile->param) == lengthof(config->param) && lengthof(config->param) == 0x80);
newfile->param_end = config->num_params;
- memcpy(newfile->param, config->param, 0x80 * sizeof(newfile->param[0]));
+ memcpy(newfile->param, config->param, sizeof(newfile->param));
if (_first_grffile == NULL) {
_cur_grffile = newfile;
diff --git a/openttd.h b/openttd.h
index 6ed2149ed..912ae4d8d 100644
--- a/openttd.h
+++ b/openttd.h
@@ -387,8 +387,6 @@ enum {
WC_BUILD_VEHICLE,
WC_BUILD_BRIDGE,
WC_ERRMSG,
- WC_ASK_ABANDON_GAME,
- WC_QUIT_GAME,
WC_BUILD_STATION,
WC_BUS_STATION,
WC_TRUCK_STATION,
@@ -444,7 +442,6 @@ enum {
WC_GENERATE_LANDSCAPE,
WC_GENERATE_PROGRESS_WINDOW,
WC_CONFIRM_POPUP_QUERY,
- WC_DEPOT_SELL_ALL,
};