(svn r7636) -Cleanup: Remove unused window classes (sorry WC-mess) and use sizeof(array) instead
authorDarkvater
Sat, 30 Dec 2006 01:14:00 +0000
changeset 5681 7b237b4958d6
parent 5680 b0bae92a1620
child 5682 eeddbbacd4ac
(svn r7636) -Cleanup: Remove unused window classes (sorry WC-mess) and use sizeof(array) instead
of X * sizeof(array[0])
newgrf.c
openttd.h
--- a/newgrf.c	Sat Dec 30 01:08:12 2006 +0000
+++ b/newgrf.c	Sat Dec 30 01:14:00 2006 +0000
@@ -3425,7 +3425,7 @@
 	/* 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;
--- a/openttd.h	Sat Dec 30 01:08:12 2006 +0000
+++ b/openttd.h	Sat Dec 30 01:14:00 2006 +0000
@@ -387,8 +387,6 @@
 	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 @@
 	WC_GENERATE_LANDSCAPE,
 	WC_GENERATE_PROGRESS_WINDOW,
 	WC_CONFIRM_POPUP_QUERY,
-	WC_DEPOT_SELL_ALL,
 };