Loading

Paste #pkf1qea9r

  1. /home/alberth/corsix-th/corsix_alberth_fork/CorsixTH/Src/th_lua.cpp:425:44: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
  2.      printf("total items in table %d\n", len);
  3.                                             ^
  4. /home/alberth/corsix-th/corsix_alberth_fork/CorsixTH/Src/th_lua.cpp:427:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  5.      for (i = 1; i <= len; i++)
  6.                    ^

Paste #pnigmcyyx

  1. $  cd ~/openttd
  2. $  python3 $HOME/git.py --version
  3. What?!
  4.  
  5. $  cd ~/corsix-th

Paste #pivo85vbj

  1. Index: src/station.cpp
  2. ===================================================================
  3. --- src/station.cpp (revision 27177)
  4. +++ src/station.cpp (working copy)
  5. @@ -107,7 +107,7 @@

Paste #prtrb9a0r

  1. Index: src/station_cmd.cpp
  2. ===================================================================
  3. --- src/station_cmd.cpp (revision 27177)
  4. +++ src/station_cmd.cpp (working copy)
  5. @@ -3515,7 +3515,7 @@

Paste #pt9yiclmt

  1. Index: src/linkgraph/linkgraphschedule.cpp
  2. ===================================================================
  3. --- src/linkgraph/linkgraphschedule.cpp (revision 27177)
  4. +++ src/linkgraph/linkgraphschedule.cpp (working copy)
  5. @@ -134,11 +134,17 @@

Paste #pvhndva52

  1. diff --git a/CorsixTH/Src/th_gfx_sdl.cpp b/CorsixTH/Src/th_gfx_sdl.cpp
  2. index a989ac4..06d5cd8 100644
  3. --- a/CorsixTH/Src/th_gfx_sdl.cpp
  4. +++ b/CorsixTH/Src/th_gfx_sdl.cpp
  5. @@ -59,7 +59,7 @@ static inline uint32_t makeGreyScale(uint8_t iOpacity, uint8_t iR, uint8_t iG, u

Paste #pclchz9l5

  1. bool THRenderTarget::shouldScaleBitmaps(float* pFactor)
  2. {
  3.     if(!m_bShouldScaleBitmaps)
  4.         return false;
  5.     if(pFactor)

Paste #pv2mg1ag2

  1. /CorsixTH/Src/th_gfx_sdl.cpp:885:57: warning: conversion to 'float' from 'int' may alter its value [-Wconversion]
  2.  
  3.                                static_cast<int>(iWidth * fScaleFactor),
  4.                                                          ^

Paste #pkqeoprwa

  1. Index: src/industry_cmd.cpp
  2. ===================================================================
  3. --- src/industry_cmd.cpp    (revision 27177)
  4. +++ src/industry_cmd.cpp    (working copy)
  5. @@ -1756,8 +1756,13 @@

Paste #p2cylboxi

  1.     if (IsSavegameVersionBefore(195)) {
  2.         for (TileIndex t = 0; t < map_size; t++) {
  3.             if ((IsTileType(t, MP_STATION) || IsTileType(t, MP_WATER) || IsTileType(t, MP_OBJECT)) && GetWaterClass(t) == WATER_CLASS_CANAL) {
  4.                 assert(IsValidTile(t));
  5.                 assert(!IsTileType(t, MP_HOUSE));

HORRIBLE

  1. Index: src/industry_cmd.cpp
  2. ===================================================================
  3. --- src/industry_cmd.cpp    (revision 27177)
  4. +++ src/industry_cmd.cpp    (working copy)
  5. @@ -1756,8 +1756,13 @@

Paste #pow6kkx9d

  1. /**
  2.  * Returns the owner of a tile
  3.  *
  4.  * This function returns the owner of a tile. This cannot used
  5.  * for tiles which type is one of MP_HOUSE, MP_VOID and MP_INDUSTRY

Paste #p1lurqbzg

  1.  
  2. »» 19:44:53 < heffer> planetmaker: fixed nml 0.4.0 source tarball in sight? :D
  3. »» 19:45:14 <@planetmaker> ehm, would be 0.4.1 :)
  4. »» 19:45:23 < heffer> okay :D
  5. »» 19:48:21 <@planetmaker> heffer: can you check whether the current dev version is more to your liking? :) http://bundles.openttdcoop.org/nml/push/LATEST/ The manifest was really borked

canal owner testing

  1. Index: src/water_map.h
  2. ===================================================================
  3. --- src/water_map.h (revision 27177)
  4. +++ src/water_map.h (working copy)
  5. @@ -346,8 +346,33 @@

Paste #p20tkxsoz

  1. /**
  2.  * Comment about getting owner of canal
  3.  */
  4. static inline Owner GetCanalOwner(TileIndex t)
  5. {