Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #paezrhq73
Show paste
class GfxClippingArea : public Backup<DrawPixelInfo>
{
public:
GfxClippingArea(const char * const file, const int line) : Backup<DrawPixelInfo>(_cur_dpi, file, line) {}
Paste #p1tainnyy
Show paste
{
GfxClippingArea clipping;
if (!clipping.Clip(r.left + WD_BEVEL_LEFT, r.top + WD_BEVEL_TOP, width, height)) break;
// draw stuff
}
Paste #pbft3mxmv
Show paste
(
OTTD_graphics
)
pdq2s-MacBook-Pro-
2
:busy-bee-gs andy $ python musa.
py
File
"musa.py"
,
line
1
SyntaxError
: Non-ASCII character
'
\x
e4'
in
file
musa.
py
on line
2
,
but no encoding declared
;
see http://www.
python
.
org
/peps/pep-
0263
.
html
for
details
Paste #pduokh7wn
Show paste
Index: src/gfx.cpp
===================================================================
--- src/gfx.cpp
(
revision 27171
)
+++ src/gfx.cpp
(
working copy
)
@@ -1636,8 +1636,11 @@
Unaffect Industry tile m1
Show paste
Index: src/industry_cmd.cpp
===================================================================
--- src/industry_cmd.cpp
(
revision 27171
)
+++ src/industry_cmd.cpp
(
working copy
)
@@ -1756,8 +1756,13 @@
Unaffect Industry tile m1
Show paste
Index: src/industry_cmd.cpp
===================================================================
--- src/industry_cmd.cpp
(
revision 27171
)
+++ src/industry_cmd.cpp
(
working copy
)
@@ -1756,8 +1756,13 @@
Unaffect Industry tile m1
Show paste
Index: src/industry_cmd.cpp
===================================================================
--- src/industry_cmd.cpp
(
revision 27171
)
+++ src/industry_cmd.cpp
(
working copy
)
@@ -1756,8 +1756,13 @@
Paste #ptabumwiq
Show paste
/* I must comment something about bit 4 */
for
(
TileIndex t
=
0
;
t
<
map_size
;
t
++
)
{
if
(
IsTileType
(
t, MP_INDUSTRY
)
&&
(
GetWaterClass
(
t
)
!
=
WATER_CLASS_CANAL
)
)
{
SB
(
_m
[
t
]
.
m1
,
4
,
1
,
1
)
;
}
}
Paste #plrxydqmr
Show paste
do
{
TileIndex cur_tile
=
tile
+
ToTileIndexDiff
(
it
-
>
ti
)
;
if
(
it
-
>
gfx
!
=
GFX_WATERTILE_SPECIALCHECK
)
{
i
-
>
location.
Add
(
cur_tile
)
;
Paste #pwhxeitqi
Show paste
do
{
TileIndex cur_tile
=
tile
+
ToTileIndexDiff
(
it
-
>
ti
)
;
if
(
it
-
>
gfx
!
=
GFX_WATERTILE_SPECIALCHECK
)
{
i
-
>
location.
Add
(
cur_tile
)
;
Paste #padnup7ox
Show paste
+ /* In diagonal crossings patch, level crossings were changed to store the rail
+ * direction, to allow for diagonal level crossings. We need to add the
+ * rail direction to all existing level crossings. */
+ if (IsSavegameVersionBefore(SLV_DIAG_CROSSINGS)) {
+ for (TileIndex t = 0; t < map_size; t++) {
Paste #p4wa2bsjj
Show paste
if
(
IsSavegameVersionBefore
(
195
)
)
{
for
(
TileIndex t
=
0
;
t
<
map_size
;
t
++
)
{
if
(
IsTileType
(
t, MP_INDUSTRY
)
)
{
SB
(
_m
[
t
]
.
m1
,
4
,
1
,
1
)
;
}
Paste #pohm0nsgs
Show paste
Index: src/table/build_industry.h
===================================================================
--- src/table/build_industry.h
(
revision 27171
)
+++ src/table/build_industry.h
(
working copy
)
@@ -293,6 +293,19 @@
Paste #p3qegpnbn
Show paste
/*
-4 -3 -2 -1 00 01 02 03 04 05 ->>> x
-4 xx xx xx xx xx xx xx xx xx xx
-3 xx xx
-2 xx xx
Paste #pjeffivhq
Show paste
/*
-4 -3 -2 -1 00 01 02 03 04 05 ->>> x
-4 xx xx xx xx xx xx xx xx xx xx
-3 xx xx
-2 xx xx
«
1
2
...
106
107
108
109
110
111
112
...
133
134
»