Loading

Paste #pbftxsvuw

  1. static CargoID cargo_type_comparator;
  2. static int CDECL CompareCargoRatings(Station * const *a, Station * const *b)
  3. {
  4.     return (*b)->goods[cargo_type_comparator].rating - (*a)->goods[cargo_type_comparator].rating;
  5. }

Paste #ponrjzleh

  1. #!/usr/bin/env python3
  2. import numpy as np
  3.  
  4. # Storage needed without normal storage and 1st level 20 great storage:
  5. needed_storage = 600000

Paste #p1xjx4tqv

  1. /**
  2.  * Type safe Gnome Sort.
  3.  *
  4.  * This is a slightly modified Gnome search. The basic
  5.  * Gnome search tries to sort already sorted list parts.

Paste #pxwjx24zl

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

PSEUDO CODE

  1. static int CDECL CompareCargoRatings(Station * const *a, Station * const *b)
  2. {
  3.     return (*b)->goods[type].rating - (*a)->goods[type].rating;
  4. }

Paste #p9muhco1d

  1. Summary:
  2.                     Name ,    Ress,   Holz,   Lehm,  Eisen,   Korn,   Summe
  3.                     Kappa,   36950,  12850,  12050,  12050,  46000,   82950
  4.                   Reynard,       0,      0,      0,      0,  42525,   42525
  5.                      Obse,       0,      0,      0,      0,  40000,   40000

My English

  1. STR_CONFIG_SETTING_ACCEPT_NONINDCARGO_AT_INDSTATION             :Allow industry stations to accept cargo to other sources: {STRING2}
  2. STR_CONFIG_SETTING_ACCEPT_NONINDCARGO_AT_INDSTATION_HELPTEXT    :When disabled, stations attached to industries, such as Oil Rigs, won't accept cargo that is not accepted by the industries these stations are attached to
  3. STR_CONFIG_SETTING_ACCEPT_INDCARGO_AT_NONINDSTATION             :Allow non-industry stations to accept cargo accepted by the industry: {STRING2}
  4. STR_CONFIG_SETTING_ACCEPT_INDCARGO_AT_NONINDSTATION_HELPTEXT    :When disabled, industries with attached stations can only accept cargo their respective industries demand
  5. STR_CON

Help my Englisho

  1. STR_CONFIG_SETTING_ACCEPT_NONINDCARGO_AT_INDSTATION             :Allow industry stations to accept cargo to other sources: {STRING2}
  2. STR_CONFIG_SETTING_ACCEPT_NONINDCARGO_AT_INDSTATION_HELPTEXT    :When disabled, stations attached to industries, such as Oil Rigs, won't accept cargo that is not accepted by the industries these stations are attached to
  3. STR_CONFIG_SETTING_ACCEPT_INDCARGO_AT_NONINDSTATION             :Allow non-industry stations to accept cargo accepted by the industry: {STRING2}
  4. STR_CONFIG_SETTING_ACCEPT_INDCARGO_AT_NONINDSTATION_HELPTEXT    :When disabled, industries with attached stations can only accept cargo their respective industries demand
  5. STR_CON

Paste #pm6jcnxmb

  1. <!--! for random colour remapping  -->
  2. <tal:random_company_colour_swap condition="consist.random_company_colour_swap">
  3.     random_switch (FEAT_TRAINS, ${vehicle.location_of_random_bits_for_model_variant}, ${vehicle.id}_switch_colour_mapping) {
  4.         1: return base_sprite_2cc + 16 * company_colour2 + company_colour1; <!--! apply regular 1CC and 2CC -->
  5.         1: return base_sprite_2cc + 16 * company_colour1 + company_colour2; <!--! swap 1CC and 2CC -->

Paste #pmtjm5zum

  1.     /* Check whether this industry provides its own station */
  2.     bool oil_rig = false;
  3.     TILE_AREA_LOOP(tile_cur, ind->location) {
  4.         if (IsTileType(tile_cur, MP_INDUSTRY) && GetIndustryGfx(tile_cur) == GFX_OILRIG_1) {
  5.             TileIndex other = tile_cur + TileDiffXY(0, -1);

Paste #p40zvlxz6

  1. Index: src/economy_func.h
  2. ===================================================================
  3. --- src/economy_func.h  (revision 27929)
  4. +++ src/economy_func.h  (working copy)
  5. @@ -31,7 +31,7 @@

Paste #pjqtdciwp

  1. Index: src/economy_func.h
  2. ===================================================================
  3. --- src/economy_func.h  (revision 27929)
  4. +++ src/economy_func.h  (working copy)
  5. @@ -31,7 +31,7 @@

Paste #pyv9hcspa

  1. old:
  2.       if pixAlpha >= alpha_ignore:
  3.         for colour_id in filtered_colours_to_filter:
  4.           ..

Paste #prtavugk5

  1.         struct StationRating {
  2.             Station *st;
  3.             uint rating;
  4.         };

Paste #pempnuqzd

  1. uint MoveGoodsToStation(CargoID type, uint amount, SourceType source_type, SourceID source_id, const StationList *all_stations)
  2. {
  3.     /* Return if nothing to do. Also the rounding below fails for 0. */
  4.     if (amount == 0) return 0;
  5.     Station *st1 = NULL;   // Station with best rating