(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.

This commit is contained in:
peter1138
2008-04-29 21:31:29 +00:00
parent 6056d1fb31
commit 45034bc522
49 changed files with 654 additions and 435 deletions

View File

@@ -656,8 +656,9 @@ static void ResizeDefaultWindowSize(VehicleType type)
uint max_width = 0;
uint max_height = 0;
EngineID eid;
FOR_ALL_ENGINEIDS_OF_TYPE(eid, type) {
const Engine *e;
FOR_ALL_ENGINES_OF_TYPE(e, type) {
EngineID eid = e->index;
uint x, y;
switch (type) {