Loading

Paste #pikzlfahy

  1. - Feature: increase cargo ID range from 32 to 64, to support 64 cargos in OpenTTD 11ab3c4ea2f6a6d29efda8c9ba2af04194621ea7
  2. - Change: Support more DCxx strings for OpenTTD r27769.
  3. - Change: Support more DCxx strings for OpenTTD r27769.
  4. - Add: Properties for vehicle sprite stack.
  5. - Add: CB_FLAG_MORE_SPRITES, PALETTE_IDENTITY

opf find depot

  1. FindDepotData OPFShipFindNearestDepot(const Ship *v, int max_distance)
  2. {
  3.     FindDepotData fdd;
  4.  
  5.     Trackdir trackdir = v->GetVehicleTrackdir();

Paste #ptvy7ysmq

  1. Index: lang/english.txt
  2. ===================================================================
  3. --- lang/english.txt    (revision 27764)
  4. +++ lang/english.txt    (working copy)
  5. @@ -3689,7 +3689,9 @@

Paste #pdynurwc5

  1. /**
  2.  * Build a ship depot.
  3.  * @param tile tile where ship depot is built
  4.  * @param flags type of operation
  5.  * @param p1 bit 0 depot orientation (Axis)

RATT - Available RoadSubT

  1. A company can build a RoadSubType when:
  2. - A vehicle for it is available for purchase to the company
  3. - The company owns a vehicle for that RoadSubType but the vehicles are expired (like RailTypes)
  4. - The RoadSubType doesn't have vehicles bound to it but is compatible with other RoadSubTypes, like OFFR/DIRT, HWAY

Paste #pef0g4kgn

  1. Weight  Self Weight     Symbol Name
  2. 31.15 s  100.0% 0 s     openttd (44198)
  3. 30.71 s   98.5% 0 s      -[OTTD_QuartzView drawRect:]  0x2d39c
  4. 28.99 s   93.0% 0 s       -[OTTD_QuartzView drawRect:]
  5. 28.79 s   92.4% 0 s        CGContextDrawImage

Paste #p2e9mosxp

  1. class MyTest extends AIController {
  2.   function Start();
  3. }
  4.  
  5. function MyTest::Start() {

Paste #pfif4lzeo

  1. class MyTest extends AIController {
  2.   function Start();
  3. }
  4.  
  5. function MyTest::Start() {

Paste #pj8xtnxkg

  1. class MyTest extends AIController {
  2.   oil = false;
  3.   oilFleet = [];
  4.   myRigs = AIList();
  5.   function Start();

FindClosestReachableShipD

  1. Index: src/pathfinder/yapf/yapf.h
  2. ===================================================================
  3. --- src/pathfinder/yapf/yapf.h  (revision 27829)
  4. +++ src/pathfinder/yapf/yapf.h  (working copy)
  5. @@ -97,4 +97,14 @@

FindClosestReachableShipD

  1. Index: src/pathfinder/follow_track.hpp
  2. ===================================================================
  3. --- src/pathfinder/follow_track.hpp (revision 27829)
  4. +++ src/pathfinder/follow_track.hpp (working copy)
  5. @@ -438,6 +438,21 @@

Paste #pt8sdmz22

  1. diff -r 1cb585403212 nml/grfstrings.py
  2. --- a/nml/grfstrings.py Sat Mar 04 19:32:22 2017 +0100
  3. +++ b/nml/grfstrings.py Sat Mar 04 19:57:24 2017 +0100
  4. @@ -944,7 +944,7 @@
  5.              parsed_string += SET_STRING_GENDER[str_type] + '\\{:02X}'.format(self.genders[self.strings[string_id].gender])

wire templates

  1. template tmpl_wire_normal(file) {
  2.     [ 10, 10, 64, 47, -31, -16, file]
  3.     [ 80, 10, 64, 47, -31, -16, file]
  4.  
  5.     [150, 10, 64, 47, -31, -16, file]

Paste #pxwjx24zl

  1. //
  2. // qsort.cpp
  3. //
  4. //      Copyright (c) Microsoft Corporation. All rights reserved.
  5. //

Paste #pdle3nc1a

  1. switch (FEAT_ROADVEHS, SELF, mk3_open_cargo_switch, cargo_classes & BITMASK(CC_LIQUID, CC_BULK)) {   //switch for reducing capacity for some cargos
  2.         BITMASK(CC_LIQUID): return 10; //barrels hold less than tanker
  3.         BITMASK(CC_BULK): return 7; //can't fill bed with as much bulk as a hopper
  4.         default: return CB_FAILED;
  5. }