~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/vehicle_gui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman
  • Date: 2008-08-08 11:07:05 UTC
  • mfrom: (1.1.4 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080808110705-zq0eo95c4pexg70i
* New upstream release.
  - Fixes remote crash vulnerability CVE-2008-3547. Closes: #493714

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: vehicle_gui.cpp 12324 2008-03-02 00:25:54Z smatz $ */
 
1
/* $Id: vehicle_gui.cpp 13690 2008-07-09 19:39:57Z rubidium $ */
2
2
 
3
3
/** @file vehicle_gui.cpp */
4
4
 
275
275
                                }
276
276
                        }
277
277
                }
278
 
        } while (v->type == VEH_TRAIN && (u = u->Next()) != NULL && num_lines < max_lines);
 
278
        } while ((v->type == VEH_TRAIN || v->type == VEH_ROAD) && (u = u->Next()) != NULL && num_lines < max_lines);
279
279
 
280
280
        list->num_lines = num_lines;
281
281
        list->items = refit;
1378
1378
 
1379
1379
                        /* Add space for the cargo amount for each part. */
1380
1380
                        for (const Vehicle *u = v; u != NULL; u = u->Next()) {
1381
 
                                height_extension += 11;
 
1381
                                if (u->cargo_cap != 0) height_extension += 11;
1382
1382
                        }
1383
1383
 
1384
1384
                        ResizeWindow(w, 0, height_extension);