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

« back to all changes in this revision

Viewing changes to src/signal.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: signal.cpp 12199 2008-02-20 17:49:50Z frosch $ */
 
1
/* $Id: signal.cpp 13687 2008-07-09 19:15:43Z rubidium $ */
2
2
 
3
3
/** @file signal.cpp functions related to rail signals updating */
4
4
 
298
298
                                }
299
299
 
300
300
                                if (GetRailTileType(tile) == RAIL_TILE_WAYPOINT) {
 
301
                                        if (GetWaypointAxis(tile) != DiagDirToAxis(enterdir)) continue;
301
302
                                        if (!(flags & SF_TRAIN) && VehicleFromPos(tile, NULL, &TrainOnTileEnum)) flags |= SF_TRAIN;
302
303
                                        tile += TileOffsByDiagDir(exitdir);
303
304
                                        /* enterdir and exitdir stay the same */