Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pnqztwfas
Show paste
diff --git a/src/newgrf_animation_type.h b/src/newgrf_animation_type.h
index 1f3995f46d..5ccc81d3a8 100644
--- a/src/newgrf_animation_type.h
+++ b/src/newgrf_animation_type.h
@@ -46,11 +46,12 @@ enum IndustryAnimationTrigger {
Paste #pigvrkqj9
Show paste
***************
*** 37,42 ****
#include "core/backup_type.hpp"
#include "zoom_func.h"
#include "disaster_vehicle.h"
Paste #ppmwqrmbo
Show paste
(env) OpenTTD-website.andythenorth(17)$ python fetch-downloads.py
Traceback (most recent call last):
File "fetch-downloads.py", line 11, in <module>
import aiohttp
File "/Users/andy2/workspace/buildout.python/python-3.6/lib/python3.6/site-packages/aiohttp/__init__.py", line 6, in <module>
Paste #pzscnsvpe
Show paste
modified: bin/baseset/no_sound.obs
modified: bin/baseset/orig_dos.obg
modified: bin/baseset/orig_dos.obs
modified: bin/baseset/orig_dos_de.obg
modified: bin/baseset/orig_win.obg
Paste #pgxdnm3kj
Show paste
/* ******************************************************************
* Definition of the industry tile, its callbacks, and graphics chain
* ******************************************************************/
spriteset(oil_rig_spriteset_0_0, "src/graphics/industries/groundtiles.png") {
tmpl_ground_tile(360, 10)
Paste #prkv7boyh
Show paste
Ricardo
@
FX-
8150
MINGW64
/
d
/
OpenTTD
/
OpenTTD GitHub
/
OpenTTD
(
EnsureNoShipFromDiagDirs
)
$
git fetch
upstream
Ricardo
@
FX-
8150
MINGW64
/
d
/
OpenTTD
/
OpenTTD GitHub
/
OpenTTD
(
EnsureNoShipFromDiagDirs
)
$
git rebase
upstream
/
master
Paste #px9lcajoc
Show paste
~
/ottd/OpenTTD-master$ git fetch
remote: Enumerating objects:
538
,
done.
remote
: Counting objects:
100
%
(
538
/
538
)
,
done.
remote
: Compressing objects:
100
%
(
38
/
38
)
,
done.
remote
: Total
653
(
delta
506
)
,
reused
530
(
delta
500
)
,
pack-reused
115
Paste #pl3jnl4gc
Show paste
diff --cc src/company_gui.cpp
index c62c6d61cf,f39b8229c3..0000000000
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@@ -2194,16 -2219,18 +2219,23 @@@ struct CompanyWindow : Windo
Paste #pkvoiu2fe
Show paste
/**
* Check whether growing on a half-tile coast tile ends up blocking a water connection
*
* @param tile The target tile
* @return true if building here blocks a water connection
delaunay.nut
Show paste
/**
* Usage:
* towns = GSTownList();
* towns.Valuate(GSTown.GetLocation);
* neighbours = Delaunay(towns);
Paste #p807efevu
Show paste
struct
{
TrackBits next_track_1, next_track_2
;
}
table
[
]
=
{
/* t1x,t1y,t2x,t2y, next_track_1 , next_track_2 opposite_tile */
/* CORNER_W 0, 1, -1, 0, */
{
TRACK_BIT_X
|
TRACK_BIT_RIGHT, TRACK_BIT_Y
|
TRACK_BIT_RIGHT
}
,
/* -1, 1 */
/* CORNER_S 1, 0, 0, 1, */
{
TRACK_BIT_Y
|
TRACK_BIT_UPPER, TRACK_BIT_X
|
TRACK_BIT_UPPER
}
,
/* 1, 1 */
/* CORNER_E 0, -1, 1, 0, */
{
TRACK_BIT_X
|
TRACK_BIT_LEFT , TRACK_BIT_Y
|
TRACK_BIT_LEFT
}
,
/* 1, -1 */
Paste #pmrjva0fa
Show paste
/**
* Returns the direction of a corner in relation to the centre of the tile
*
* @param corner A #Corner.
* @return The direction the corner is in relation to the center of the tile. Or INVALID_DIR if the corner is not valid.
https://imgur.com/wQuDOi5
Show paste
struct
{
TileIndexDiff opposite_tile, next_tile_1, next_tile_2
;
TrackBits opposite_track, next_track_1, next_track_2
;
}
table
[
]
=
{
{
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
}
,
{
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
}
,
{
TileDiffXY
(
1
,
-
1
)
, TileDiffXY
(
0
,
-
1
)
Paste #pnvxcsvic
Show paste
struct
{
TileIndex opposite_tile, next_tile_1, next_tile_2
;
TrackBits opposite_track, next_track_1, next_track_2
;
}
table
[
]
=
{
{
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
}
,
{
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
}
,
{
TileDiffXY
(
1
,
-
1
)
, TileDiffXY
(
0
,
-
1
)
, Ti
Paste #pvinp1p38
Show paste
case (current slope) {
N: offsetX=-1; offsetY=-1; break;
W: offsetX= 1; offsetY=-1; break;
S: offsetX= 1; offsetY= 1; break;
E: offsetX=-1; offsetY= 1; break;
«
1
2
...
20
21
22
23
24
25
26
...
133
134
»