Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pwdz0xly8
Show paste
if
(
company_id
!
=
INVALID_COMPANY
)
{
if
(
company_id
>=
MAX_COMPANIES
)
return
CMD_ERROR
;
if
(
ais_to_start
!
=
1
)
return
CMD_ERROR
;
if
(
Company
::
IsValidID
(
company_id
)
)
return
CMD_ERROR
;
}
Paste #pqbk9yybt
Show paste
if
(
company_id
!
=
INVALID_COMPANY
&&
company_id
<
MAX_COMPANIES
)
{
if
(
ais_to_start
!
=
1
||
Company
::
IsValidID
(
company_id
)
)
return
CMD_ERROR
;
}
Paste #pfuhbl0yr
Show paste
if
(
company_id
!
=
INVALID_COMPANY
)
{
if
(
company_id
>=
MAX_COMPANIES
)
return
CMD_ERROR
;
if
(
ais_to_start
!
=
1
)
return
CMD_ERROR
;
if
(
Company
::
IsValidID
(
company_id
)
)
return
CMD_ERROR
;
}
Paste #prdve2hgh
Show paste
if
(
company_id
!
=
INVALID_COMPANY
)
{
if
(
ais_to_start
!
=
1
)
return
CMD_ERROR
;
if
(
company_id
>=
MAX_COMPANIES
)
return
CMD_ERROR
;
if
(
Company
::
IsValidID
(
company_id
)
)
return
CMD_ERROR
;
}
Paste #pwxfhikif
Show paste
planetmaker
@
aeolusmaximus-vortex:
~
/ottd$ hg clone ssh://
user
@
host/path/to/repo/ottd-hg ottd-hg
Gegenseite: abort: repository requires features unknown to this Mercurial: sparserevlog
!
Gegenseite:
(
see https://mercurial-scm.
org
/wiki/MissingRequirement
for
more information
)
Abbruch: Keine passende Antwort des entfernten hg
!
planetmaker
@
aeolusmaximus-vortex:
~
/ottd$ hg --version
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
/* Count number of AI companies to start. */
uint num_to_start
=
0
;
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
help me turn this into a
Show paste
do
{
if
(
_networking
&&
num_companies
+
num_to_start
>=
_settings_client.
network
.
max_companies
)
break
;
if
(
num_ais
+
num_to_start
>=
(
uint
)
_settings_game.
difficulty
.
max_no_competitors
)
break
;
}
while
(
_settings_game.
difficulty
.
max_no_competitors
-
++
num_to_start
>
0
&&
AI
::
GetStartNextTime
(
num_to_start
)
==
0
)
;
Paste #pxgha6sev
Show paste
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm _gdbm
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
«
1
2
...
11
12
13
14
15
16
17
...
133
134
»