Loading

https://imgur.com/wQuDOi5

  1. https://imgur.com/wQuDOi5
  2.  
  3. static bool GrowingOnWateredTile(TileIndex tile)
  4. {
  5.     TrackBits water_track = TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_WATER, 0));

Paste #pigvrkqj9

  1. ***************
  2. *** 37,42 ****
  3.   #include "core/backup_type.hpp"
  4.   #include "zoom_func.h"
  5.   #include "disaster_vehicle.h"

SCPLib Message.GetBoolDat

  1. function _SCPLib_Message::GetBoolData(index)
  2. // Get bool data at the index position in Data. If Data doesn't exist or the
  3. // index is invalid, null is returned. If data exist, but is not of the type
  4. // integer, null will be returned. Yes, it is not a typo. Bools are transmitted
  5. // as integers, however this function does check that the received integer is

Paste #pbpxyn75a

  1. Changelog for default-r0.4.2:274
  2. - Feature: Vintage Air Depots and Air Stations suitable for early games with airships
  3. - Feature: Vintage Commuter airport suitable for early games.
  4. - Feature: Parameter to disable airport fences, optionally dependent on adjacent objects and/or stations; trim some trailing whitespace
  5. - Feature: Small Seaplane Airport

Paste #p0irrknxg

  1.     function GetVehicleIndex(vehicle_unitnumber, vehicle_type)
  2.     {
  3.         if (!(vehicle_unitnumber > 0 && vehicle_unitnumber <= 0xFFFF)) return INVALID_VEHICLE;
  4.         if (!(vehicle_type >= AIVehicle.VT_RAIL && vehicle_type <= AIVehicle.VT_AIR)) return INVALID_VEHICLE;

Paste #p807efevu

  1. struct { TrackBits next_track_1, next_track_2; } table[] = {
  2.     /*         t1x,t1y,t2x,t2y,              next_track_1          ,        next_track_2             opposite_tile */
  3.     /* CORNER_W  0,  1, -1,  0,  */ { TRACK_BIT_X | TRACK_BIT_RIGHT, TRACK_BIT_Y | TRACK_BIT_RIGHT }, /* -1,  1 */
  4.     /* CORNER_S  1,  0,  0,  1,  */ { TRACK_BIT_Y | TRACK_BIT_UPPER, TRACK_BIT_X | TRACK_BIT_UPPER }, /*  1,  1 */
  5.     /* CORNER_E  0, -1,  1,  0,  */ { TRACK_BIT_X | TRACK_BIT_LEFT , TRACK_BIT_Y | TRACK_BIT_LEFT  }, /*  1, -1 */

Paste #pgxdnm3kj

  1. /* ******************************************************************
  2.  * Definition of the industry tile, its callbacks, and graphics chain
  3.  * ******************************************************************/
  4.             spriteset(oil_rig_spriteset_0_0, "src/graphics/industries/groundtiles.png") {
  5.                     tmpl_ground_tile(360, 10)

Paste #pfxnncvsd

  1. /* ******************************************************************
  2.  * Definition of the industry tile, its callbacks, and graphics chain
  3.  * ******************************************************************/
  4.             spriteset(limestone_mine_spriteset_0_0) {
  5.                         [10, 310, 64, 122, -31, -88, ANIM | NOCROP, "src/graphics/industries/limestone_mine_1.png"]

Paste #pej6sox8c

  1. import sys
  2. from PIL import Image
  3.  
  4. im = Image.open(sys.argv[1])
  5. print("File: {}".format(sys.argv[1]))

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

  1. /**
  2.  * Check whether growing on a half-tile coast tile ends up blocking a water connection
  3.  *
  4.  * @param tile The target tile
  5.  * @return true if building here blocks a water connection

Paste #pl3jnl4gc

  1. diff --cc src/company_gui.cpp
  2. index c62c6d61cf,f39b8229c3..0000000000
  3. --- a/src/company_gui.cpp
  4. +++ b/src/company_gui.cpp
  5. @@@ -2194,16 -2219,18 +2219,23 @@@ struct CompanyWindow : Windo

Paste #pzscnsvpe

  1.     modified:   bin/baseset/no_sound.obs
  2.     modified:   bin/baseset/orig_dos.obg
  3.     modified:   bin/baseset/orig_dos.obs
  4.     modified:   bin/baseset/orig_dos_de.obg
  5.     modified:   bin/baseset/orig_win.obg

Paste #pnrowcvo8

  1. /* static */ VehicleID ScriptVehicle::GetVehicleID(UnitID unit_number, ScriptVehicle::VehicleType vehicle_type)
  2. {
  3.     EnforcePrecondition(INVALID_VEHICLE, vehicle_type == ScriptVehicle::VT_AIR || vehicle_type == ScriptVehicle::VT_ROAD || vehicle_type == ScriptVehicle::VT_RAIL || vehicle_type == ScriptVehicle::VT_WATER);
  4.     EnforcePrecondition(INVALID_VEHICLE, unit_number >= 0 && unit_number <= UINT16_MAX);

Paste #peqw5lkx9

  1. /* $Id$ */
  2.  
  3. /*
  4.  * This file is part of OpenTTD.
  5.  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.