Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Attempt
Show paste
$ ./make.bat
C:\TTDTools\GRFs\Useful Sources\nutracks-c56a33a23225>gcc -C -E -I. -nostdinc -x c-header -o src/nutracks.nml src/nutracks.pnml
C:\TTDTools\GRFs\Useful Sources\nutracks-c56a33a23225>nmlc src/nutracks.nml
Error
Show paste
$ ./make.bat
C:\TTDTools\GRFs\Useful Sources\nutracks-c56a33a23225>gcc -C -E -nostdinc -x c-header -o nutracks.nml nutracks.pnml
gcc: error: nutracks.pnml: No such file or directory
gcc: warning: '-x c-header' after last input file has no effect
Paste #pqbylmyxq
Show paste
for (local type = 0; type < 9999; type++) {
if (AIAirport.IsValidAirportType(type)) {
local w = AIAirport.GetAirportWidth(type);
local h = AIAirport.GetAirportHeight(type);
local r = AIAirport.GetAirportCoverageRadius(type);
Paste #pzgax6cjj
Show paste
local
alltiles
=
AIMap
.
GetMapSize
(
)
;
for
(
local
type
=
0
;
type
<
=
8
;
type
++
)
{
for
(
local
tile
=
0
; tile < alltiles; tile
++
)
{
AIAirport
.
GetNearestTown
(
tile
,
type
)
;
}
Paste #pexnsnx62
Show paste
GNU nano 2.9.7 C:/Users/Ricardo/.gitconfig
[user]
name = Samu
email = dj_samu@hotmail.com
Paste #pfy8hd19r
Show paste
[alias]
rb = "!f() { git fetch upstream && git rebase upstream/master; }; f"
pr = "!f() { git fetch -fu ${2:-$(git remote | grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
Paste #pumazxsaf
Show paste
AirportTileTableIterator it
(
as
-
>
table
[
0
]
, tile
)
;
for
(
TileIndex cur_tile
=
it
;
cur_tile
!
=
INVALID_TILE
;
cur_tile
=
++
it
)
{
if
(
!
::
IsValidTile
(
cur_tile
)
)
return
INVALID_TOWN
;
}
Paste #pizf1oyp4
Show paste
local
alltiles
=
AIMap
.
GetMapSize
(
)
;
for
(
local
tile
=
0
; tile < alltiles; tile
++
)
{
AIAirport
.
GetNearestTown
(
AIBase
.
RandRange
(
alltiles
)
,
AIAirport
.
AT_INTERCON
)
;
}
Paste #piojqoyk3
Show paste
local
alltiles
=
AIMap
.
GetMapSize
(
)
;
for
(
local
tile
=
0
; tile < alltiles; tile
++
)
{
AIAirport
.
GetNearestTown
(
tile
,
AIAirport
.
AT_INTERCON
)
;
}
AIController
.
Break
(
"Iterated all tiles"
)
;
Paste #pwumtlbr3
Show paste
uint it_x
=
TileX
(
it
)
;
uint it_y
=
TileY
(
it
)
;
uint max_it_x
=
it_x
+
as
-
>
size_x
-
1
;
uint max_it_y
=
it_y
+
as
-
>
size_y
-
1
;
while
(
!
IsValidTile
(
TileXY
(
max_it_x, it_y
)
)
)
max_it_x
--
;
Paste #pmxvuic0n
Show paste
Town
*
AirportGetNearestTownKdTree
(
const
AirportSpec
*
as,
const
TileIterator
&
it
)
{
Town
*
nearest
=
NULL
;
if
(
Town
::
GetNumItems
(
)
==
0
)
return
nearest
;
Paste #psjlkah9v
Show paste
AILog
.
Info
(
"Checking "
+
AITown
.
GetName
(
town
)
+
"
for
an airport of
type
"
+
WrightAI
.
GetAirportTypeName
(
a
)
)
;
local
rectangleCoordinates
=
this
.
TownAirportRadRect
(
a
,
town
)
;
local
tileList
=
AITileList
(
)
;
tileList
.
AddRectangle
(
rectangleCoordinates
[
0
]
,
rectangleCoordinates
[
1
]
)
;
Paste #p9xonsoqa
Show paste
AILog
.
Info
(
"Checking "
+
AITown
.
GetName
(
town
)
+
"
for
an airport of
type
"
+
WrightAI
.
GetAirportTypeName
(
a
)
)
;
local
rectangleCoordinates
=
this
.
TownAirportRadRect
(
a
,
town
)
;
local
tileList
=
AITileList
(
)
;
tileList
.
AddRectangle
(
rectangleCoordinates
[
0
]
,
rectangleCoordinates
[
1
]
)
;
Paste #pvyuvm5d2
Show paste
$ aptitude search evolve
p evolver - Surface Evolver
p evolver-doc - Surface Evolver - doc
p evolver-nox - Surface Evolver - with no X support
p evolver-ogl - Surface Evolver - with OpenGL display
p python-pyevolve
Paste #pem5apk5e
Show paste
railtypetable {
RAIL,
ELRL,
MGLV,
METRO: [MTRO, "3RDR", ELRL],
«
1
2
...
10
11
12
13
14
15
16
...
133
134
»