Loading

Paste #pwhdeamuj

  1. /**
  2.  * Ensure there is no ship on the neighbouring tiles coming into or going
  3.  * away from the specified tile.
  4.  * @param tile the specified tile.
  5.  * @param diag_dir_mask mask containing the diagonal directions to the

Paste #p5mqfcanm

  1. /**
  2.  * Procedure testing if a ship is in (one of) the specified track bits.
  3.  * @param v Vehicle to examine.
  4.  * @param data Pointer to TrackBits.
  5.  * @return \a v if conditions are met, else \c NULL.

Paste #puadexwa4

  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)

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.     }

Paste #pagop3ur5

  1. /**
  2.  * Ensure there is no ship coming from or going to the given diagonal direction.
  3.  * @param tile Position to examine.
  4.  * @param diag_dir Diagonal direction
  5.  * @return Succeeded command (water is free) or failed command (a ship is found).

Paste #pppfawycl

  1. @ -47,6 +47,7 @@
  2. #include "effectvehicle_base.h"
  3. #include "vehiclelist.h"
  4. #include "bridge_map.h"
  5. #include "tunnelbridge_map.h"

Paste #p7vs2u9ex

  1. OpenTTD.andythenorth(nrt-block)$ git merge upstream/master
  2. warning: Cannot merge binary files: media/extra_grf/openttdgui.png (HEAD vs. upstream/master)
  3. Auto-merging src/vehicle.cpp
  4. Auto-merging src/tunnelbridge_cmd.cpp
  5. CONFLICT (content): Merge conflict in src/tunnelbridge_cmd.cpp

depot_te.patch

  1. diff --git a/src/engine.cpp b/src/engine.cpp
  2. index ac2e8df0e..a416f4a21 100644
  3. --- a/src/engine.cpp
  4. +++ b/src/engine.cpp
  5. @@ -429,14 +429,8 @@ uint Engine::GetDisplayWeight() const

Paste #puskquvt9

  1. class Road
  2. {
  3. ()
  4.  
  5.     _min_distance = AIMap.GetMapSizeX() + AIMap.GetMapSizeY();

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 #p5in21sxi

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

Paste #pkxot9vj7

  1. /**
  2.  * Get a list of all bridges and tunnels that can be built from the
  3.  * current tile. Tunnels will only be built if no terraforming
  4.  * is needed on both ends.
  5.  */

Paste #phrvnxhrz

  1. /**
  2.  * Get a list of all bridges and tunnels that can be built from the
  3.  * current tile. Tunnels will only be built if no terraforming
  4.  * is needed on both ends.
  5.  */

Paste #pwtccbjkr

  1. function Road::_GetDirectionEfficient(from, to, is_bridge,
  2.         map_size_x = Road._map_size_x)
  3. {
  4.     if (!is_bridge && AITile.GetSlope(to) == AITile.SLOPE_FLAT) return 0xFF;
  5.     local diff = from - to;

Paste #pkoecxumh

  1. function Road::_IsSlopedRoadEfficient(start, middle, end, map_size_x = Road._map_size_x, _AITile = AITile)
  2. {
  3.     local NW = middle - map_size_x;
  4.     local NE = middle - 1;
  5.     local SE = middle + map_size_x;