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

« back to all changes in this revision

Viewing changes to src/ai/api/ai_order.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, cdcb73a
  • Date: 2009-12-24 00:55:45 UTC
  • mfrom: (1.1.9 upstream) (2.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091224005545-ffwi801t8mvqtgwz
[cdcb73a] Imported Upstream version 0.7.5. This release fixes
CVE-2009-4007.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ai_order.cpp 16248 2009-05-06 23:21:43Z rubidium $ */
 
1
/* $Id: ai_order.cpp 18500 2009-12-14 20:50:32Z rubidium $ */
2
2
 
3
3
/** @file ai_order.cpp Implementation of AIOrder. */
4
4
 
393
393
 
394
394
/* static */ bool AIOrder::SkipToOrder(VehicleID vehicle_id, OrderPosition next_order)
395
395
{
 
396
        next_order = AIOrder::ResolveOrderPosition(vehicle_id, next_order);
 
397
 
396
398
        EnforcePrecondition(false, IsValidVehicleOrder(vehicle_id, next_order));
397
399
 
398
400
        return AIObject::DoCommand(0, vehicle_id, next_order, CMD_SKIP_TO_ORDER);