Loading

Paste #pque1prb9

  1. per group: read and green alternating for:
  2.     SIGNAL_TO_SOUTHWEST,
  3.     SIGNAL_TO_NORTHEAST,
  4.     SIGNAL_TO_SOUTHEAST,
  5.     SIGNAL_TO_NORTHWEST,

Paste #pu2e2lpfp

  1. replace 1275-1290: normal light
  2.  
  3. replace_new:
  4.   entrance light
  5.   exit light

Paste #pibiiljyr

  1. replace 1275-1290: normal light
  2.  
  3. replace_new:
  4.   entrance light
  5.   exit light

Paste #ptbenxagl

  1. diff -r 38e09267a9c4 src/templates/header.pypnml
  2. --- a/src/templates/header.pypnml   Tue Feb 09 16:47:55 2016 +0000
  3. +++ b/src/templates/header.pypnml   Tue Feb 09 20:36:13 2016 +0100
  4. @@ -125,3 +125,9 @@
  5.     PR_BUILD_INDUSTRY_RAW : 2;  // Building primary industries is also expensive

Paste #ppj9fc2wl

  1. Index: src/newgrf.cpp
  2. ===================================================================
  3. --- src/newgrf.cpp  (revision 27506)
  4. +++ src/newgrf.cpp  (working copy)
  5. @@ -1402,7 +1402,7 @@

Paste #phdkd2aes

  1. Delivered:
  2.  8t man supplies
  3.  800t cassava
  4.  
  5. Result 1:

Paste #pxcis8ysh

  1. Example 1:
  2.         local indtypes = GSIndustryTypeList();
  3.         for (local it = indtypes.Begin(); !indtypes.IsEnd(); it = indtypes.Next())
  4.         {
  5.                 if (GSIndustryType.IsRawIndustry(it))

Paste #p4p3q5lro

  1. static const SpriteID SPR_TRAMWAY_BASE                 = ...
  2. static const SpriteID SPR_TRAMWAY_OVERLAY              = SPR_TRAMWAY_BASE + 4;
  3. static const SpriteID SPR_TRAMWAY_TRAM                 = SPR_TRAMWAY_BASE + 27;
  4. static const SpriteID SPR_TRAMWAY_SLOPED_OFFSET        = 11;
  5. static const SpriteID SPR_TRAMWAY_BUS_STOP_DT_Y_W      = SPR_TRAMWAY_BASE + 25;

Paste #p56sxxuto

  1. #include <memory>
  2. #include "boost/shared_ptr.hpp"
  3.  
  4. #include <boost/lambda/lambda.hpp>
  5. #include <boost/lambda/bind.hpp>

Paste #plqrwybxk

  1. //#include <memory>
  2. //#include "boost/shared_ptr.hpp"
  3.  
  4. #include <boost/lambda/lambda.hpp>
  5. #include <boost/lambda/bind.hpp>

Paste #p8qovwfdr

  1. // make copy of all variables
  2. x_old = x;
  3. y_old = y;
  4.  
  5. // Do assignments from old to new

Paste #p3cwugtpi

  1. int& foo()
  2. {
  3.   blabla
  4. }

Paste #pcbxday6r

  1. 634-  -- Note: to avoid empty action queue error if the player spam clicks a patient at the same time as the day changes
  2. 635-  -- there is now an inbetween "neutal" stage.
  3. 636:  if self.has_fallen == 3 then
  4. 637:    self.has_fallen = 1
  5. 638:  elseif self.has_fallen == 2 then

Paste #pmjggsh99

  1.   if self.falling_anim and self:canPeeOrPuke(current) and self.has_fallen == 1 then
  2.     self:setNextAction(FallingAction():setMustHappen(), 0)
  3.     self.has_fallen = 2
  4.     if self.has_fallen == 2 then
  5.       self:setNextAction{name = "on_ground"}

Paste #pkglvrtjk

  1. >>> g = pydot.graph_from_dot_data(open('test.dot', 'r').read())
  2. Traceback (most recent call last):
  3.   File "<stdin>", line 1, in <module>
  4.   File "/usr/lib/python3/dist-packages/pydot.py", line 220, in graph_from_dot_data
  5.     return dot_parser.parse_dot_data(data)