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

« back to all changes in this revision

Viewing changes to src/pbs.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: pbs.cpp 15299 2009-01-31 20:16:06Z smatz $ */
 
1
/* $Id: pbs.cpp 17346 2009-09-01 13:16:53Z rubidium $ */
2
2
 
3
3
/** @file pbs.cpp */
4
4
#include "stdafx.h"
18
18
        switch (GetTileType(t)) {
19
19
                case MP_RAILWAY:
20
20
                        if (IsRailWaypoint(t) || IsRailDepot(t)) return GetRailWaypointReservation(t);
21
 
                        if (IsPlainRailTile(t)) return GetTrackReservation(t);
 
21
                        if (IsPlainRail(t)) return GetTrackReservation(t);
22
22
                        break;
23
23
 
24
24
                case MP_ROAD:
79
79
 
80
80
        switch (GetTileType(tile)) {
81
81
                case MP_RAILWAY:
82
 
                        if (IsPlainRailTile(tile)) return TryReserveTrack(tile, t);
 
82
                        if (IsPlainRail(tile)) return TryReserveTrack(tile, t);
83
83
                        if (IsRailWaypoint(tile) || IsRailDepot(tile)) {
84
84
                                if (!GetDepotWaypointReservation(tile)) {
85
85
                                        SetDepotWaypointReservation(tile, true);
139
139
                                MarkTileDirtyByTile(tile);
140
140
                                break;
141
141
                        }
142
 
                        if (IsPlainRailTile(tile)) UnreserveTrack(tile, t);
 
142
                        if (IsPlainRail(tile)) UnreserveTrack(tile, t);
143
143
                        break;
144
144
 
145
145
                case MP_ROAD: