Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pa5zphd3b
Show paste
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -118,7 +118,7 @@ GIT ?= git
PYTHON ?= python
Paste #padcfwqxa
Show paste
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -118,7 +118,7 @@ GIT ?= git
PYTHON ?= python
Paste #pmrtvpehn
Show paste
$ unix2dos
-q
--version
>
/
dev
/
null
2
>&
1
$
echo
$?
0
$ unixx2dos
-q
--version
>
/
dev
/
null
2
>&
1
$
echo
$?
127
Paste #pfmvn0rlm
Show paste
CalcBridgeLenCostFactor
length | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13
sum | 1 | 2 | 3 | 5 | 7 | 10 | 13 | 16 | 20 | 24 | 28 | 32 | 37
delta | - | - | 1 | 2 | 2 | 3 | 3 | 3 | 4 | 4 | 4 | 4 | 5
Paste #ptibr0ltx
Show paste
Index: src/window.cpp
===================================================================
--- src/window.cpp
(
revision 27146
)
+++ src/window.cpp
(
working copy
)
@@ -87,12 +87,10 @@
Paste #pho6l0czv
Show paste
Index: src/network/network_chat_gui.cpp
===================================================================
--- src/network/network_chat_gui.cpp
(
revision 27145
)
+++ src/network/network_chat_gui.cpp
(
working copy
)
@@ -21,6 +21,7 @@
Paste #px1iu8hht
Show paste
Index: src/statusbar_gui.cpp
===================================================================
--- src/statusbar_gui.cpp
(
revision 27145
)
+++ src/statusbar_gui.cpp
(
working copy
)
@@ -90,6 +90,11 @@
Paste #pxp1x8dsg
Show paste
Index: src/table/settings.ini
===================================================================
--- src/table/settings.ini
(
revision 27142
)
+++ src/table/settings.ini
(
working copy
)
@@ -3507,12 +3507,12 @@
Paste #phloxcurg
Show paste
2009-07-10 00:22 +0200
2009-08-11 22:19 +0200
2009-09-21 21:23 +0200
2009-12-10 22:13 +0100
2009-12-23 13:19 +0100
Paste #pwiavkdhb
Show paste
def
industries_using_cargo
(
self
,
cargo
)
:
# segmented by economy
result
=
{
}
for
economy
in
self
.
get_economies_sorted_by_name
(
)
:
accepted_by
=
self
.
industry_find_industries_active_in_economy_for_cargo
(
cargo
,
economy
,
'accept_cargo_types'
)
Paste #plbaxzxsg
Show paste
In Industry
class
:
def
__lt__
(
self
,
other
)
:
if
not
isinstance
(
other
,
Industry
)
:
return
None
# Cannot compare
Paste #pqa8wdwft
Show paste
economy_industries
=
[
]
accepted_by
=
self
.
industry_find_industries_active_in_economy_for_cargo
(
cargo
,
economy
,
'accept_cargo_types'
)
produced_by
=
self
.
industry_find_industries_active_in_economy_for_cargo
(
cargo
,
economy
,
'prod_cargo_types'
)
for
industry
in
accepted_by:
economy_industries.
append
(
industry
)
Paste #prlofnv4e
Show paste
File
"src/render_docs.py"
,
line
140
,
in
cargo_unique_industry_combinations
industry_key
=
tuple
(
sorted
(
economy_industries
)
)
TypeError
: unorderable
types
: Industry
(
)
<
IndustryTertiary
(
)
- Expression:
"doc_helper.cargo_unique_industry_combinations(cargo)"
Paste #pfugylhnz
Show paste
grf
{
grfid
:
"RS
\0
1
\0
2"
;
name
:
string
(
STR_GRF_NAME
)
;
desc
:
string
(
STR_GRF_DESCRIPTION
)
;
version
:
1
;
Paste #pw8euv3hc
Show paste
key
=
lambda
cargo: doc_helper.
get_cargo_name
(
cargo
)
key
=
doc_helper.
get_cargo_name
«
1
2
...
111
112
113
114
115
116
117
...
133
134
»