Changeset - r8749:32dab7bd0102
[Not reviewed]
master
0 3 0
peter1138 - 16 years ago 2008-03-27 15:48:54
peter1138@openttd.org
(svn r12445) -Fix: Add missing compile asserts for window data structs
3 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -48,6 +48,7 @@ struct generate_d {
 
	uint y;
 
	char name[64];
 
};
 
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(generate_d));
 

	
 
extern void SwitchMode(int new_mode);
 

	
src/newgrf_gui.cpp
Show inline comments
 
@@ -114,6 +114,7 @@ struct newgrf_add_d {
 
	GRFConfig **list;
 
	const GRFConfig *sel;
 
};
 
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_add_d));
 

	
 
/* Names of the add a newgrf window widgets */
 
enum AddNewGRFWindowWidgets {
src/signs_gui.cpp
Show inline comments
 
@@ -163,6 +163,7 @@ void ShowSignList()
 
struct editsign_d : querystr_d {
 
	SignID cur_sign;
 
};
 
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(editsign_d));
 

	
 
enum QueryEditSignWidgets {
 
	QUERY_EDIT_SIGN_WIDGET_TEXT = 3,
0 comments (0 inline, 0 general)