(svn r6679) -Feature: [train build window] added filter for wagons, engines or both in the display

-Codechange: [train build window] to get rid of a really ugly hack, the train build list is now generated in one loop and stored in an array
This commit is contained in:
bjarni
2006-10-07 13:58:08 +00:00
parent 5df4e234e0
commit db66567799
3 changed files with 168 additions and 80 deletions

View File

@@ -393,8 +393,13 @@ assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d));
typedef struct {
byte railtype;
byte sel_index;
byte show_engine_wagon;
EngineID sel_engine;
EngineID rename_engine;
EngineID *engines;
EngineID *wagons;
uint16 num_engines;
uint16 num_wagons;
} buildtrain_d;
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(buildtrain_d));