Loading

Paste #pqmoli0zw

  1.    switch (FEAT_TRAINS, SELF, ${vehicle.id}_switch_cargo_capacity_by_cargo_${param_value}, cargo_classes) {
  2.         bitmask(CC_PASSENGERS): return ${vehicle.capacities_pax[param_value]};
  3.         bitmask(CC_MAIL): return ${vehicle.capacities_mail[param_value]};
  4.         return 100; <!--!${vehicle.capacities_freight[param_value]};-->
  5.     }

#openttdcoop Paste Script

  1. #!/usr/bin/env python3
  2.  
  3. import json
  4. import urllib.request as urlreq
  5. from urllib.parse import urlencode

Paste #ps6aj7xff

  1. CmdIndustryGSEvent:
  2. p1 = industry id
  3. p2 = custom data vor var 10 resp. 18
  4.  
  5. CmdIndustryAreaGSEvent:

Paste #pwtwowa1p

  1. static inline int find(const char *pat_data, int pat_size, const char *data, int data_size)
  2. {
  3.     int i;
  4.     for (i = 0; i + pat_size <= data_size; ++i) {
  5. #if 0

Paste #p4gruwcin

  1. Index: src/tunnelbridge_cmd.cpp
  2. ===================================================================
  3. --- src/tunnelbridge_cmd.cpp    (revision 27233)
  4. +++ src/tunnelbridge_cmd.cpp    (working copy)
  5. @@ -435,7 +435,8 @@

Paste #pzjtzla8o

  1. input nml:
  2.  
  3. spriteset(stationset1, "src/gfx/cc_grid.png") { tmpl_groundsprites(1, 1) }
  4.  
  5. spritegroup spritegroup1 {

Paste #piw6zjqer

  1. Two crashes have been found and fixed in 1.4.3-RC1, one related to the same issue which caused the desync in 1.4.2. Thus we continue with another release candidate. Please give it a decent play-test, especially also in multiplayer games. If you find any issues or bugs, please tell us and make use of our bug tracker.
  2.  
  3. You find the download and changelog in the usual locations
  4.  
  5. Enjoy,
  6. Your OpenTTD team

Paste #pce1i0fem

  1. --- a/plugin.py Sun Oct 05 09:12:06 2014 +0100
  2. +++ b/plugin.py Fri Oct 10 16:31:26 2014 +0100
  3. @@ -698,7 +698,7 @@
  4.                  message.startswith('ERROR: Game Load Failed') or
  5.                  message.startswith('Content server connection') or

Paste #ptnrjye5a

  1. #!/bin/bash
  2.  
  3. if [ -z "$1" ]; then
  4.         echo "Usage: `basename $0` filename"
  5.         exit 1

Paste #paucylxwi

  1.     def test_check_general_settings_form_storage(self):
  2.         for route, info in self.forms_by_route_and_info.iteritems():
  3.             # Need to fill data again
  4.             resp = self.layer['browser'].get(self.layer['route_url'](route))
  5.             form = resp.form

Paste #ptji6mpbg

  1. #/usr/bin/env python3
  2. import pandas as pd
  3. import datetime as dt

Paste #pfbsx79gc

  1. switch(string_part2a, [STORE_TEMP, string(increasing), textstack3), STORE_TEMP(string(surplus), textstack4)] {
  2.   return string(long_version)
  3. }
  4.  
  5. switch(string_part2a, [STORE_TEMP, string(decreasing), textstack3), STORE_TEMP(string(shortage), textstack4)] {

Paste #plaovddlh

  1. planetmaker@openttd$ cat update-others.sh
  2. #!/bin/sh
  3.  
  4. # Update both git and mercurial, by checking where the commit was, and updating those repos

Paste #pdgtoka8q

  1. ~/bin/mercurial/mutable-history$ LC_ALL=C hg -R ../hg log -r .
  2. changeset:   22324:5dc91146f353
  3. branch:      stable
  4. tag:         3.1.1
  5. parent:      22322:e284de138f00

Paste #pet5l9vdq

  1. --------------------------------------------------------------------------------
  2. Profile data file 'callgrind.out.16465' (creator: callgrind-3.9.0)
  3. --------------------------------------------------------------------------------
  4. I1 cache:
  5. D1 cache: