Loading

Paste #pwp2v1qoc

  1.     function removeUsedCityPair(fromCity, toCity) {
  2.         for (local i = m_nearCityPairArray.len() - 1 ; i >= 0; --i) {
  3.             if (m_nearCityPairArray[i].isEqual(fromCity, toCity)) {
  4.                 m_nearCityPairArray.remove(i);
  5.             }

Paste #p5in21sxi

  1. function Road::_Neighbours(self, path, cur_node)
  2. {
  3. (...)
  4.     bla bla
  5. ()

RoadPathfinder.nut

  1. require("aystar.nut");
  2.  
  3. /**
  4.  * A Road Pathfinder.
  5.  *  This road pathfinder tries to find a buildable / existing route for

Paste #pxg8qhtoo

  1. # git completion with a script download from github
  2. source ~/git-completion.bash
  3. # alternative git completion via Apple
  4. # source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh

Paste #porntptfs

  1. /* static */ uint AI::max_opcodes[MAX_COMPANIES] = { _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_opcode_till_suspend, _settings_game.script.script_max_

Paste #psmc4rgro

  1. (gdb) run
  2. Starting program: /usr/bin/inkscape
  3. warning: Loadable section ".note.gnu.property" outside of ELF segments
  4. warning: Loadable section ".note.gnu.property" outside of ELF segments
  5. warning: Loadable section ".note.gnu.property" outside of ELF segments

Paste #pnvxcsvic

  1. struct { TileIndex opposite_tile, next_tile_1, next_tile_2; TrackBits opposite_track, next_track_1, next_track_2; } table[] = {
  2.     { TileDiffXY(-1,  1), TileDiffXY( 0,  1), TileDiffXY(-1,  0), TRACK_BIT_LEFT,  _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_NE, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_RIGHT : TRACK_BIT_3WAY_SE },
  3.     { TileDiffXY(-1, -1), TileDiffXY(-1,  0), TileDiffXY( 0, -1), TRACK_BIT_LOWER, _settings_game.pf.forbid_90_deg ? TRACK_BIT_Y | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NW, _settings_game.pf.forbid_90_deg ? TRACK_BIT_X | TRACK_BIT_UPPER : TRACK_BIT_3WAY_NE },
  4.     { TileDiffXY( 1, -1), TileDiffXY( 0, -1), Ti

Paste #plp8lyhxn

  1.                     spec_flags: bitmask(IND_FLAG_BUILT_ON_WATER, IND_FLAG_LONG_CARGO_TYPE_LISTS);
  2.                     accept_cargo_types: [cargotype("FOOD"),cargotype("BDMT"),cargotype("MAIL"),cargotype("FRUT"),cargotype("GOOD")];
  3.                     prod_cargo_types: [cargotype("ENUM"),cargotype("GLUE"),cargotype("PASS"),cargotype("ZINC")];

Paste #pbpxjvaz6

  1. openttd git@github.com:OpenTTD/website.git (fetch)
  2. openttd Nope (push)
  3. origin  git@github.com:OpenTTD/website.git (fetch)
  4. origin  git@github.com:planetmaker/website.git (push)
  5. pm  git@github.com:planetmaker/website.git (fetch)
  6. pm  git@github.com:planetmaker/website.git (push)

Paste #pknb4f6ep

  1.     /* Build the airports for real */
  2.     local last_cost = AIAccounting();
  3.     if (AITestMode() && AIAirport.BuildAirport(airport1_location, airport1_type, airport1_stationId)) {
  4.         if (HasMoney(last_cost.GetCosts())) GetMoney(last_cost.GetCosts());
  5.     }

Paste #pizkc23g9

  1. /* Original code */
  2. ()
  3. //  local price = AIEngine.GetPrice(engine);
  4. //  if (HasMoney(price)) GetMoney(price);
  5. //  local vehicle = AIVehicle.BuildVehicle(best_hangar, engine);

layer test

  1. switch (FEAT_TRAINS,SELF, switch_rail_freight_attach_overlay, getbits(extra_callback_info1, 8, 8)){
  2.   0: return sprite_attach_overlay_8_rail_freight_engine;
  3.   return switch_rail_freight_graphics_which_end;
  4. }

Paste #pgcufayv7

  1. $ ./configure
  2. checking awk... awk
  3. detecting OS... MINGW
  4. checking build system type... x86_64-w64-mingw32
  5. checking host system type... x86_64-w64-mingw32

Paste #prvul6ahg

  1. [SRC] Compiling economy.cpp
  2. src/economy.cpp:702:20: error: expected expression
  3.                 c->cur_economy = {};

Paste #po6klicuv

  1.     // -- smoke etc -- //
  2.     switch (FEAT_TRAINS, SELF, shoebox_switch_visual_effect_and_powered_by_variant_unreversed, current_railtype) {
  3.                 ELRL: return visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER);
  4.         return visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER);
  5.     }