Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1683 commits
Select commit Hold shift + click to select a range
18aaa96
(svn r26418) -Update from WebTranslator v3.0:
Mar 22, 2014
3d451a0
(svn r26419) -Cleanup: Remove implementation of BuildTreesWindow::OnP…
frosch123 Mar 23, 2014
f505c19
(svn r26420) -Fix (r25623) [FS#5948]: Goal GUI failed to shade.
frosch123 Mar 23, 2014
5c3b3f8
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail so…
frosch123 Mar 23, 2014
c8afee6
(svn r26423) -Fix: Don't crash when supplying an invalid filename wit…
planetmaker Mar 23, 2014
4b6f0b4
(svn r26425) -Doc: SoundFx enum
frosch123 Mar 23, 2014
65a219c
(svn r26426) -Update from WebTranslator v3.0:
Mar 24, 2014
c2ae48a
(svn r26427) -Update from WebTranslator v3.0:
Mar 25, 2014
8370162
(svn r26428) -Add [FS#5953]: Load button for heightmap list
planetmaker Mar 25, 2014
dd9158a
(svn r26429) -Update from WebTranslator v3.0:
Mar 26, 2014
393c4fa
(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in prog…
frosch123 Mar 26, 2014
a7e7ad3
(svn r26431) -Update from WebTranslator v3.0:
Mar 27, 2014
aa5f505
(svn r26432) -Codechange: deduplicate code for checking pkg-config de…
rubidium42 Mar 28, 2014
07a9086
(svn r26433) -Codechange: use pkg-config for libpng as well
rubidium42 Mar 28, 2014
6000f3c
(svn r26434) -Update from WebTranslator v3.0:
Mar 28, 2014
3e41246
(svn r26435) -Fix (r26434): linking issue on OS X
rubidium42 Mar 28, 2014
013e5d3
(svn r26436) -Update from WebTranslator v3.0:
Mar 29, 2014
f6a9889
(svn r26437) -Update from WebTranslator v3.0:
Mar 30, 2014
eede29a
(svn r26438) -Update from WebTranslator v3.0:
Mar 31, 2014
ec2159d
(svn r26441) -Update from WebTranslator v3.0:
Apr 2, 2014
6384755
(svn r26442) -Fix [FS#5962] Silence compiler warning by adding newlin…
planetmaker Apr 3, 2014
822fc7d
(svn r26443) -Fix [FS#5963]: Update documentation on how to solve the…
planetmaker Apr 3, 2014
551b0fd
(svn r26444) -Update from WebTranslator v3.0:
Apr 4, 2014
d609795
(svn r26445) -Change [FS#5961]: Draw links to match _settings_game.ve…
Apr 5, 2014
afebddc
(svn r26446) -Update from WebTranslator v3.0:
Apr 5, 2014
4ef5339
(svn r26447) -Update from WebTranslator v3.0:
Apr 8, 2014
8395c08
(svn r26448) -Fix [FS#5970]: Avoid division by 0 when scaling flow va…
Apr 8, 2014
1d8c673
(svn r26449) -Add: Allow more sound sleep for dedicated servers when …
planetmaker Apr 8, 2014
ed8f6f1
(svn r26450) -Feature: Hierarchical vehicle subgroups.
PeterN Apr 8, 2014
3ea8e22
(svn r26451) -Change: Document GroupIsInGroup() function.
PeterN Apr 8, 2014
612ccec
(svn r26452) -Update from WebTranslator v3.0:
Apr 9, 2014
1af7203
(svn r26453) -Update from WebTranslator v3.0:
Apr 10, 2014
d107b4f
(svn r26454) -Update from WebTranslator v3.0:
Apr 11, 2014
816ab7f
(svn r26455) -Change: Prompt for confirmation when deleting a vehicle…
PeterN Apr 11, 2014
74f666d
(svn r26456) -Update: Baseset translations.
planetmaker Apr 12, 2014
5c3891f
(svn r26457) -Codechange: Remove unused parameter from SetIndustryCom…
planetmaker Apr 12, 2014
c10662e
(svn r26458) -Doc: Correct a few spelling mistakes (__ln__)
planetmaker Apr 12, 2014
aeb6671
(svn r26459) -Update from WebTranslator v3.0:
Apr 12, 2014
fb4beb6
(svn r26462) -Update from WebTranslator v3.0:
Apr 13, 2014
3465686
(svn r26463) -Fix (r10190ish): Add special handling for PALETTE_CRASH…
PeterN Apr 13, 2014
ff4030b
(svn r26464) -Update from WebTranslator v3.0:
Apr 14, 2014
505297a
(svn r26465) -Update from WebTranslator v3.0:
Apr 15, 2014
a05c07b
(svn r26466) -Update from WebTranslator v3.0:
Apr 16, 2014
f2a47eb
(svn r26467) -Fix: Include shadow on ...
PeterN Apr 16, 2014
6cbe80f
(svn r26468) -Update from WebTranslator v3.0:
Apr 17, 2014
61399ad
(svn r26469) -Fix [FS#5985, FS#5986, FS#5988]: Improve english strings.
frosch123 Apr 18, 2014
9f38748
(svn r26470) -Update from WebTranslator v3.0:
Apr 18, 2014
25c26d2
(svn r26471) -Update from WebTranslator v3.0:
Apr 19, 2014
67f3c2a
(svn r26472) -Cleanup: pointless instance variable
rubidium42 Apr 20, 2014
6504817
(svn r26473) -Fix: make sure there is no uninitialised sprite data; t…
rubidium42 Apr 20, 2014
3c3f966
(svn r26474) -Cleanup: remove unneeded check for NULL
rubidium42 Apr 20, 2014
101b982
(svn r26475) -Fix: potentially undefined shifts in NewGRF code
rubidium42 Apr 20, 2014
aa7456e
(svn r26476) -Fix: prevent comparing to NULL when strndup could not a…
rubidium42 Apr 20, 2014
0c03fa3
(svn r26477) -Update from WebTranslator v3.0:
Apr 20, 2014
09e08c0
(svn r26478) -Update from WebTranslator v3.0:
Apr 21, 2014
a4e769d
(svn r26479) -Codechange: use MallocT instead of malloc
rubidium42 Apr 21, 2014
f54d141
(svn r26480) -Fix (r26479): forgot to remove a *
rubidium42 Apr 21, 2014
dd84952
(svn r26481) -Update from WebTranslator v3.0:
Apr 22, 2014
2be4215
(svn r26482) -Codechange: add an include that allows us to undefine/r…
rubidium42 Apr 23, 2014
ba66343
(svn r26483) -Fix: Allow single-vehicle consists to station-refit in …
Apr 23, 2014
547e823
(svn r26484) -Change: Remove demand calculation based on tiles.
Apr 23, 2014
24c7134
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with st…
frosch123 Apr 23, 2014
6ecc602
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
rubidium42 Apr 23, 2014
b1f6351
(svn r26487) -Codechange: use lastof instead of lengthof/sizeof for s…
rubidium42 Apr 23, 2014
a0eaaf8
(svn r26488) -Codechange: perform the appropriate length checks when …
rubidium42 Apr 23, 2014
5c7c244
(svn r26489) -Codechange: properly account for the end of buffers in …
rubidium42 Apr 23, 2014
4cc448f
(svn r26490) -Fix (r26489): compilation under Windows
rubidium42 Apr 23, 2014
1535ad6
(svn r26491) -Fix: compilation failure when networking is disabled
rubidium42 Apr 23, 2014
1ab6ab9
(svn r26492) -Fix (r26491): obviously it's too late
rubidium42 Apr 23, 2014
e2330f1
(svn r26493) -Codechange: use strecat to concatenate script settings …
rubidium42 Apr 24, 2014
a7e999e
(svn r26494) -Codechange: replace some further usages of s(n)printf w…
rubidium42 Apr 24, 2014
9c4ab4c
(svn r26495) -Update from WebTranslator v3.0:
Apr 24, 2014
aa743dc
(svn r26496) -Fix (r1547): Reading console input on dedicated server …
frosch123 Apr 24, 2014
0eda346
(svn r26497) -Fix: make sure the strgen and settingsgen code gets not…
rubidium42 Apr 24, 2014
4768fae
(svn r26498) -Add: method for duplicating strings with similar behavi…
rubidium42 Apr 24, 2014
6997793
(svn r26499) -Codechange: replace strndup with stredup
rubidium42 Apr 24, 2014
baa9dd4
(svn r26500) -Cleanup: remove unused snprintf implementation
rubidium42 Apr 24, 2014
a13ec59
(svn r26501) -Fix: Windows compilation error
rubidium42 Apr 24, 2014
982c687
(svn r26502) -Fix: OSX compilation error
rubidium42 Apr 24, 2014
b8f9579
(svn r26503) -Fix: compilation error with full debug build
rubidium42 Apr 24, 2014
efd1c31
(svn r26504) -Fix (r26499): Obiwan and his gang.
frosch123 Apr 24, 2014
3232a64
(svn r26505) -Fix (r23634, r26493): Incorrect usage of strecpy/strecat
frosch123 Apr 24, 2014
b886c8d
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
rubidium42 Apr 24, 2014
e251d82
(svn r26507) -Cleanup: remove now unused custom strndup implementation
rubidium42 Apr 25, 2014
0b15954
(svn r26508) -Codechange: use seprintf instead of a custom vstrcatpri…
rubidium42 Apr 25, 2014
034735a
(svn r26509) -Codechange: replace strdup with stredup (the latter ens…
rubidium42 Apr 25, 2014
555ee93
(svn r26510) -Codechange: use memcpy instead of strncpy in the town n…
rubidium42 Apr 25, 2014
8fff835
(svn r26511) -Codechange: use strecpy in game_text
rubidium42 Apr 25, 2014
6a9599e
(svn r26512) -Update from WebTranslator v3.0:
Apr 25, 2014
b40d6df
(svn r26513) -Fix: 9x compilation, maybe
frosch123 Apr 25, 2014
9edf5eb
(svn r26514) -Fix: rewrite link-in-tar handling so it doesn't use str…
rubidium42 Apr 25, 2014
b3ea3c4
(svn r26517) -Fix: Windows 9x (or rather non-unicode) compile failures
rubidium42 Apr 26, 2014
caffafc
(svn r26518) -Change: make genworld messages on the dedicated server …
rubidium42 Apr 26, 2014
108fec6
(svn r26519) -Update from WebTranslator v3.0:
Apr 26, 2014
e23c9b1
(svn r26520) -Change: Reword some texts, mostly setting names.
frosch123 Apr 26, 2014
707ca99
(svn r26521) -Fix-ish: prevent from ever reading huge (or negative) a…
rubidium42 Apr 26, 2014
b2c786e
(svn r26522) -Add: A config-file-only setting to disable usage of 8bp…
frosch123 Apr 27, 2014
3be8cb7
(svn r26523) -Fix [FS#5992]: OpenBSD compilation (MagisterQuis)
frosch123 Apr 27, 2014
94116f9
(svn r26524) -Remove: Soon unneeded translations.
frosch123 Apr 27, 2014
9430dfe
(svn r26525) -Remove: Screenshot format setting from GUI.
frosch123 Apr 27, 2014
f5545aa
(svn r26526) -Remove: Ability to set map generation seed via GUI. If …
frosch123 Apr 27, 2014
7a6d2e0
(svn r26527) -Codechange: Rename STR_MAPGEN_RANDOM to STR_FACE_RANDOM
frosch123 Apr 27, 2014
fffab86
(svn r26528) -Remove: A bunch of archaic settings from the advanced s…
frosch123 Apr 27, 2014
32c9d71
(svn r26529) -Merge: documentation updates from 1.4 branch
frosch123 Apr 27, 2014
5a8b286
(svn r26530) -Update from WebTranslator v3.0:
Apr 27, 2014
12fb147
(svn r26531) -Fix-ish: improve consistency of the usage of max and ma…
rubidium42 Apr 27, 2014
e811c54
(svn r26533) -Codechange: Rename some strings
frosch123 Apr 27, 2014
0fa2f90
(svn r26534) -Remove: Soon unneeded translations.
frosch123 Apr 27, 2014
6392230
(svn r26535) -Remove: Missed one
frosch123 Apr 27, 2014
90f0ba8
(svn r26536) -Change: Reshuffle advanced settings tree.
frosch123 Apr 27, 2014
39e2e5a
(svn r26537) -Update from WebTranslator v3.0:
Apr 28, 2014
beb540e
(svn r26538) -Codechange: remove double accounting of the drivers
rubidium42 Apr 28, 2014
0716625
(svn r26539) -Fix [FS#5994]: [Windows] Crash due to assuming (formerl…
rubidium42 Apr 28, 2014
e1b03c3
(svn r26540) -Update from WebTranslator v3.0:
Apr 29, 2014
9f3590c
(svn r26545) -Update from WebTranslator v3.0:
Apr 30, 2014
d49dad9
(svn r26546) -Codechange: Make order wait_time, travel_time and max_s…
May 1, 2014
c81a607
(svn r26547) -Codechange: Collect order travel and wait times indepen…
May 1, 2014
d5bd722
(svn r26548) -Codechange: move updating of load_unload_ticks out of L…
May 1, 2014
b8381b6
(svn r26549) -Change: better estimation for link capacities during fu…
May 1, 2014
d4aae15
(svn r26550) -Change: Show measured order times in timetable GUI
May 1, 2014
7c9ef44
(svn r26551) -Fix: document revision number for latest savegame versi…
May 1, 2014
0c8ecb8
(svn r26552) -Update from WebTranslator v3.0:
May 1, 2014
f9f5f7a
(svn r26553) -Update from WebTranslator v3.0:
May 2, 2014
e297f14
(svn r26554) -Fix(r26489): Use last address of the destination buffer.
Alberth289346 May 3, 2014
e364700
(svn r26555) -Update from WebTranslator v3.0:
May 3, 2014
0535569
(svn r26556) -Codechange: use sources.list to tell a file shouldn't b…
rubidium42 May 3, 2014
7836470
(svn r26557) -Fix: clean up, test (somewhat), and complete the API fo…
May 4, 2014
cee5920
(svn r26558) -Fix: be more explicit about the type of iterators in th…
May 4, 2014
82aa420
(svn r26560) -Update from WebTranslator v3.0:
May 4, 2014
38ee1c7
(svn r26563) -Fix (r26558): Don't pass explicit template arguments to…
May 4, 2014
5ca05a2
(svn r26564) -Update from WebTranslator v3.0:
May 5, 2014
121d62d
(svn r26565) -Update from WebTranslator v3.0:
May 6, 2014
a85838a
(svn r26566) -Add [FS#6009]: Give a warning when a plane's orders tel…
planetmaker May 6, 2014
597de74
(svn r26567) -Cleanup: Remove unused StringID offset in orders check
planetmaker May 6, 2014
28975c5
(svn r26568) -Change (r26566): Better wording of the new warning (Sup…
planetmaker May 6, 2014
df665a3
(svn r26569) -Update from WebTranslator v3.0:
May 7, 2014
d91d2bb
(svn r26570) -Fix: WT3 validation issue
rubidium42 May 7, 2014
c56deb6
(svn r26571) -Update from WebTranslator v3.0:
May 8, 2014
7f1fb05
(svn r26572) -Update from WebTranslator v3.0:
May 9, 2014
1a47fb0
(svn r26573) -Update from WebTranslator v3.0:
May 10, 2014
726e1b6
(svn r26574) -Fix [FS#6006]: Don't reset current order wait time if i…
May 11, 2014
1dc630f
(svn r26575) -Change [FS#5995]: Add an assert to catch underflowing a…
May 11, 2014
492c6ed
(svn r26576) -Fix [FS#6003]: [Network] AIs would not reset certain ne…
rubidium42 May 11, 2014
7db8be4
(svn r26577) -Fix [FS#6001]: [Network] Client of non-dedicated server…
rubidium42 May 11, 2014
b6ffc92
(svn r26578) -Fix (r26576): network compilation got broken
rubidium42 May 11, 2014
efa70e7
(svn r26579) -Update from WebTranslator v3.0:
May 11, 2014
fb9dbf3
(svn r26580) -Codechange: s/GES_PICKUP/GES_RATING/ (it has nothing to…
rubidium42 May 11, 2014
81c2d75
(svn r26581) -Fix [FS#5989]: transfering cargo to a station doesn't g…
rubidium42 May 11, 2014
1b11ea8
(svn r26582) -Feature-ish: quickly decay cargo after about 21 months …
rubidium42 May 11, 2014
dafbed2
(svn r26583) -Fix [FS#5974]: Game script could be changed in game by …
rubidium42 May 11, 2014
36e8123
(svn r26584) -Codechange: [Squirrel] Make the internal integer for sc…
rubidium42 May 11, 2014
ebe3c79
(svn r26585) -Fix/Feature [FS#5942]: don't truncate money to 32 bits
rubidium42 May 11, 2014
b2e322a
(svn r26586) -Fix [FS#5995]: Consider multiheaded trains in station r…
May 13, 2014
31ec113
(svn r26587) -Update from WebTranslator v3.0:
May 14, 2014
bd98b14
(svn r26588) -Update from WebTranslator v3.0:
May 15, 2014
7d2d4a1
(svn r26589) -Fix: SIGSEGV on all big endian architectures that tried…
rubidium42 May 16, 2014
20f54c2
(svn r26590) -Fix: possible desync (big/little endian) due to not wri…
rubidium42 May 16, 2014
4c6c467
(svn r26591) -Add: some instrumentation to catch most cases where the…
rubidium42 May 16, 2014
fc86ec1
(svn r26592) -Update from WebTranslator v3.0:
May 17, 2014
3e7cd6d
(svn r26593) -Fix: Goals were saved/loaded with incorrect size.
frosch123 May 17, 2014
957b7c0
(svn r26594) -Fix [FS#6006]: Don't call UpdateVehicleTimetable with d…
May 17, 2014
a53bbfd
(svn r26598) -Update from WebTranslator v3.0:
May 18, 2014
8885100
(svn r26601) -Update from WebTranslator v3.0:
May 19, 2014
6ab81f8
(svn r26602) -Update from WebTranslator v3.0:
May 20, 2014
0f01ac4
(svn r26603) -Update from WebTranslator v3.0:
May 21, 2014
7e359e1
(svn r26604) -Add: Most of the mapgen settings to advances settings w…
frosch123 May 21, 2014
f807d7f
(svn r26605) -Update from WebTranslator v3.0:
May 22, 2014
6e9edc0
(svn r26606) -Fix [FS#6022]: Filename capitalisation (NG)
frosch123 May 22, 2014
7a2d79f
(svn r26607) -Update from WebTranslator v3.0:
May 23, 2014
64d6adb
(svn r26608) -Update from WebTranslator v3.0:
May 24, 2014
dcc2da1
(svn r26609) -Fix: compile warnings on MSVC for 32 bits builds due to…
rubidium42 May 24, 2014
ac23e46
(svn r26610) -Feature: Select an editable preset name for saving.
Alberth289346 May 24, 2014
88d1d3c
(svn r26611) -Feature: Save and load grfid and md5sum of newgrfs in c…
Alberth289346 May 24, 2014
e333f0e
(svn r26612) -Add: Method to copy newgrf parameters.
Alberth289346 May 24, 2014
c24998e
(svn r26613) -Feature: Upgrade currently active newgrfs to newest ins…
Alberth289346 May 24, 2014
59a49a4
(svn r26614) -Add: Adv. settings window can handle the autosave setti…
frosch123 May 25, 2014
03b3ff7
(svn r26615) -Update from WebTranslator v3.0:
May 25, 2014
e2be6f6
(svn r26616) -Fix (r26576) [FS#6025]: First send packages about new c…
planetmaker May 25, 2014
e8d4ab8
(svn r26617) -Fix [FS#5973]: [Script] Loading/parsing of info .nuts w…
rubidium42 May 25, 2014
a8a14ca
(svn r26618) -Update from WebTranslator v3.0:
May 26, 2014
b64f543
(svn r26619) -Update from WebTranslator v3.0:
May 27, 2014
42a22d3
(svn r26620) -Update from WebTranslator v3.0:
May 28, 2014
9971990
(svn r26621) -Update from WebTranslator v3.0:
May 30, 2014
202c4eb
(svn r26622) -Codechange: Construct settings tree on the heap instead…
frosch123 Jun 1, 2014
5fd223a
(svn r26623) -Codechange: Make SettingsEntry and SettingsPage polymor…
frosch123 Jun 1, 2014
0de4294
(svn r26624) -Update from WebTranslator v3.0:
Jun 1, 2014
bb3544e
(svn r26628) -Update from WebTranslator v3.0:
Jun 3, 2014
f8def61
(svn r26629) -Fix [FS#6012]: If the video driver fails to supply a li…
frosch123 Jun 5, 2014
ac04334
(svn r26630) -Update from WebTranslator v3.0:
Jun 5, 2014
00b254a
(svn r26631) -Update from WebTranslator v3.0:
Jun 6, 2014
f9dd8b5
(svn r26632) -Fix [FS#6037]: Incorrect usage of string commands in th…
frosch123 Jun 7, 2014
941c57c
(svn r26633) -Update from WebTranslator v3.0:
Jun 7, 2014
9649cd8
(svn r26634) -Fix: 'Load' button was not properly enabled/disabled fo…
frosch123 Jun 8, 2014
608a8ce
(svn r26635) -Update from WebTranslator v3.0:
Jun 8, 2014
489f88f
(svn r26636) -Fix [FS#6026-ish]: (memory) size of variables saved for…
rubidium42 Jun 9, 2014
5cfa181
(svn r26637) -Fix [FS#6038]: segmentation fault when encountering a .…
rubidium42 Jun 9, 2014
6cdd172
(svn r26638) -Update from WebTranslator v3.0:
Jun 9, 2014
ef0bff5
(svn r26639) -Codechange: Simplify drawing early/late dates in timeta…
frosch123 Jun 10, 2014
7b3ead3
(svn r26640) -Cleanup: Remove some pointless STR_JUST_STRING detours.
frosch123 Jun 10, 2014
9d996d2
(svn r26641) -Cleanup: Remove some unused strings.
frosch123 Jun 10, 2014
6492369
(svn r26642) -Fix [FS#6037-ish]: More strings with incorrect sub-stri…
frosch123 Jun 10, 2014
cf098ef
(svn r26643) -Update from WebTranslator v3.0:
Jun 10, 2014
3c02d8f
(svn r26644) -Update from WebTranslator v3.0:
Jun 11, 2014
3a49a63
(svn r26645) -Fix: pointless zero-width character in string
rubidium42 Jun 11, 2014
ef2caa0
(svn r26646) -Fix [FS#6041]: Save locations instead of distances in l…
Jun 14, 2014
cc3627a
(svn r26647) -Update from WebTranslator v3.0:
Jun 14, 2014
21704f4
(svn r26648) -Update from WebTranslator v3.0:
Jun 15, 2014
1f9c141
(svn r26649) -Update from WebTranslator v3.0:
Jun 16, 2014
bdde955
(svn r26650) -Fix [FS#6041]: Support save/load chunk lengths of up to…
Jun 17, 2014
15c4a7e
(svn r26651) -Fix: make sure an abs is used that supports int64 when …
rubidium42 Jun 17, 2014
7f9e7b1
(svn r26654) -Fix (r26482): Header file missing from sources.list.
michicc Jun 17, 2014
6b4bae7
(svn r26655) -Update from WebTranslator v3.0:
Jun 19, 2014
796fcaa
(svn r26656) -Fix [FS#6044]: Production cheat cannot not be allowed t…
planetmaker Jun 20, 2014
9a64e4b
(svn r26657) -Add [FS#6047]: Days in dates are not represented by ord…
planetmaker Jun 20, 2014
dae08c3
(svn r26658) -Update from WebTranslator v3.0:
Jun 20, 2014
5f3bd7f
(svn r26659) -Update from WebTranslator v3.0:
Jun 21, 2014
3f19e19
(svn r26660) -Fix: CargoPacket::SourceStation() returns a StationID.
Jun 21, 2014
068c022
(svn r26661) -Update from WebTranslator v3.0:
Jun 22, 2014
d28d396
(svn r26662) -Update from WebTranslator v3.0:
Jun 23, 2014
11d737d
(svn r26663) -Update from WebTranslator v3.0:
Jun 24, 2014
5510275
(svn r26664) -Update from WebTranslator v3.0:
Jun 25, 2014
c2252ad
(svn r26665) -Update from WebTranslator v3.0:
Jun 26, 2014
e694a49
(svn r26666) -Update from WebTranslator v3.0:
Jun 28, 2014
7f28707
(svn r26667) -Update from WebTranslator v3.0:
Jun 29, 2014
f493958
(svn r26669) -Update from WebTranslator v3.0:
Jun 30, 2014
07486f9
(svn r26671) -Update from WebTranslator v3.0:
Jul 2, 2014
703ce33
(svn r26672) -Update from WebTranslator v3.0:
Jul 3, 2014
b12c4e0
(svn r26675) -Update from WebTranslator v3.0:
Jul 6, 2014
9b34aed
(svn r26676) -Update from WebTranslator v3.0:
Jul 7, 2014
2086118
(svn r26677) -Update from WebTranslator v3.0:
Jul 8, 2014
ef3ca20
(svn r26678) -Codechange: Simplify settings widget layout. (Juanjo)
frosch123 Jul 8, 2014
9d5a1b2
(svn r26679) -Codechange: VehicleListIdentifier::Pack can be const. (…
frosch123 Jul 8, 2014
8e99615
(svn r26680) -Codechange: Simplify dropdown height computation. (Juanjo)
frosch123 Jul 8, 2014
2f30a9a
(svn r26681) -Update from WebTranslator v3.0:
Jul 9, 2014
1274287
(svn r26682) -Update from WebTranslator v3.0:
Jul 10, 2014
1752ccf
(svn r26683) -Update from WebTranslator v3.0:
Jul 11, 2014
6fd3eaa
(svn r26684) -Doc: Improve Doxygen markup with a few links to a const…
Alberth289346 Jul 12, 2014
ee7700e
(svn r26685) -Fix: Tighten parameter bound checks on GSCargoMonitor f…
Alberth289346 Jul 12, 2014
3de5537
(svn r26686) -Update from WebTranslator v3.0:
Jul 13, 2014
e34fe57
(svn r26687) -Update from WebTranslator v3.0:
Jul 14, 2014
ac8ccca
(svn r26688) -Fix: WT3 validation
rubidium42 Jul 14, 2014
47b8c1a
(svn r26690) -Update from WebTranslator v3.0:
Jul 16, 2014
a7987ad
(svn r26691) -Codechange: Simplify ShowDropDownListAt (Juanjo)
frosch123 Jul 16, 2014
dbc67ef
(svn r26692) -Fix [FS#6059]: Ordering a vehicle to a competitor's rai…
frosch123 Jul 16, 2014
d563ff2
(svn r26693) -Codechange: Simplify GetOrderCmdFromTile (Juanjo)
frosch123 Jul 16, 2014
d10fe2c
(svn r26694) -Fix (r26547) [FS#6063]: When orders become invalid, res…
frosch123 Jul 16, 2014
489fac7
(svn r26695) -Fix [FS#6064]: Slovakian uses space as group separator …
frosch123 Jul 17, 2014
09e7168
(svn r26696) -Update from WebTranslator v3.0:
Jul 19, 2014
c687144
Upgrade to VS2012
AndreasKarg Jul 20, 2014
0c89743
Merge branch 'master' into slimttsep
AndreasKarg Jul 20, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
This is the license which applies to OpenTTD with the exception of some
3rd party modules. See readme.txt for details


GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Expand Down
4 changes: 2 additions & 2 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ EXCLUDE_PATTERNS = */3rdparty */.svn */script/api
EXAMPLE_PATH =
EXAMPLE_PATTERNS = *
EXAMPLE_RECURSIVE = NO
IMAGE_PATH =
IMAGE_PATH =./docs/
INPUT_FILTER =
FILTER_PATTERNS =
FILTER_SOURCE_FILES = NO
Expand Down Expand Up @@ -202,7 +202,7 @@ SKIP_FUNCTION_MACROS = YES
# Configuration::additions related to external references
#---------------------------------------------------------------------------
TAGFILES =
GENERATE_TAGFILE = openttd.tag
GENERATE_TAGFILE = objs/openttd.tag
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
Expand Down
8 changes: 6 additions & 2 deletions Makefile.bundle.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ endif
# An OSX application bundle needs the data files, lang files and openttd executable in a different location.
ifdef OSXAPP
AI_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/ai
GAME_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/game
BASESET_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/baseset
LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/lang
TTD_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/MacOS
else
AI_DIR = $(BUNDLE_DIR)/ai
GAME_DIR = $(BUNDLE_DIR)/game
BASESET_DIR = $(BUNDLE_DIR)/baseset
LANG_DIR = $(BUNDLE_DIR)/lang
TTD_DIR = $(BUNDLE_DIR)
Expand All @@ -45,6 +47,7 @@ bundle: all
$(Q)mkdir -p "$(BUNDLE_DIR)/scripts"
$(Q)mkdir -p "$(TTD_DIR)"
$(Q)mkdir -p "$(AI_DIR)"
$(Q)mkdir -p "$(GAME_DIR)"
$(Q)mkdir -p "$(BASESET_DIR)"
$(Q)mkdir -p "$(LANG_DIR)"
ifdef OSXAPP
Expand All @@ -59,6 +62,7 @@ ifeq ($(OS),UNIX)
endif
$(Q)cp "$(BIN_DIR)/$(TTD)" "$(TTD_DIR)/"
$(Q)cp "$(BIN_DIR)/ai/"compat_*.nut "$(AI_DIR)/"
$(Q)cp "$(BIN_DIR)/game/"compat_*.nut "$(GAME_DIR)/"
$(Q)cp "$(BIN_DIR)/baseset/"*.grf "$(BASESET_DIR)/"
$(Q)cp "$(BIN_DIR)/baseset/"*.obg "$(BASESET_DIR)/"
$(Q)cp "$(BIN_DIR)/baseset/"*.obs "$(BASESET_DIR)/"
Expand Down Expand Up @@ -86,9 +90,9 @@ endif
ifeq ($(TTD), openttd.exe)
$(Q)unix2dos "$(BUNDLE_DIR)/docs/"* "$(BUNDLE_DIR)/readme.txt" "$(BUNDLE_DIR)/COPYING" "$(BUNDLE_DIR)/changelog.txt" "$(BUNDLE_DIR)/known-bugs.txt"
ifeq ($(OS), DOS)
$(Q)cp "$(ROOT_DIR)/os/dos/cwsdpmi.txt" "$(BUNDLE_DIR)/docs/"
$(Q)cp "$(ROOT_DIR)/os/dos/cwsdpmi/cwsdpmi.txt" "$(BUNDLE_DIR)/docs/"
ifndef STRIP
$(Q)cp "$(ROOT_DIR)/os/dos/cwsdpmi.exe" "$(TTD_DIR)/"
$(Q)cp "$(ROOT_DIR)/os/dos/cwsdpmi/cwsdpmi.exe" "$(TTD_DIR)/"
endif
endif
endif
Expand Down
34 changes: 25 additions & 9 deletions Makefile.grf.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

ROOT_DIR = !!ROOT_DIR!!
GRF_DIR = $(ROOT_DIR)/media/extra_grf
BASESET_DIR = $(ROOT_DIR)/media/baseset
LANG_DIR = $(ROOT_DIR)/src/lang
BIN_DIR = !!BIN_DIR!!/baseset
OBJS_DIR = !!GRF_OBJS_DIR!!
OS = !!OS!!
Expand All @@ -36,6 +38,7 @@ endif

GRFCODEC := !!GRFCODEC!!
NFORENUM := !!NFORENUM!!
CC_BUILD := !!CC_BUILD!!
MD5SUM := $(shell [ "$(OS)" = "OSX" ] && echo "md5 -r" || echo "md5sum")

# Some "should not be changed" settings.
Expand All @@ -44,7 +47,7 @@ PNG_FILES := $(GRF_DIR)/*.png $(GRF_DIR)/rivers/*.png

# Build the GRF.
ifdef GRFCODEC
all: $(BIN_DIR)/openttd.grf
all: $(BIN_DIR)/openttd.grf $(BIN_DIR)/orig_dos.obg $(BIN_DIR)/orig_dos_de.obg $(BIN_DIR)/orig_win.obg $(BIN_DIR)/orig_dos.obs $(BIN_DIR)/orig_win.obs $(BIN_DIR)/no_sound.obs $(BIN_DIR)/orig_win.obm $(BIN_DIR)/no_music.obm
else
all:
endif
Expand All @@ -53,20 +56,33 @@ endif
$(OBJS_DIR)/sprites:
$(Q)-mkdir "$@"

# Generic
$(BIN_DIR)/openttd.grf: $(OBJS_DIR)/openttd.grf
$(Q)cp $(OBJS_DIR)/openttd.grf $(BIN_DIR)/openttd.grf
$(E) '$(STAGE) Updating base graphics sets'
$(Q) for grf in $(BIN_DIR)/orig*.obg; do sed 's/^OPENTTD.GRF = [0-9a-f]*$$/OPENTTD.GRF = '`$(MD5SUM) $(BIN_DIR)/openttd.grf | sed 's@ .*@@'`'/' $$grf > $$grf.tmp && mv $$grf.tmp $$grf; done
$(OBJS_DIR)/langfiles.tmp: $(LANG_DIR)/*.txt
$(E) '$(STAGE) Collecting baseset translations'
$(Q) cat $^ > $@

$(BIN_DIR)/%.obg: $(BASESET_DIR)/%.obg $(BIN_DIR)/openttd.grf $(OBJS_DIR)/langfiles.tmp $(BASESET_DIR)/translations.awk
$(E) '$(STAGE) Updating $(notdir $@)'
$(Q) sed 's/^OPENTTD.GRF = *[0-9a-f]*$$/OPENTTD.GRF = '`$(MD5SUM) $(BIN_DIR)/openttd.grf | sed 's@ .*@@'`'/' $< > $@.tmp
$(Q) awk -v langfiles='$(OBJS_DIR)/langfiles.tmp' -f $(BASESET_DIR)/translations.awk $@.tmp >$@
$(Q) rm $@.tmp

$(BIN_DIR)/%.obs: $(BASESET_DIR)/%.obs $(OBJS_DIR)/langfiles.tmp $(BASESET_DIR)/translations.awk
$(E) '$(STAGE) Updating $(notdir $@)'
$(Q) awk -v langfiles='$(OBJS_DIR)/langfiles.tmp' -f $(BASESET_DIR)/translations.awk $< >$@

# Yeah, we'd like to use -i in the sed, but Mac OS X's sed and GNU sed just can't agree on the usage of -i. In any case either one of them fails.
$(OBJS_DIR)/openttd.grf: $(PNG_FILES) $(NFO_FILES) $(OBJS_DIR)/sprites
$(BIN_DIR)/%.obm: $(BASESET_DIR)/%.obm $(OBJS_DIR)/langfiles.tmp $(BASESET_DIR)/translations.awk
$(E) '$(STAGE) Updating $(notdir $@)'
$(Q) awk -v langfiles='$(OBJS_DIR)/langfiles.tmp' -f $(BASESET_DIR)/translations.awk $< >$@

# Compile extra grf
$(BIN_DIR)/openttd.grf: $(PNG_FILES) $(NFO_FILES) $(OBJS_DIR)/sprites
$(E) '$(STAGE) Assembling openttd.nfo'
$(Q)-cp $(PNG_FILES) $(OBJS_DIR)/sprites 2> /dev/null
$(Q) gcc -I$(GRF_DIR) -C -E - < "$(GRF_DIR)/openttd.nfo" | sed -e '/^#/d' -e '/^$$/d' > $(OBJS_DIR)/sprites/openttd.nfo
$(Q) $(CC_BUILD) -nostdinc -I$(GRF_DIR) -C -E - < "$(GRF_DIR)/openttd.nfo" | sed -e '/^#/d' -e '/^$$/d' > $(OBJS_DIR)/sprites/openttd.nfo
$(Q) $(NFORENUM) -s $(OBJS_DIR)/sprites/openttd.nfo
$(E) '$(STAGE) Compiling openttd.grf'
$(Q) $(GRFCODEC) -n -s -e -p1 $(OBJS_DIR)/openttd.grf
$(Q)cp $(OBJS_DIR)/openttd.grf $(BIN_DIR)/openttd.grf

# Clean up temporary files.
clean:
Expand Down
6 changes: 2 additions & 4 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,15 @@ mrproper:
# output of profiling
$(Q)rm -f $(BIN_DIR)/gmon.out
# output of generating 'API' documentation
$(Q)rm -f $(ROOT_DIR)/openttd.tag
$(Q)rm -rf $(ROOT_DIR)/docs/source
# output of generating AI API documentation
$(Q)rm -f $(SRC_DIR)/ai/api/openttd.tag
$(Q)rm -rf $(ROOT_DIR)/docs/aidocs
$(Q)rm -rf $(ROOT_DIR)/docs/gamedocs
# directories created by OpenTTD on regression testing
$(Q)rm -rf $(BIN_DIR)/ai/regression/content_download $(BIN_DIR)/ai/regression/save $(BIN_DIR)/ai/regression/scenario
distclean: mrproper

maintainer-clean: distclean
$(Q)rm -f $(BIN_DIR)/baseset/openttd.grf
$(Q)rm -f $(BIN_DIR)/baseset/openttd.grf $(BIN_DIR)/baseset/*.obg $(BIN_DIR)/baseset/*.obs $(BIN_DIR)/baseset/*.obm

depend:
@for dir in $(SRC_DIRS); do \
Expand Down
10 changes: 5 additions & 5 deletions Makefile.lang.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ RES := $(shell mkdir -p $(BIN_DIR)/lang )

all: table/strings.h $(LANGS)

strgen_base.o: $(SRC_DIR)/strgen/strgen_base.cpp $(SRC_DIR)/strgen/strgen.h endian_host.h $(SRC_DIR)/table/control_codes.h $(SRC_DIR)/table/strgen_tables.h
strgen_base.o: $(SRC_DIR)/strgen/strgen_base.cpp $(SRC_DIR)/strgen/strgen.h endian_host.h $(SRC_DIR)/table/control_codes.h $(SRC_DIR)/table/strgen_tables.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSTRGEN -c -o $@ $<

strgen.o: $(SRC_DIR)/strgen/strgen.cpp $(SRC_DIR)/strgen/strgen.h endian_host.h $(SRC_DIR)/table/control_codes.h $(SRC_DIR)/table/strgen_tables.h
strgen.o: $(SRC_DIR)/strgen/strgen.cpp $(SRC_DIR)/strgen/strgen.h endian_host.h $(SRC_DIR)/table/control_codes.h $(SRC_DIR)/table/strgen_tables.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSTRGEN -c -o $@ $<

string.o: $(SRC_DIR)/string.cpp endian_host.h
string.o: $(SRC_DIR)/string.cpp endian_host.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSTRGEN -c -o $@ $<

alloc_func.o: $(SRC_DIR)/core/alloc_func.cpp endian_host.h
alloc_func.o: $(SRC_DIR)/core/alloc_func.cpp endian_host.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSTRGEN -c -o $@ $<

getoptdata.o: $(SRC_DIR)/misc/getoptdata.cpp $(SRC_DIR)/misc/getoptdata.h
getoptdata.o: $(SRC_DIR)/misc/getoptdata.cpp $(SRC_DIR)/misc/getoptdata.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/misc/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSTRGEN -c -o $@ $<

Expand Down
10 changes: 5 additions & 5 deletions Makefile.setting.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ endif

all: table/settings.h

settingsgen.o: $(SRC_DIR)/settingsgen/settingsgen.cpp $(SRC_DIR)/string_func.h $(SRC_DIR)/strings_type.h $(SRC_DIR)/misc/getoptdata.h $(SRC_DIR)/ini_type.h $(SRC_DIR)/core/smallvec_type.hpp
settingsgen.o: $(SRC_DIR)/settingsgen/settingsgen.cpp $(SRC_DIR)/string_func.h $(SRC_DIR)/strings_type.h $(SRC_DIR)/misc/getoptdata.h $(SRC_DIR)/ini_type.h $(SRC_DIR)/core/smallvec_type.hpp $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<

alloc_func.o: $(SRC_DIR)/core/alloc_func.cpp endian_host.h
alloc_func.o: $(SRC_DIR)/core/alloc_func.cpp endian_host.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<

getoptdata.o: $(SRC_DIR)/misc/getoptdata.cpp $(SRC_DIR)/misc/getoptdata.h
getoptdata.o: $(SRC_DIR)/misc/getoptdata.cpp $(SRC_DIR)/misc/getoptdata.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/misc/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<

string.o: $(SRC_DIR)/string.cpp endian_host.h
string.o: $(SRC_DIR)/string.cpp endian_host.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<

ini_load.o: $(SRC_DIR)/ini_load.cpp $(SRC_DIR)/core/alloc_func.hpp $(SRC_DIR)/core/mem_func.hpp $(SRC_DIR)/ini_type.h $(SRC_DIR)/string_func.h
ini_load.o: $(SRC_DIR)/ini_load.cpp $(SRC_DIR)/core/alloc_func.hpp $(SRC_DIR)/core/mem_func.hpp $(SRC_DIR)/ini_type.h $(SRC_DIR)/string_func.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<

Expand Down
16 changes: 14 additions & 2 deletions Makefile.src.in
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,22 @@ $(OBJS_C): %.o: $(SRC_DIR)/%.c $(DEP_MASK) $(FILE_DEP)
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.c=%.c)'
$(Q)$(CC_HOST) $(CFLAGS) -c -o $@ $<

$(OBJS_CPP): %.o: $(SRC_DIR)/%.cpp $(DEP_MASK) $(FILE_DEP)
$(filter-out %sse2.o, $(filter-out %ssse3.o, $(filter-out %sse4.o, $(OBJS_CPP)))): %.o: $(SRC_DIR)/%.cpp $(DEP_MASK) $(FILE_DEP)
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_HOST) $(CFLAGS) $(CXXFLAGS) -c -o $@ $<

$(filter %sse2.o, $(OBJS_CPP)): %.o: $(SRC_DIR)/%.cpp $(DEP_MASK) $(FILE_DEP)
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_HOST) $(CFLAGS) $(CXXFLAGS) -c -msse2 -o $@ $<

$(filter %ssse3.o, $(OBJS_CPP)): %.o: $(SRC_DIR)/%.cpp $(DEP_MASK) $(FILE_DEP)
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_HOST) $(CFLAGS) $(CXXFLAGS) -c -mssse3 -o $@ $<

$(filter %sse4.o, $(OBJS_CPP)): %.o: $(SRC_DIR)/%.cpp $(DEP_MASK) $(FILE_DEP)
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_HOST) $(CFLAGS) $(CXXFLAGS) -c -msse4.1 -o $@ $<

$(OBJS_MM): %.o: $(SRC_DIR)/%.mm $(DEP_MASK) $(FILE_DEP)
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.mm=%.mm)'
$(Q)$(CC_HOST) $(CFLAGS) -c -o $@ $<
Expand Down Expand Up @@ -276,7 +288,7 @@ endian_target.h: $(ENDIAN_CHECK) $(CONFIG_CACHE_ENDIAN)

$(ENDIAN_CHECK): $(SRC_DIR)/endian_check.cpp
$(E) '$(STAGE) Compiling and Linking $@'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) $< -o $@
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) $(LDFLAGS_BUILD) $< -o $@

# Revision files

Expand Down
2 changes: 1 addition & 1 deletion bin/ai/compat_0.7.nut
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/

AILog.Info("0.7 API compatability in effect:");
AILog.Info("0.7 API compatibility in effect:");
AILog.Info(" - AITown::GetLastMonthProduction's behaviour has slightly changed.");
AILog.Info(" - AISubsidy::GetDestination returns STATION_INVALID for awarded subsidies.");
AILog.Info(" - AISubsidy::GetSource returns STATION_INVALID for awarded subsidies.");
Expand Down
2 changes: 1 addition & 1 deletion bin/ai/compat_1.0.nut
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/

AILog.Info("1.0 API compatability in effect.");
AILog.Info("1.0 API compatibility in effect.");

AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation;
AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id)
Expand Down
2 changes: 1 addition & 1 deletion bin/ai/compat_1.1.nut
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/

AILog.Info("1.1 API compatability in effect.");
AILog.Info("1.1 API compatibility in effect.");

AICompany.GetCompanyValue <- function(company)
{
Expand Down
2 changes: 1 addition & 1 deletion bin/ai/compat_1.2.nut
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/

AILog.Info("1.2 API compatability in effect.");
AILog.Info("1.2 API compatibility in effect.");
2 changes: 2 additions & 0 deletions bin/ai/compat_1.3.nut
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/

AILog.Info("1.3 API compatibility in effect.");
10 changes: 10 additions & 0 deletions bin/ai/compat_1.4.nut
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* $Id$ */

/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/

AILog.Info("1.4 API compatibility in effect.");
8 changes: 8 additions & 0 deletions bin/ai/compat_1.5.nut
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* $Id$ */

/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
23 changes: 19 additions & 4 deletions bin/ai/regression/regression.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,6 @@ function Regression::Station()
print(" GetLocation(1000): " + AIStation.GetLocation(1000));
print(" GetStationID(33411): " + AIStation.GetStationID(33411));
print(" GetStationID(34411): " + AIStation.GetStationID(34411));
print(" GetCargoWaiting(0, 0): " + AIStation.GetCargoWaiting(0, 0));
print(" GetCargoWaiting(1000, 0): " + AIStation.GetCargoWaiting(1000, 0));
print(" GetCargoWaiting(0, 1000): " + AIStation.GetCargoWaiting(0, 1000));

print(" GetStationID(33411): " + AIStation.GetStationID(33411));
print(" HasRoadType(3, TRAM): " + AIStation.HasRoadType(3, AIRoad.ROADTYPE_TRAM));
print(" HasRoadType(3, ROAD): " + AIStation.HasRoadType(3, AIRoad.ROADTYPE_ROAD));
Expand All @@ -1254,6 +1250,25 @@ function Regression::Station()
print(" GetNearestTown(): " + AIStation.GetNearestTown(10000));
print(" GetNearestTown(): " + AIStation.GetNearestTown(3));

print("");
print("--CargoWaiting--");
for (local cargo = 0; cargo <= 1000; cargo += 1000) {
for (local station0 = 0; station0 <= 1000; station0 += 1000) {
print(" GetCargoWaiting(" + station0 + ", " + cargo + "): " +
AIStation.GetCargoWaiting(station0, cargo));
for (local station1 = 0; station1 <= 1000; station1 += 1000) {
print(" GetCargoWaitingFrom(" + station0 + ", " + station1 + ", " + cargo + "): " +
AIStation.GetCargoWaitingFrom(station0, station1, cargo));
print(" GetCargoWaitingVia(" + station0 + ", " + station1 + ", " + cargo + "): " +
AIStation.GetCargoWaitingFrom(station0, station1, cargo));
for (local station2 = 0; station2 <= 1000; station2 += 1000) {
print(" GetCargoWaitingFromVia(" + station0 + ", " + station1 + ", " + station2 + ", " + cargo + "): " +
AIStation.GetCargoWaitingFromVia(station0, station1, station2, cargo));
}
}
}
}

local list = AIStationList(AIStation.STATION_BUS_STOP + AIStation.STATION_TRUCK_STOP);

print("");
Expand Down
Loading