truelight
347bfc7f9f
(svn r9740) -Fix [FS#709]: removed wrong assert() that could be triggered by removing an order at the wrong moment
2007-04-28 22:23:10 +00:00
maedhros
6ebe60fc17
(svn r9734) -Feature: Add an option to automatically pause when starting a new game.
2007-04-28 15:06:32 +00:00
truelight
57ad2dd0fb
(svn r9731) -Fix [FS#677]: in news history, newlines weren't replaced with spaces, making it look ugly from time to time
2007-04-28 10:41:00 +00:00
maedhros
889f2ab48c
(svn r9730) -Feature: [NewGRF] Add support for miscellaneous grf feature bit 1 - paved roads on desert tiles.
2007-04-27 21:35:02 +00:00
rubidium
e1057864d8
(svn r9729) -Documentation: add some documentation in various places
2007-04-27 21:29:36 +00:00
glx
75ba8f4489
(svn r9728) -Fix r9086: [win32] For some keyboard layout the 'console' key is a dead-key. It needs to be pressed twice to have an effect but the console is then opened and closed on the 'same' keypress (2 WM_CHAR events). So skip the first WM_CHAR generated to restore the 'console' key functionality.
2007-04-27 21:27:02 +00:00
peter1138
b02623901a
(svn r9727) -Fix (r8546): Company password field in network player info was inverted.
2007-04-27 20:50:49 +00:00
rubidium
6b37ea7b47
(svn r9726) -Fix [FS#738]: crash when destroying bridge with train partially one it.
2007-04-27 20:01:25 +00:00
rubidium
49cd2374bb
(svn r9725) -Fix [FS#743]: plane made a 270 degree turn instead of a 90 degree turn on take off from the southern runway.
2007-04-27 19:47:39 +00:00
miham
9c741dd325
(svn r9724) -Update: WebTranslator2 update to 2007-04-27 20:28:02
...
american - 2 fixed by WhiteRabbit (2)
brazilian_portuguese - 2 fixed by fukumori (2)
russian - 10 changed by HMage (10)
ukrainian - 1 changed by mad (1)
2007-04-27 18:28:44 +00:00
belugas
436cb70988
(svn r9722) -Documentation: Document some functions of town_cmd.cpp. Loosely based on work from TheJosh
...
More to come.
2007-04-27 02:27:44 +00:00
belugas
5912b08890
(svn r9721) -Codechange: -Codechange: Cleanup of industry_cmd (Step-12). Dynamically build the legends (name and color) for industries in the smallmap_gui.
...
All the tiny fonts industry names should be removed from language files soon.
2007-04-26 20:20:12 +00:00
peter1138
5577d5c86c
(svn r9720) -Codechange: Remove global var and gotos from window autoplacement
2007-04-26 17:32:54 +00:00
rubidium
b469c443e9
(svn r9719) -Fix: in-game private messages did not work for clients with a Client ID > 255.
2007-04-26 07:41:24 +00:00
peter1138
4d0483b650
(svn r9718) -Fix: Don't allow building of rail vehicles whose railtype isn't available yet. This also affects the rail purchase window.
2007-04-26 07:24:19 +00:00
peter1138
5b5598b2a6
(svn r9717) -Codechange: (NewGRF) Skip Action 5 & A sprites in all loading stages except activation.
2007-04-26 06:49:32 +00:00
glx
c1b898392e
(svn r9716) -Add: server_lang in [network] section of openttd.cfg, so dedicated servers can have the little lang flag.
2007-04-25 17:40:06 +00:00
miham
78e542a62e
(svn r9715) -Update: WebTranslator2 update to 2007-04-24 21:45:15
...
italian - 2 changed by lorenzodv (2)
portuguese - 9 fixed by izhirahider (9)
russian - 3 fixed, 328 changed by HMage (331)
simplified_chinese - 7 fixed by Fishingsnow (7)
traditional_chinese - 1 changed by xbddc (1)
2007-04-24 19:45:59 +00:00
peter1138
1164c275af
(svn r9714) -Fix (r8110): Remove invalid assertion triggered by overly long trains being reversed while loading.
2007-04-24 19:05:16 +00:00
peter1138
fa180a15cc
(svn r9712) -Codechange: Implement accepted cargo types and cargo acceptance (there is a difference) callbacks for newhouses.
2007-04-21 20:23:20 +00:00
truelight
a5b77fad87
(svn r9711) -Fix: don't include one system-header-file on MorphOS as it gives silly warnings and is unneeded for OpenTTD
2007-04-21 13:20:20 +00:00
maedhros
ac0c371d5a
(svn r9709) -Fix (r9706): Larger towns use t->larger_towns, not the town index.
2007-04-21 08:51:42 +00:00
peter1138
e5a314399a
(svn r9707) -Codechange: Add some support for NewGRF var 7D, temporary storage array.
2007-04-21 07:27:16 +00:00
peter1138
01ae38e3d7
(svn r9706) -Codechange: Support NewGRF town var 40 'largertowns' variable properly.
2007-04-21 07:17:14 +00:00
belugas
3a1e7679d8
(svn r9705) -Codechange: Merge some data arrays together, making a bit more logical units.
...
Calculate with a macro (for _industry_anim_offs_toys) the value of x, instead of doing it at run time.
And give some more descriptive names too...
2007-04-21 02:47:33 +00:00
belugas
803b073c59
(svn r9704) -Documentation: Add comments on industry data macro
2007-04-21 02:42:51 +00:00
peter1138
1052b0e8f1
(svn r9703) -Codechange: support callback 36 in vehicle purchase lists
2007-04-20 21:42:06 +00:00
peter1138
15bfaba259
(svn r9702) -Codechange: Add livery support to newgrf vehicle var 43
2007-04-20 21:21:47 +00:00
peter1138
a4b3066433
(svn r9701) -Codechange: Add support for returning 'ttdpatch variables' - http://wiki.ttdpatch.net/tiki-index.php?page=ActionDSpecialVariables
2007-04-20 21:19:28 +00:00
KUDr
d0de381c30
(svn r9697) -Fix [YAPF](r9694): 'unused variable' warning (glx)
2007-04-20 19:43:06 +00:00
KUDr
3df2656633
(svn r9694) -Fix [YAPF][FS#736]: the guessed path (when PF stopped on max. # of nodes passed) was ignored for ships (desolator)
2007-04-20 19:19:23 +00:00
KUDr
4728765870
(svn r9693) -Codechange [YAPF]: GetBestNode() now returns pointer to node instead of reference
2007-04-20 19:13:35 +00:00
rubidium
17dc1c6336
(svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a non-existing station.
2007-04-20 17:52:28 +00:00
peter1138
98fe82da66
(svn r9691) -Fix (r9683): Forgotten savegame bump...
2007-04-20 17:26:10 +00:00
peter1138
8e457248a7
(svn r9690) -Codechange: Update another couple of NewGRF TTDPatch flags
2007-04-20 17:23:33 +00:00
bjarni
aa0e97e3ce
(svn r9689) -Fix: Clone vehicles will no longer refit for free
2007-04-20 17:08:55 +00:00
bjarni
73875647b5
(svn r9688) -Codechange: Created a function to get default cargo type for a cargo type
2007-04-20 16:56:55 +00:00
miham
afea22e013
(svn r9687) -Update: WebTranslator2 update to 2007-04-20 17:51:25
...
romanian - 2 fixed by kneekoo (2)
simplified_chinese - 9 fixed by Fishingsnow (9)
slovak - 2 fixed by lengyel (2)
slovenian - 2 fixed by Necrolyte (2)
traditional_chinese - 2 changed by xbddc (2)
2007-04-20 15:52:07 +00:00
peter1138
67529d2e63
(svn r9686) -Codechange: Update a couple of NewGRF TTDPatch flags
2007-04-20 15:03:58 +00:00
maedhros
034f3591cf
(svn r9685) -Fix (r9683): Call v->LeaveStation() when a vehicle in a station is sent to a depot.
2007-04-20 11:39:01 +00:00
maedhros
8b65349d86
(svn r9684) -Fix (r9683): Remove vehicles from the station loading list instead of adding
...
them again when they leave, and add a v->LeaveStation() call for aircraft.
2007-04-20 11:05:56 +00:00
rubidium
fdf86bb4a2
(svn r9683) -Fix [FS#423]: improved loading does not use a huge amount of processing power anymore when having a lot of trains.
2007-04-20 08:00:30 +00:00
peter1138
a8350e5fdf
(svn r9682) -Codechange: Add support for saving/loading std::lists containing object references (REF_*)
2007-04-20 07:51:20 +00:00
miham
20f22f021c
(svn r9681) [Translations] -Fix: removed two unnecessary colons from the finnish translations (spotted by ln-)
2007-04-19 19:19:53 +00:00
miham
7e63ff86e1
(svn r9680) -Update: WebTranslator2 update to 2007-04-19 21:10:21
...
bulgarian - 2 fixed by thetitan (1), kokobongo (1)
czech - 2 fixed by joeprusa (2)
danish - 2 fixed by ThomasA (2)
dutch - 2 fixed, 1 changed by habell (3)
esperanto - 2 fixed by LaPingvino (2)
estonian - 2 fixed by vermon (2)
finnish - 2 fixed by habazi (2)
german - 3 fixed by Neonox (3)
italian - 18 fixed, 2 changed by lorenzodv (20)
japanese - 10 fixed by ickoonite (10)
norwegian_bokmal - 27 fixed by oletk (27)
polish - 10 fixed by meush (10)
russian - 2 fixed by HMage (2)
spanish - 2 fixed by jfrank (2)
traditional_chinese - 2 fixed by xbddc (2)
turkish - 11 fixed by jnmbk (11)
ukrainian - 2 fixed, 5 changed by fevral13 (7)
2007-04-19 19:11:24 +00:00
belugas
15a2c71a01
(svn r9679) -Codechange: use enums to identify transparency widgets and add a bit of documentation (patch by Wolf01)
2007-04-19 18:51:40 +00:00
peter1138
a40d53d8d1
(svn r9678) -Codechange: Support changing of aircraft running cost via callback 36.
2007-04-19 18:49:40 +00:00
peter1138
0552b19225
(svn r9677) -Codechange: Make the 'transparent buildings' menu item toggle all transparency, to keep its old behaviour.
2007-04-19 17:54:45 +00:00
belugas
95ae29b470
(svn r9676) -Codechange: introduce NUM_INDUSTRYTYPES instead of IT_END.
...
This makes the code clearer.
2007-04-19 14:50:01 +00:00
rubidium
2dc5589290
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
2007-04-18 22:41:53 +00:00
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
peter1138
41cf2fa69b
(svn r9671) -Codechange: Implement NewGRF callback 36, which allows changing of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.
2007-04-18 18:37:40 +00:00
rubidium
aa284fd531
(svn r9670) -Documentation: add documentation to some the _map files.
2007-04-18 18:20:31 +00:00
belugas
4eb87ac62b
(svn r9669) -Documentation: some more doxygen fixes
2007-04-18 18:00:33 +00:00
miham
7789eef209
(svn r9668) -Update: WebTranslator2 update to 2007-04-18 19:27:38
...
catalan - 2 fixed by arnaullv (2)
french - 2 fixed, 2 changed by glx (4)
hungarian - 2 fixed by miham (2)
korean - 2 fixed by darkttd (2)
swedish - 2 fixed, 1 changed by daishan (3)
2007-04-18 17:28:22 +00:00
maedhros
16a948a463
(svn r9667) -Feature: Add the concept of cities. A (configurable) proportion of towns can
...
start off larger, and will grow twice as quickly as other towns. They can also
be placed specifically in the scenario editor. Thanks to TheJosh for the
initial patch and the idea.
2007-04-18 14:23:30 +00:00
peter1138
4b7c59fce1
(svn r9666) -Fix (r9651): end of data / column flags were reversed
2007-04-18 07:22:53 +00:00
belugas
d6651c1741
(svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections...
2007-04-18 00:41:09 +00:00
belugas
addcae43fa
(svn r9664) -Documentation: Doxygen corrections,errors and omissions
2007-04-17 21:09:38 +00:00
belugas
607a55f4ec
(svn r9662) -Documentation: Doxygen corrections and @file omissions
2007-04-17 20:23:13 +00:00
belugas
c39ab93daa
(svn r9658) -Codechange: CT_FOOD is not part of temperate climate, place it accordingly in arctic.
...
It could be put in tropic too, but it can be placed in both, so first to catch it...
2007-04-17 19:08:00 +00:00
peter1138
2b2cfaeec1
(svn r9655) -Revert (r9094 partial): *Do* calculate refit masks for unavailable vehicle types... things like articulated engines can still build these parts... ... ... dot dot dot
2007-04-17 17:54:31 +00:00
maedhros
2a32b3b8db
(svn r9654) -Fix: Add string colours for the DOS palette and use them when playing with the DOS data files.
2007-04-17 10:08:17 +00:00
belugas
792339554f
(svn r9653) -Codechange: Indicate the proper function names in the GRF messages
2007-04-16 20:56:19 +00:00
belugas
44143b8cdb
(svn r9652) -Fix(r9651): "const" keyword forgotten. Spotted by glx.
...
I guess i'm a bit eager to have a writable array for newindustries ;)
2007-04-16 19:55:17 +00:00
belugas
a5bd48b23d
(svn r9651) -Codechange: make legend system of smallmap a little bit less magic with the help of a struct and not an array of bytes
2007-04-16 19:44:22 +00:00
belugas
fc6cf587cd
(svn r9650) -Documentation: Finalize doxygen comments for town_land.h
2007-04-16 19:26:01 +00:00
miham
87e3e48ef0
(svn r9649) -Update: WebTranslator2 update to 2007-04-16 18:55:24
...
brazilian_portuguese - 8 fixed by fukumori (8)
dutch - 8 fixed by habell (8)
estonian - 11 fixed by kristjans (11)
italian - 25 changed by lorenzodv (25)
2007-04-16 16:56:04 +00:00
maedhros
0ec51d51b0
(svn r9648) -Codechange: Use HASBIT directly rather than shifting and then using it on the first bit.
2007-04-16 10:59:35 +00:00
maedhros
720842ba91
(svn r9647) -Fix (r6631) [FS#733]: Select "Custom" in the difficulty settings gui when changing a setting. (Frostregen)
2007-04-16 10:30:31 +00:00
peter1138
229eb8cba5
(svn r9646) -Fix (r9645): incorrect count in error message for airport graphics
2007-04-16 08:31:00 +00:00
peter1138
15e112c290
(svn r9645) -Feature: Add NewGRF Action 5 (Sprite Replacement) support for 2cc colour maps, airport, and road stop sprites.
2007-04-16 06:35:10 +00:00
belugas
cc647a08a0
(svn r9644) -Codechange: if else cascade into a switch case
2007-04-16 02:56:48 +00:00
belugas
61c99f99a2
(svn r9643) -Codechange: Simplify a test.
2007-04-16 02:53:55 +00:00
belugas
83c269d071
(svn r9642) -Documentation: Having a different macro name for _original_house_specs (MS) than for _town_tile_data (M) might teach doxygen that we are dealing with two entities...
2007-04-16 02:47:01 +00:00
rubidium
e17209b3cc
(svn r9641) -Fix (r7182): namegen.cpp was not UTF-8, which caused artefacts in Finnish town names.
2007-04-15 22:30:26 +00:00
miham
071e466609
(svn r9640) -Update: WebTranslator2 update to 2007-04-15 19:49:19
...
swedish - 23 fixed by giddorah (23)
traditional_chinese - 336 changed by xbddc (336)
2007-04-15 17:51:23 +00:00
peter1138
49eb9b6fad
(svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader.
2007-04-15 16:20:35 +00:00
miham
24e95eb2cd
(svn r9633) -Update: WebTranslator2 update to 2007-04-15 08:06:47
...
american - 8 fixed by WhiteRabbit (8)
bulgarian - 8 fixed by thetitan (8)
catalan - 8 fixed by arnaullv (8)
czech - 8 fixed by Hadez (8)
danish - 8 fixed by MiR (8)
esperanto - 8 fixed, 2 changed by LaPingvino (10)
estonian - 8 fixed by t2t2 (8)
finnish - 8 fixed by habazi (8)
french - 8 fixed by glx (8)
german - 18 fixed by Neonox (18)
italian - 16 fixed, 847 changed by lorenzodv (863)
japanese - 6 fixed, 5 changed by PouncingAnt (11)
korean - 8 fixed by darkttd (6), leejaeuk5 (2)
romanian - 8 fixed by kneekoo (8)
russian - 8 fixed by HMage (8)
slovak - 8 fixed by lengyel (8)
slovenian - 8 fixed by Necrolyte (8)
spanish - 8 fixed by eusebio (8)
traditional_chinese - 8 fixed by thomasau (8)
ukrainian - 8 fixed by mad (8)
2007-04-15 06:12:13 +00:00
peter1138
01ef0284cb
(svn r9621) -Codechange: implement newgrf house property 1E (cargo types)
2007-04-13 21:18:48 +00:00
peter1138
59399480b3
(svn r9620) -Codechange: apply cargo translation table to newstation variables 0x60..0x65
2007-04-13 19:32:18 +00:00
belugas
39735f7b54
(svn r9619) -Documentation: Comments on drawing arrays of houses and industries
2007-04-13 17:15:06 +00:00
peter1138
b5b7b489ce
(svn r9617) -Codechange: Implement callback for cargo profit calculation
2007-04-12 19:33:05 +00:00
maedhros
b962cc911d
(svn r9616) -Cleanup: Remove the NS setting type since it causes desyncs in multiplayer mode and only serves to confuse patch authors.
2007-04-12 18:36:54 +00:00
miham
10d4bfa2a7
(svn r9615) -Update: WebTranslator2 update to 2007-04-12 20:22:06
...
hungarian - 8 fixed by miham (8)
italian - 21 fixed, 707 changed by lorenzodv (728)
japanese - 11 fixed by ickoonite (11)
2007-04-12 18:24:44 +00:00
maedhros
39b193efb6
(svn r9614) -Feature: Use the normal growth rate values when the growth rate is set to none and "Fund new buildings" is used.
2007-04-12 18:23:47 +00:00
maedhros
61fe356880
(svn r9613) -Feature: Make it possible to have some control over the town growth. The
...
default rate is TTD's original rate, and to approximate OpenTTD's previous
behaviour the rate should be set to "Fast" or "Very Fast". Town growth can be
switched off entirely, and if so, buildings will not be rebuilt. It is also
possible to specify a proportion of towns that grow twice as fast as the
others.
2007-04-12 17:24:34 +00:00
maedhros
ccaaa7d33a
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
2007-04-12 13:07:15 +00:00
peter1138
8cdec9a2ab
(svn r9602) -Fix (r5833): Building rail on steep slopes ignored build_on_slopes patch setting.
2007-04-12 06:16:46 +00:00
peter1138
69982b1f01
(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID
2007-04-11 21:04:03 +00:00
peter1138
b47078d690
(svn r9598) -Fix (r9563): brainfart? in elrail transparency. who knows...
2007-04-11 20:42:13 +00:00
peter1138
91c407bd37
(svn r9597) -Codechange: Exclude sign transparency when toggling all options on/off
2007-04-11 20:14:11 +00:00
peter1138
23d9d6cfb4
(svn r9596) -Fix (r9563): (non-)transparency of station signs was confused with building transparency...
2007-04-11 20:13:32 +00:00
peter1138
9e967ed6bf
(svn r9595) -Fix (r9563): Transparency hotkeys didn't work
2007-04-11 20:03:05 +00:00
belugas
e161e60af6
(svn r9590) -Fix(r9550, fs728): some wrongfully entered data caused some industries to appear where they should not have
2007-04-10 20:58:04 +00:00
miham
e34df4f3ad
(svn r9585) -Update: WebTranslator2 update to 2007-04-10 14:52:27
...
romanian - 26 fixed, 7 changed by kneekoo (33)
turkish - 11 fixed by jnmbk (11)
2007-04-10 12:55:08 +00:00
maedhros
afc3da5fc8
(svn r9581) -Revert (r9562): This broke as much as it fixed, so revert until a proper way of paying for refits when cloning can be found.
2007-04-10 09:01:56 +00:00
belugas
82ad5a6d9c
(svn r9580) -Documentation: Correction of doxygen function declarations
2007-04-09 15:06:24 +00:00
belugas
ec03c72afb
(svn r9579) -Codechange: Cleanup of industry_cmd (Step-11). Use industry's spec appear_creation during random map creation.
2007-04-09 01:43:29 +00:00
belugas
93acc50678
(svn r9578) -Codechange: Cleanup of industry_cmd (Step-10). Use industry's spec map_colour for smallmap industry color code drawing
2007-04-09 01:14:43 +00:00
belugas
cdb910d64b
(svn r9577) -Codechange: Add notion and data for industry map colour, used in the smallmap_gui. Not used yet.
...
-Move the check proc array, in order to make it more useful latter.
-Add basic newGRF stuff on the industry spec. Not used yet.
2007-04-09 01:08:11 +00:00
miham
039720650a
(svn r9576) -Update: WebTranslator2 update to 2007-04-08 19:22:55
...
american - 15 fixed by WhiteRabbit (15)
polish - 1 changed by meush (1)
2007-04-08 17:24:10 +00:00
belugas
12addc1bbe
(svn r9574) -Fix(r9520, FS#721): Oil Rig ( or industry with behaviour INDUSTRYBEH_BUILT_ONWATER) should check all tiles before leaving the test. A tile in water does not ensure that all required tiles will necessary be on water.
2007-04-08 00:29:12 +00:00
glx
6b35482c8d
(svn r9573) -Fix: enclose settings names containing spaces (like newgrf paths) with quotes
2007-04-07 22:30:10 +00:00
miham
cb431a6a3e
(svn r9572) [Translations] -Fix: (r9571) strange problem fixed in galician language header
2007-04-07 20:26:12 +00:00
miham
78a3c51423
(svn r9571) -Update: WebTranslator2 update to 2007-04-07 22:18:15
...
danish - 15 fixed by MiR (15)
galician - 14 fixed by Condex (14)
portuguese - 6 fixed by izhirahider (6)
russian - 10 fixed by HMage (10)
simplified_chinese - 9 fixed by Fishingsnow (9)
slovenian - 15 fixed by Necrolyte (15)
2007-04-07 20:21:03 +00:00
miham
558a6267fd
(svn r9570) -Update: WebTranslator2 update to 2007-04-06 19:21:04
...
brazilian_portuguese - 14 fixed by fukumori (14)
bulgarian - 13 fixed by thetitan (10), groupsky (3)
catalan - 13 fixed by arnaullv (13)
czech - 9 fixed by Hadez (9)
dutch - 13 fixed by habell (13)
esperanto - 13 fixed by LaPingvino (13)
finnish - 15 fixed by habazi (15)
french - 9 fixed by glx (9)
frisian - 99 fixed by ikkejw (99)
german - 6 fixed by moewe2 (6)
hungarian - 9 fixed by miham (9)
italian - 13 fixed by lorenzodv (13)
korean - 15 fixed by darkttd (15)
norwegian_nynorsk - 9 fixed by khaavik (9)
polish - 16 fixed, 1 changed by meush (17)
russian - 6 fixed, 3 changed by HMage (9)
slovak - 9 fixed by lengyel (9)
spanish - 15 fixed by eusebio (15)
traditional_chinese - 15 fixed, 5 changed by xbddc (20)
ukrainian - 9 fixed by mad (9)
2007-04-06 17:30:17 +00:00
belugas
1c97841ff6
(svn r9569) -Fix(r9567): testing mode leftover...
2007-04-06 12:57:15 +00:00
belugas
d4d5ce7ee5
(svn r9568) -Documentation: doxygen and comment changes: Root of src is finally done. Now, time to start clearing as much as possible
2007-04-06 04:10:19 +00:00
belugas
15d360c7f6
(svn r9567) -Fix(9555, FS#718): The industry ID been collected was just an index in a out of phase array. Now, ensure that the ID will really be an IndustryType
2007-04-06 02:12:15 +00:00
peter1138
39f92d1f21
(svn r9565) -Feature: Add list_patches console command. This shows all patches along with their current values. Based on patch by madman2003/GrimRC.
2007-04-05 12:59:57 +00:00
peter1138
614dd12f21
(svn r9564) -Fix (r9563): When adding files remember to add them...
2007-04-05 09:07:20 +00:00
peter1138
a2cec54c9d
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
2007-04-05 07:49:04 +00:00
maedhros
abf88b687c
(svn r9562) -Fix: When cloning, pay for the refit costs as well.
2007-04-04 14:21:46 +00:00
rubidium
3b8dd00bae
(svn r9561) -Fix (r9561): loading the newgrfs in openttd.cfg was broken.
...
Note: as the 'full' path is stored of the newgrfs, the newgrfs in the old cfgs are not made default (you have to set them again).
2007-04-04 12:43:43 +00:00
rubidium
db91588845
(svn r9560) -Codechange: add support for multiple 'base' directories for newgrf searching.
...
-Codechange: do not add duplicate files to the newgrf list.
2007-04-04 12:03:10 +00:00
belugas
a1b7fb8909
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
2007-04-04 04:08:47 +00:00
belugas
f81217bcf4
(svn r9558) -Documentation: doxygen and comment changes: 'T' now. Almost done
2007-04-04 03:21:14 +00:00
belugas
dfe5533db6
(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near
2007-04-04 01:35:16 +00:00
belugas
f12d1a3f0a
(svn r9555) -Codechange: Cleanup of industry_cmd (Step-9). Use in-game appearing chances for industry creation.
2007-04-04 00:32:40 +00:00
rubidium
a403f32e59
(svn r9554) -Documentation: add documentation to some map accessors.
2007-04-03 21:51:40 +00:00
rubidium
d2634aaeec
(svn r9553) -Documentation: fix ambiguity issue.
2007-04-03 19:19:04 +00:00
belugas
64f2e6ef07
(svn r9552) -Documentation: Some more doxygen work, adding comments too
2007-04-03 17:19:06 +00:00
belugas
56943ab584
(svn r9551) -Documentation: Some more doxygen work
2007-04-03 16:12:28 +00:00
belugas
0d691539a4
(svn r9550) -Codechange: Add notion and data of industry appearing chances, both in game and in creation mode.
...
Not used yet.
2007-04-03 00:13:59 +00:00
belugas
b1e0fdfd2a
(svn r9549) -Codechange: Add definition of callbacks and callback masks for both industries and industry tiles
2007-04-03 00:01:18 +00:00
miham
b13086bfee
(svn r9548) [Translations] -Fix: Fixed empty strings added by WT2 [note to self: really should fix this old bug in WT2]
2007-04-02 19:47:36 +00:00
miham
517225935b
(svn r9547) -Update: WebTranslator2 update to 2007-04-02 21:37:30
...
brazilian_portuguese - 2 fixed by tucalipe (2)
bulgarian - 2 fixed by thetitan (2)
catalan - 2 fixed by arnaullv (2)
czech - 6 fixed by Hadez (6)
dutch - 2 fixed by habell (2)
esperanto - 2 fixed, 1 changed by LaPingvino (3)
estonian - 4 fixed by t2t2 (4)
french - 6 fixed by glx (6)
hungarian - 7 fixed by miham (7)
italian - 2 fixed by lorenzodv (2)
norwegian_bokmal - 12 fixed by oletk (12)
slovak - 6 fixed by lengyel (6)
ukrainian - 6 fixed by mad (6)
2007-04-02 19:38:24 +00:00
rubidium
48c23d27f3
(svn r9546) -Fix (r9545): several typos...
2007-04-02 15:08:36 +00:00
belugas
d58f9ef7b4
(svn r9545) -Documentation: Some corrections to previous doxygen work
2007-04-02 14:20:31 +00:00
maedhros
e2cd1fedf7
(svn r9544) -Cleanup (r9543): Remove unused strings.
2007-04-02 11:38:52 +00:00
maedhros
eae03e0f72
(svn r9543) -Fix [FS#691]: Split up STR_ENGINE_NOT_BUILDABLE into four strings so it can be
...
translated properly and remove "buildable", since it isn't actually a word.
2007-04-02 11:35:08 +00:00
belugas
65bc46082e
(svn r9542) -Fix(FS# 712): When checking if a vehicle is on a given tile, and you are working on the ground tile, do not take aircrafts into account, as they do not pose any danger for the construction/destruction/conversion itself. Z stuff, in other words
2007-04-01 11:11:49 +00:00
celestar
191ea4b1ba
(svn r9541) -Codechange: Safeguard the company-buying routines so that the buying player and the bought player need to be two different entities
2007-04-01 10:55:31 +00:00
celestar
e3f1914de0
(svn r9540) -Fix (r1): Bankrupt AIs no longer buy themselves (usage of wrong variable)
2007-04-01 10:54:31 +00:00
truelight
32c3ba6604
(svn r9533) -Fix [FS#274]: when a company is removed (either via auto-clean, bankrupt, or take over), sell all the shares he has first, then sell the shares all people have on this company, and then remove the company.
2007-03-31 12:19:22 +00:00
maedhros
9c88baee67
(svn r9532) -Fix (r8741) [FS#708]: Make errors when building drive through road stops more descriptive.
2007-03-31 09:53:40 +00:00
maedhros
3ac05f25db
(svn r9531) -Fix (r8661) [FS#692]: The scroll settings were wrong for trains as only a part
...
of the window should be horizontally scrollable, not all of it. This lead to
wagons without an engine overflowing the window and not being able to scroll to
the end of a train if there was an engine attached.
2007-03-31 08:24:05 +00:00
belugas
377fbf9eb7
(svn r9530) -Codechange: Replace a direct industry type access by a behaviour
2007-03-31 01:16:17 +00:00
truelight
a764888619
(svn r9529) -Fix [FS#705]: when 2 clients joined together, the second asserted on the NewCompany command of the first
2007-03-30 22:17:47 +00:00
glx
94b3ea7b34
(svn r9528) -Fix r8610: don't try to modify non-existent widgets (many thanks to Bruce Perence, the libefence developer)
2007-03-30 21:58:38 +00:00
miham
70a73fceab
(svn r9527) -Update: WebTranslator2 update to 2007-03-30 19:44:17
...
slovenian - 2 fixed by Necrolyte (2)
2007-03-30 17:44:51 +00:00
belugas
77b3767f2f
(svn r9526) -Fix(9520): a temperate sawmill is not a tropic lumber mill. Thus, it cannot cut trees
2007-03-30 13:51:03 +00:00
miham
7a57ae4968
(svn r9525) -Update: WebTranslator2 update to 2007-03-29 19:56:13
...
estonian - 3 fixed, 4 changed by kristjans (7)
finnish - 2 fixed by pallokala (2)
italian - 1 changed by lorenzodv (1)
traditional_chinese - 1 changed by xbddc (1)
turkish - 12 fixed by jnmbk (12)
2007-03-29 17:59:24 +00:00
celestar
a1ab0d29fe
(svn r9524) -Fix(FS#640,r8755): Implemented a "dummy" State Machine for stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts)
2007-03-29 13:52:34 +00:00
belugas
386e298acd
(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"
2007-03-28 20:41:35 +00:00
belugas
72fc068844
(svn r9520) -Codechange: Add the notion of Industry behaviour. It means what an industry can do (plant fields, cut trees, do not change production), what can be done to it (disasters like mine subsidence, jet/chopper attack), when it can be built etc...
2007-03-28 20:06:28 +00:00
glx
29b2455761
(svn r9519) -Fix r7406 (revert r9518): free the malloced variable, not a pointer to that variable. Also free it if there's any error.
2007-03-28 14:31:52 +00:00
rubidium
5d3c610ab5
(svn r9518) -Fix [Windows]: do not free an uninitialized pointer.
2007-03-28 09:27:38 +00:00
maedhros
c25d539543
(svn r9476) -Codechange: Make build windows for all vehicle types the same width.
2007-03-26 12:28:44 +00:00
maedhros
cdf74ca0c9
(svn r9475) -Codechange: Allow the purchase details widget to expand dynamically if there's still not enough room for the text.
2007-03-26 11:41:14 +00:00
maedhros
d2bd12d52e
(svn r9474) -Fix (r8378): Expand the details widget in the vehicle build windows again to make room for all the text.
2007-03-26 08:55:45 +00:00
peter1138
2afcd1561a
(svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver
2007-03-26 08:43:14 +00:00
maedhros
c2312c37d6
(svn r9472) -Fix (r9449): num is the number of newlines in the string, not the number of lines. Also allow for maxh being negative.
2007-03-26 08:04:29 +00:00
belugas
ac784b5fbe
(svn r9469) -Fix(r3720): The maximum year allowed for to_euro conversion of custom currency was set to 1000, making it impossible to ever have one. Now, with 3000, it should be a little more comfortable
2007-03-25 23:57:09 +00:00
belugas
683aae8abf
(svn r9467) -Fix(FS#703,6108): When resetting the array of currencies, the custom currency was reset too, thus loosing the setting a user could have used for it.(glx)
2007-03-25 23:42:55 +00:00
rubidium
45e788d524
(svn r9455) -Fix: the values for diff_custom, diff_level and snow_line in the .cfg were not properly checked.
2007-03-25 19:21:22 +00:00
maedhros
1a70cf53ff
(svn r9449) -Fix: Truncate the newgrf information text in the newgrf gui if it's too long.
2007-03-25 16:09:36 +00:00
peter1138
f56fbbfed9
(svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable...
2007-03-25 10:43:27 +00:00
peter1138
e74169364c
(svn r9438) -Codechange: Map cargo colours from DOS to Windows if necessary.
2007-03-25 08:13:07 +00:00
rubidium
0a3719fb72
(svn r9437) -Fix (r9420): dedicated server crashed when the y part of the resolution was less than 10.
2007-03-25 00:13:22 +00:00
peter1138
0ceca4140a
(svn r9436) -Fix (r9411): don't deactivate GRF in an action 7/9 during reservation (and loading of cargo data), and action 6 should be run also
2007-03-24 23:43:33 +00:00
peter1138
fc540fcd0d
(svn r9435) -Fix (r8972): ensure the cargo payment graph is at least 12 "items" high
2007-03-24 18:56:59 +00:00
peter1138
bea0993015
(svn r9434) -Fix (r9418): remove typedef from forward declaration to appease MSVC or something
2007-03-24 16:09:39 +00:00
truelight
9a9e891e0c
(svn r9429) -Fix r9338: when deleting a vehicle which has shared orders with one more vehicle and no orders, segfaulted
2007-03-24 15:13:46 +00:00
peter1138
d53e16131d
(svn r9427) -Codechange: remove redundant variable
2007-03-24 14:42:11 +00:00
celestar
49ff7cb938
(svn r9425) -Codechange/Fix (FS#689): Housekeeping in the convert rail functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations
2007-03-24 09:12:03 +00:00
rubidium
694c7fdf0f
(svn r9420) -Fix [FS#701]: crashes when the chatbox would be drawn outside of the main window.
2007-03-23 22:20:39 +00:00
peter1138
68572f1076
(svn r9418) -Codechange: Implement actions 1/2/3 for cargos, callback handler and custom icon sprites
2007-03-23 20:55:45 +00:00
peter1138
8353032129
(svn r9417) -Fix (r1): Waiting cargo icons in the station view window were incorrectly drawn if the cargo list was scrolled, resulting in overlapping images
2007-03-23 20:51:42 +00:00
peter1138
2e32df30dd
(svn r9416) -Codechange: Split NewGRF Action 3 handler into separate functions for each feature (vehicles are common, though)
2007-03-23 20:01:25 +00:00
miham
c603a27d29
(svn r9415) -Update: WebTranslator2 update to 2007-03-23 20:04:40
...
danish - 1 changed by ThomasA (1)
german - 5 fixed by moewe2 (5)
hungarian - 1 fixed by miham (1)
portuguese - 8 fixed by Digitalfox (8)
simplified_chinese - 9 fixed by Fishingsnow (9)
2007-03-23 19:06:07 +00:00
peter1138
85ec21e8c5
(svn r9413) -Codechange: Remove default cargo translation table and use bitnums directly if no table is provided. This lets pre-cargolabel cargo definitions work.
2007-03-23 00:03:08 +00:00
peter1138
2f6a46632a
(svn r9412) -Fix (r8886): When looking up a cargo type by label skip disabled cargos
2007-03-22 23:32:24 +00:00
peter1138
4d81a464e2
(svn r9411) -Codechange: Add support for loading of newcargo data.
2007-03-22 23:19:40 +00:00
belugas
06d3669bb5
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
2007-03-22 03:42:43 +00:00
belugas
6e9ab4f7b8
(svn r9399) -Feature: Openttd.cfg will now present landscape patch entry as been temperate, arctic, tropic or toyland.
...
This is the first usage of the callback conversion system of settings loading
2007-03-22 03:35:18 +00:00
belugas
deca0cc3fa
(svn r9398) -Feature: Allow for a conversion callback system while reading configuration file, in case of wrong value.
...
This is the basic step, no patch setting is actually using it, so far
2007-03-22 03:15:58 +00:00
peter1138
e2801aa320
(svn r9393) -Codechange: Use newgrf town resolver as station parent scope handler
2007-03-21 20:58:01 +00:00
miham
c29aa2ec44
(svn r9392) -Update: WebTranslator2 update to 2007-03-21 19:54:29
...
brazilian_portuguese - 2 changed by fukumori (2)
danish - 11 fixed, 2 changed by ThomasA (13)
esperanto - 8 fixed by LaPingvino (8)
estonian - 28 fixed by vermon (27), t2t2 (1)
finnish - 19 fixed, 66 changed by pallokala (9), habazi (76)
french - 9 changed by Skiper (9)
italian - 1 fixed, 49 changed by sidew (50)
traditional_chinese - 2 fixed by thomasau (2)
ukrainian - 9 changed by mad (9)
2007-03-21 18:58:03 +00:00
belugas
ca2fc01944
(svn r9391) -Documentation : correct Doxygen of comments and @file inclusion. Time for P and Q files
2007-03-21 17:42:43 +00:00
belugas
57557ba599
(svn r9390) -Documentation : correct Doxygen of comments and @file inclusion. This time, brought to you by the letter O
2007-03-21 15:19:33 +00:00
peter1138
d7f56f1550
(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.
2007-03-21 13:19:01 +00:00
rubidium
a9651a8b8f
(svn r9387) -Fix (r9385): termination of a comment forgotten.
2007-03-21 11:50:34 +00:00
belugas
dcd510c81f
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
2007-03-21 03:06:21 +00:00
rubidium
80ef389080
(svn r9378) -Fix [FS#688] (r9038): cancel in password queries reduces amount of players in the network game when they haven't joined the game yet.
2007-03-20 20:11:17 +00:00
rubidium
8e3e055248
(svn r9377) -Fix (r9376): the off-by-one error was also present at another location :(
2007-03-20 16:43:20 +00:00
rubidium
c865b9f566
(svn r9376) -Fix (r8969): off-by-one error for the amount of mouth pieces for men.
2007-03-20 16:32:41 +00:00
rubidium
154c7c4bcf
(svn r9373) -Fix (r9271): the chosen language was not stored nor read properly in/from the cfg.
2007-03-20 14:01:21 +00:00
maedhros
48f2bf9bb1
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
...
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
2007-03-20 13:47:00 +00:00
maedhros
7812f7fd0a
(svn r9367) -Fix (r9315): If a new house doesn't have a corresponding action 3, the
...
graphics for the substitute (original) house should be drawn instead.
2007-03-20 10:06:39 +00:00
belugas
b82ed41a19
(svn r9366) -Codechange: Unify the different houses acceptances attributes on their cargo counterpart, as well as specifying cargo slot.
2007-03-20 02:24:14 +00:00
peter1138
1bea18b440
(svn r9352) -Codechange: Use cargo class to determine if an aircraft should carry mail
2007-03-19 20:54:13 +00:00
rubidium
b0beea9989
(svn r9339) -Codechange: disable shares by default as the sharing system is broken (abusable) and should therefor not be used in multiplayer games.
...
-Codechange: make default maximum distance from the edge for oil refineries a little higher, so the chance that you get oil refineries is a little better.
2007-03-19 17:08:51 +00:00
truelight
58ef6ecc33
(svn r9338) -Fix: close the Shared Order Vehicle List if you remove the shared link with only 2 vehicles
2007-03-19 15:59:23 +00:00
truelight
9435d8cc83
(svn r9337) -Fix [FS#542]: assert() when you removed the orders of a shared list while having the shared order vehicle list open.
2007-03-19 15:36:18 +00:00
peter1138
63ccdcf082
(svn r9327) -Fix (r9301): Fix warning on MSVC
2007-03-19 12:58:43 +00:00
peter1138
457930c483
(svn r9322) -Codechange: Use cargo class to count crash/flood victims
2007-03-19 12:40:51 +00:00
maedhros
28aa933489
(svn r9316) -Fix (r9315): Bump the savegame version for the newhouses merge.
2007-03-19 11:41:21 +00:00
maedhros
73ff939ddb
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
...
the newhouses grf specs, so all newhouses grfs will be playable in the game.
Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
2007-03-19 11:27:30 +00:00
peter1138
ae48a7447b
(svn r9303) -Codechange: Use cargo class when counting passengers in a road vehicle crash, and when loading aircraft.
2007-03-18 22:32:05 +00:00
peter1138
8ef0e43b94
(svn r9302) -Codechange: Use cargo class to test for passengers when deciding on the livery scheme to use.
2007-03-18 22:11:24 +00:00
peter1138
e485b8f694
(svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops.
2007-03-18 22:07:44 +00:00
peter1138
f4cad9017e
(svn r9300) -Codechange: Use cargo's town effect property in the subsidy gui
2007-03-18 21:58:03 +00:00
richk
f44cbfe1fe
(svn r9299) -Fix (FS#675,FS#660): Small micro-movements on airports (of <4 pixels) caused odd aircraft movements. On oilrigs, this caused a full crash as movement would take helicopter out of airport/station tile.
...
Corrected by maneuvering aircraft directly over these tiny movements, rather than relying on movement by changing facing.
2007-03-18 21:44:00 +00:00
richk
408442d575
(svn r9298) -Fix (r1): A34-1000, Z-Shuttle, and Kelling K1 should be listed as small aircraft.
2007-03-18 21:38:30 +00:00
miham
051b3aba87
(svn r9292) [Translations] -Fix: Removed empty translation reached /trunk
2007-03-18 20:06:51 +00:00
miham
1f30eca98a
(svn r9286) -Update: WebTranslator2 update to 2007-03-18 19:56:07
...
american - 10 fixed by WhiteRabbit (10)
brazilian_portuguese - 7 fixed by fukumori (7)
bulgarian - 12 fixed by thetitan (12)
catalan - 3 fixed by arnaullv (3)
czech - 8 fixed by Hadez (8)
dutch - 8 fixed by habell (8)
french - 3 fixed by glx (3)
greek - 80 fixed by thanoulas (80)
italian - 7 fixed, 7 changed by sidew (6), bluesboy84 (8)
japanese - 11 fixed by PouncingAnt (2), ickoonite (9)
korean - 3 fixed by darkttd (3)
norwegian_nynorsk - 6 fixed by pollux (6)
polish - 7 fixed by meush (7)
russian - 9 fixed, 1 changed by DarkFenX (10)
slovak - 10 fixed by lengyel (10)
slovenian - 6 fixed by Necrolyte (6)
spanish - 9 fixed by eusebio (9)
swedish - 9 fixed by daishan (9)
traditional_chinese - 6 fixed, 4 changed by thomasau (10)
ukrainian - 9 fixed by mad (9)
2007-03-18 19:00:27 +00:00
rubidium
5171c3fbe4
(svn r9281) -Fix [FS#687]: compile failure when compiling with 'home directories' enabled (stepancheg).
2007-03-18 18:02:24 +00:00
rubidium
84d9f832c3
(svn r9277) -Fix [FS#685]: shared orders got messed up when the 'first' trains got removed in the depot.
2007-03-18 15:32:42 +00:00
celestar
693c2f12cb
(svn r9275) -Fix(r8973, FS#686): Faulty display of aircraft maximum velocity in the news item for new vehicles
2007-03-18 10:37:22 +00:00
rubidium
7fb3b4f83e
(svn r9271) -Codechange: make the language pack initialisation a little more clear and extendable (more language paths).
2007-03-17 22:21:05 +00:00
rubidium
534db3cf08
(svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved).
2007-03-17 14:15:21 +00:00
rubidium
50b2088674
(svn r9266) -Codechange: unify the retrieval of the base paths a little more.
2007-03-17 11:36:04 +00:00
peter1138
92486ac980
(svn r9259) -Codechange: NUM_CARGO isn't a valid cargo type...
2007-03-16 21:42:11 +00:00
peter1138
1014c82180
(svn r9257) -Codechange: Use cargo's town effect property for determining subsidy source/target type.
2007-03-16 17:40:31 +00:00
celestar
124725d863
(svn r9251) -Fix(r6057, FS#644): Use a less CPU-intensive algorithm to find a random industry for the AI to prevent it slowing down the game. The AI now sucks a even a bit more than before (if that's even possible).
2007-03-16 10:11:16 +00:00
peter1138
c5313e3479
(svn r9243) -Fix (r9162,FS#683): One too many table rows caused cargo acceptance mixup.
2007-03-16 00:55:59 +00:00
peter1138
99577265de
(svn r9236) -Codechange: Add 'town effect' attribute to cargo types. This will be used to specify how the cargo behaves wrt towns, instead of relying on fixed cargo IDs.
2007-03-15 22:48:46 +00:00
belugas
78b4c42f17
(svn r9215) -Documentation : correct Doxygen of comments
2007-03-15 17:42:32 +00:00
truelight
41caaf4d14
(svn r9205) -Fix: if you started openttd with '-g' you got the same map every run
2007-03-15 14:34:10 +00:00
belugas
eb1e6c19ad
(svn r9190) -Fix: Little typo in an enum.
2007-03-15 01:17:20 +00:00
maedhros
33e84b2c1e
(svn r9178) -Fix (r7573) [FS#679]: Don't allow building docks or buoys under bridges.
2007-03-14 12:56:09 +00:00
belugas
65ce0e36db
(svn r9162) -Codechange: Cleanup of industry_cmd (Step-8). Gather tile animation data into IndustryTileSpec array
...
Added a few documentation on remaining animation arrays (mostly ToyLand ones)
2007-03-14 02:52:50 +00:00
peter1138
4177215b41
(svn r9147) -Fix (r1770, r8161): when loadin games, enroute_from and enroute_from_xy were updated in the wrong place, causing issues with TTD savegames/scenarios.
2007-03-13 21:31:09 +00:00
KUDr
c7bcdb69b1
(svn r9146) -Fix [NTP][FS#676](r6800): "Train is lost" message is generated incorrectly. Forgot to set the best bird distance to zero in case we found the destination to indicate success. (de_zeurkous)
2007-03-13 21:04:22 +00:00
truelight
e3f73943f6
(svn r9137) -Fix: if all news-setting buttons show 'full', make the ALL-button show 'full' too
2007-03-13 12:05:41 +00:00
miham
31957860f3
(svn r9132) [Translations] -Fix: Removed empty strings added by last commit
2007-03-12 19:58:56 +00:00
rubidium
1926b9038d
(svn r9130) -Codechange: move the fileio functions that do open a file into a Fio slot together.
2007-03-12 15:40:12 +00:00
rubidium
9299e76a25
(svn r9129) -Codechange: unify parts of DeterminePaths.
2007-03-12 15:25:33 +00:00
peter1138
1c55149e1f
(svn r9127) -Codechange: Check if a cargo is valid before displaying it in a station's cargo rating list. (And duff up the block a little)
2007-03-11 22:29:37 +00:00
bjarni
4cc3551ef2
(svn r9126) -Feature: "Function of scrollwheel" can now be set to off as well
...
Note: since this can be useful for all platforms, the GUI is no longer OSX specific.
Note: scrolling lists is still unaffected by this setting
2007-03-11 21:53:46 +00:00
bjarni
3cf65b8a08
(svn r9125) -Fix r9111: default scrollwheel setting is now zooming, not scrolling
2007-03-11 21:39:20 +00:00
miham
276eeb14df
(svn r9118) -Update: WebTranslator2 update to 2007-03-11 16:16:39
...
brazilian_portuguese - 2 fixed by fukumori (2)
bulgarian - 1 fixed by thetitan (1)
catalan - 5 fixed by arnaullv (5)
czech - 1 changed by Hadez (1)
esperanto - 1 fixed by LaPingvino (1)
french - 5 fixed by glx (5)
german - 1 fixed by Neonox (1)
greek - 260 fixed by thanoulas (260)
hungarian - 8 fixed by miham (8)
italian - 1 fixed by sidew (1)
korean - 12 fixed by leejaeuk5 (7), darkttd (5)
polish - 1 fixed, 2 changed by meush (3)
portuguese - 2 fixed by izhirahider (2)
slovenian - 1 fixed by Necrolyte (1)
traditional_chinese - 1 fixed, 42 changed by thomasau (43)
2007-03-11 15:17:30 +00:00
rubidium
16a9f79a6a
(svn r9117) -Fix: the (current) difficulty level button was not selected when opening the difficulty window.
2007-03-11 14:56:35 +00:00
miham
473f33f129
(svn r9116) [Translations] -Change: force remove of changed translations (r9115) to ensure they are really changed
2007-03-11 14:38:52 +00:00
rubidium
a2ca998dd4
(svn r9115) -Fix [FS#622]: make clear in the tooltips when the canal build tool (in the scenario editor) makes flooding water (ocean).
2007-03-11 14:17:53 +00:00
bjarni
9be41fede6
(svn r9112) -Feature r9111: scrollwheel scrolling can now also scroll the smallmap
2007-03-11 11:57:11 +00:00
bjarni
50fe0fe059
(svn r9111) -Feature: [OSX] mighty mice and touchpads can now scroll the map (in all directions)
...
It has to be enabled first (in patches->interface) first and this will disable scrollwheel zooming
Note: patch setting "Map scrollwheel speed" might need to be changed since the "correct" setting
appears to depend on what kind of mouse is in use (mighty mouse or touchpad)
2007-03-11 10:55:35 +00:00
belugas
6def45089d
(svn r9108) -Fix(9093) : MSVC was a bit unhappy with some of the type changes. So basically, widening the types makes the difference
2007-03-11 02:53:44 +00:00
rubidium
b89d13cdbf
(svn r9105) -Fix [FS#629]: disable the ability to make flooding water with the canal build tool. In the scenario editor you can still make both canals and flooding water at height level 0.
2007-03-10 21:44:22 +00:00
KUDr
00bc893312
(svn r9104) -Fix(r9080, r9081): UINT32_MAX is undefined on MSVC, std::numeric_limits doesn't exist in gcc 2.95 (MorphOS), so back to tree and use ~0 instead (peter1138)
2007-03-10 20:05:31 +00:00
peter1138
1a7d9dd6c0
(svn r9102) -Codechange: (NewGRF) Apply cargo translation table to vehicle refit masks
2007-03-10 16:21:29 +00:00
truelight
146e5e12ec
(svn r9097) -Fix [FS#525]: open and close messages now have their own setting, so you can hide economy changes, but do show open/close of industries
...
-Change: store news_display_opt in his own section, so it is no longer stored as uint in openttd.cfg (allows adding news-types easier)
2007-03-10 12:10:00 +00:00
peter1138
1461e39bb9
(svn r9094) -Codechange: Don't set up refit masks for engine types not in the current climate, and exclude engine types if their cargo type is invalid and they have no refittable type.
2007-03-10 10:08:38 +00:00
peter1138
f662e0f996
(svn r9093) -Codechange: variable scope / type
2007-03-10 09:55:11 +00:00
peter1138
e83e9b9e44
(svn r9092) -Codechange: (NewGRF) (re r8885) Also set cargo type as invalid if the chosen type is not available in the current climate.
2007-03-10 09:23:33 +00:00
belugas
0a8e1aa8d6
(svn r9089) -Codechange: Remove the 32 widgets limit on News Options window.
...
-Codechange: Use the newly created WWT_TEXT widget.
-Cleanup: remove a lot of magic numbers, make the whole window more flexible, with now the possibility to easily add new type of news events.
Thanks glx for ideas from an old patch
2007-03-10 03:33:43 +00:00
belugas
3e91313326
(svn r9088) -Add : a new type of widget, called WWT_TEXT. It is a simple truncated string. It will be usefull on windows where lot of simple text is always drawn on the WE_PAINT event, making the code clearer. For now, left, right (total size of the window), top, color and data are necessary to use it. Maybe more features will be available soon.
2007-03-10 03:25:15 +00:00
Darkvater
2a2ee534e9
(svn r9086) -Feature/Fix: [win32] Rewrite keyboard input and handle all keypresses in a WM_CHAR event. This saves us from doing translation (ToUnicode[Ex], ToAscii[Ex]), and we get free IME-input support as a plus.
2007-03-10 00:30:18 +00:00
Darkvater
86be8991c6
(svn r9085) -Codechange/Fix: [win32] Move the initialisation of _codepage (non-UNICODE) to winMain as a dedicated server, or different video driver will not have a win32 messageloop.
2007-03-10 00:29:20 +00:00
Darkvater
3702f987c8
(svn r9084) -Fix: [win9x] Clipboard paste for Windows95 (doesn't have CF_UNICODETEXT) correctly converts the input to the current locale.
2007-03-10 00:27:20 +00:00
Darkvater
3b3c7554b7
(svn r9083) -Codechange: Be more lenient when trimming UTF-8 strings and don't terminate the string when an invalid encoding is encountered, but only focus on maximum length.
2007-03-10 00:26:19 +00:00
KUDr
933c406678
(svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead.
2007-03-09 23:26:21 +00:00
peter1138
fe2b3e18fb
(svn r9080) -Codechange: dynamically build cargo filter buttons in the station list window.
2007-03-09 22:55:57 +00:00
peter1138
c94480ab80
(svn r9079) -Codechange: add WWT_LAST widget when dynamically building cargo payment graph
2007-03-09 22:55:04 +00:00
rubidium
8dc695edea
(svn r9078) -Codechange: coding style.
2007-03-09 15:12:37 +00:00
rubidium
2e1bda2c1a
(svn r9077) -Fix [FS#612]: the wrong catenary wires were drawn for tunnel entrances.
2007-03-09 14:41:39 +00:00
rubidium
d609dff2ba
(svn r9076) -Fix [FS#529]: the intercontinental airport used 'T-junction' runway sprites when there is no exit in the middle of the runway as in the city airport (skidd13).
2007-03-09 10:12:08 +00:00
belugas
8eb0a220e6
(svn r9075) -Codechange: Cleanup of industry_cmd (Step-7). Small step that is. The new industry messages do not need a series of tests. Only one property to use.
2007-03-09 02:04:07 +00:00
glx
b52c4dea25
(svn r9074) -Codechange: win32 dedicated console now doesn't need an extra 'enter' to fully quit
2007-03-09 00:15:43 +00:00
bjarni
f776f3beb1
(svn r9073) -Codechange: moved autoreplace to a file of it's own (now autoreplace has a cmd and a gui file)
2007-03-08 23:05:05 +00:00
bjarni
c2b7d0192d
(svn r9072) -Codechange: [Orders] added methods to orders to free them and check if they are in use
2007-03-08 21:39:34 +00:00
truelight
daeac3d310
(svn r9071) -Fix [FS#459]: when in networking an other player takes over an AI which is also controlled by a player, move the player with the company to the company who bought out the AI
2007-03-08 21:05:05 +00:00
truelight
8877d11815
(svn r9070) -Fix [FS#404]: if bribe failed and you didn't pick up cargo yet, you wouldn't ever be able to do so for a given station
2007-03-08 20:50:27 +00:00
peter1138
6040e559ce
(svn r9069) -Codechange: Change a do ... while loop with a for loop. This fixes some warning that I never got anyway...
2007-03-08 19:23:49 +00:00
rubidium
ce919e8c71
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
2007-03-08 16:27:54 +00:00
truelight
aca3fb2b6e
(svn r9067) -Fix [FS#637]: don't make owner signs transparent, as then you loose the information who it owns
2007-03-08 15:50:07 +00:00
truelight
7b153e6356
(svn r9066) -Fix [FS#638]: store the owner of a statue, so when it gets removed, the town is notified of it
2007-03-08 14:34:32 +00:00
rubidium
c517f8fd6e
(svn r9065) -Fix: possible dereference of NULL pointer.
2007-03-08 13:54:19 +00:00
truelight
70623e3488
(svn r9064) -Fix [FS#663]: don't keep on scrolling for non-numeric values in settings, but require reclick
2007-03-08 12:57:08 +00:00
celestar
0fd907e0ec
(svn r9062) -Fix (r4822, FS#595): The station list, sorted by cargo rating, now takes stations into account that have no cargo waiting (KeeperOfTheSoul). While at it, doxygen the function
2007-03-08 12:26:31 +00:00
rubidium
c89379f7eb
(svn r9061) -Fix [r9038, FS#668]: passwords are send when the server is in the 'authorizing' state, not 'inactive'.
2007-03-08 09:46:44 +00:00
Darkvater
2536a14abd
(svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system.
2007-03-07 18:58:28 +00:00
miham
5e1351b377
(svn r9054) -Update: WebTranslator2 update to 2007-03-07 18:39:14
...
catalan - 2 fixed by arnaullv (2)
croatian - 95 fixed, 34 changed by Ydobon (129)
czech - 1 fixed, 3 deleted, 109 changed by Hadez (113)
danish - 4 fixed by ThomasA (4)
dutch - 2 fixed by habell (2)
esperanto - 5 fixed by LaPingvino (5)
french - 2 fixed by glx (2)
german - 1 fixed by Neonox (1)
hungarian - 1 fixed by miham (1)
italian - 1 fixed by sidew (1)
japanese - 14 fixed by ickoonite (14)
korean - 9 fixed by Nios (9)
norwegian_nynorsk - 1 fixed by Eikje3 (1)
polish - 2 fixed by meush (2)
simplified_chinese - 5 fixed by Fishingsnow (5)
slovenian - 1 fixed by Necrolyte (1)
spanish - 5 fixed by eusebio (5)
swedish - 5 fixed by daishan (5)
traditional_chinese - 7 fixed by sam0737 (7)
ukrainian - 1 fixed by znikoz (1)
2007-03-07 17:42:09 +00:00
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
glx
0b5cbecd3d
(svn r9048) -Fix r9040: non-bool used as bool
2007-03-06 23:27:14 +00:00
rubidium
1e8a2e19b3
(svn r9043) -Fix [FS#652]: the personal (.openttd) directories were hidden in the load/save directory listings (stepancheg).
2007-03-06 22:37:04 +00:00
belugas
7a58642b6c
(svn r9042) -Add : Maedhros as a developper
2007-03-06 22:16:43 +00:00
bjarni
f61f1962c5
(svn r9040) -Codechange: the build window and CmdBuildAircraft() now shares the code to figure out if an aircraft is buildable in the hangar in question
...
This should help ensuring that the build command and the list are consistent in what aircraft are buildable
2007-03-06 22:11:58 +00:00
bjarni
a24913d461
(svn r9039) -Fix r9034: missed the _pause in cocoa_v.mm
2007-03-06 22:01:59 +00:00
rubidium
a2b5b74b83
(svn r9038) -Fix [FS#115]: inactive connections are not automatically kicked, i.e. people who only open a telnet (or similar) connection to a server.
2007-03-06 22:00:42 +00:00
maedhros
68020bfa6d
(svn r9037) -Feature: [NewGRF] Add support for Action 13, which allows you to translate
...
grf-specific texts. The translations will only be shown if you're using a
language with a grf language id and if a string hasn't already been set
specifically for the language you're using.
2007-03-06 22:00:13 +00:00
rubidium
f1abcf0ff7
(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.
2007-03-06 21:18:25 +00:00
truelight
621ea1d863
(svn r9035) -Fix [SunOS]: Solaris sometimes has pid_t defined as long. Fix warnings in those cases
2007-03-06 21:14:48 +00:00
truelight
43133c766c
(svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
...
a symbol called _pause (and therefor our variable conflicts with
thatone. We shouldn't be using _ as global indicator.....)
2007-03-06 20:59:52 +00:00
maedhros
1c7df202c6
(svn r9031) -Codechange: Introduce grfconfig->status, and use it for states that are
...
mutually exclusive. At the same time, add an INITIALISED state which makes it
possible to check if a grf is not yet active but will be later on during the
GLS_ACTIVATION loading stage.
2007-03-06 19:33:28 +00:00
maedhros
60703d3691
(svn r9029) -Fix (r7326): Only call the gradual loading amount callback if the bit for it is set in the vehicle's callbackmask.
2007-03-06 19:12:56 +00:00
rubidium
b5f418d9f1
(svn r9027) -Fix [FS#664]: desync caused by buffer overrun.
2007-03-06 18:03:06 +00:00
richk
4b2ff65e0e
(svn r9022) -Fix [FS#660]: Airport state machine fails if the adjustment in position is less than 4 pixels. The new planespeed movement made this a fatal error on the oilrig. This fix just corrects the oilrig movement orders so that the error does not occur.
...
Full solution is to allow minor corrections without changing the facing of the aircraft. (spotted by ledow)
2007-03-05 23:00:43 +00:00
miham
71e4bb484c
(svn r9021) [Translations] -Fix: removed empty strings once again.
2007-03-05 20:00:43 +00:00
miham
3859bde772
(svn r9020) -Update: WebTranslator2 update to 2007-03-05 19:56:28
...
american - 17 fixed by WhiteRabbit (17)
brazilian_portuguese - 4 fixed by fukumori (4)
bulgarian - 1 fixed by thetitan (1)
catalan - 4 fixed by arnaullv (4)
czech - 5 fixed, 39 changed by Hadez (44)
dutch - 4 fixed by habell (4)
finnish - 7 fixed by pallokala (7)
greek - 10 fixed by thanoulas (10)
italian - 4 fixed by sidew (4)
polish - 3 fixed, 5 changed by meush (8)
portuguese - 3 fixed by izhirahider (3)
romanian - 17 fixed, 8 changed by kneekoo (25)
russian - 3 changed by DarkFenX (3)
slovak - 4 fixed, 30 changed by lengyel (34)
ukrainian - 6 fixed by znikoz (6)
2007-03-05 18:57:19 +00:00
truelight
657be6d2d0
(svn r9019) -Fix: use <> for system-headers
2007-03-05 18:00:18 +00:00
miham
53caedd0bf
(svn r9018) -Change: added SunOS as OS name in the quit dialog
2007-03-05 17:05:41 +00:00
celestar
f8e7d08885
(svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
...
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10)
Note: With this commit, building and running on Solaris 10 works, thus
we officially support this OS now :)
2007-03-05 09:35:45 +00:00
tron
e092b2d8c7
(svn r9015) -Fix
...
NL at EOF
2007-03-05 05:03:28 +00:00
tron
89d03d004a
(svn r9014) -Fix
...
Improve translation using gender tags
2007-03-05 05:02:24 +00:00
tron
8dfe956a37
(svn r9013) -Fix
...
Remove incorrect empty translation
2007-03-05 05:01:06 +00:00
Darkvater
915ae8ffc2
(svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'.
...
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)
2007-03-05 00:45:56 +00:00
Darkvater
aea64adbb9
(svn r9011) -Codechange (r9003): Rework Utf8PrevChar so that it returns a pointer to the previous UTF8 character's first byte instead of a byte-length offset
2007-03-05 00:34:48 +00:00
Darkvater
b3f59814de
(svn r9009) -Fix (r1): Determine whether to play a sound or not when entering a tunnel based on engine type (only steam engines) instead of on spritenum which can be invalid for newgrf trains. DBSet(XL) or any other steam trains without newsounds should sound their horn now.
2007-03-04 22:14:32 +00:00
miham
ebe9bd4539
(svn r9005) -Update: WebTranslator2 update to 2007-03-04 09:03:25
...
bulgarian - 13 fixed by groupsky (13)
danish - 13 fixed by ThomasA (13)
french - 4 fixed, 6 changed by glx (4), Skiper (6)
german - 4 fixed by Neonox (4)
hungarian - 3 fixed by miham (3)
norwegian_bokmal - 13 fixed by oletk (13)
norwegian_nynorsk - 20 fixed, 1 changed by pollux (21)
portuguese - 4 fixed by izhirahider (4)
russian - 4 fixed, 10 changed by DarkFenX (14)
simplified_chinese - 13 fixed by Fishingsnow (13)
slovenian - 4 fixed by Necrolyte (4)
traditional_chinese - 2 fixed by thomasau (2)
2007-03-04 08:05:43 +00:00
Darkvater
0d643c624b
(svn r9003) -Codechange: Introduce a function Utf8PrevCharLen that finds the starting character of an UTF-8 sequence from a given position and returns the length to the first UTF-8 encoding byte of that sequence.
2007-03-04 00:49:40 +00:00
rubidium
ead8c82ab6
(svn r9002) -Update: remove strings removed in r9001 from languages other than English.
2007-03-03 22:15:37 +00:00
rubidium
35fde14a52
(svn r9001) -Codechange: remove duplication of functions and strings with respect to the news of new vehicles.
2007-03-03 22:03:15 +00:00
rubidium
cf47f2a856
(svn r9000) -Fix [FS#581, r2572]: new locomotive names were not announced in the news, it said "new railway locomotive available - railway locomotive".
2007-03-03 20:43:52 +00:00
rubidium
2061d6af27
(svn r8999) -Fix [FS#450]: do not select a disabled platform length/number of track count when going out of drag-drop mode.
2007-03-03 20:43:50 +00:00
Darkvater
e33a8d3caa
(svn r8995) -Fix (FS#620, r8464): revert properly (reversion of r4322) internal speeds
2007-03-03 13:36:25 +00:00
Darkvater
b024134c6a
(svn r8994) -Fix [FS642, r3320]: [win32] Resolution doubled in cfg file when fullscreen mode used. Use _wnd.double_size which gives back its correct state with respect to double size and fullscreen.
2007-03-03 13:13:25 +00:00
peter1138
db2f57e3a1
(svn r8990) -Fix: more indenting and variable scoping
2007-03-03 10:48:25 +00:00
peter1138
8f2a554864
(svn r8989) -Fix: more indenting and variable scoping
2007-03-03 09:58:20 +00:00
peter1138
55d544d47e
(svn r8988) -Fix: Indenting, variable scope, variable type and minor duffage
2007-03-03 09:40:34 +00:00
belugas
b71354dc40
(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style.
2007-03-03 04:04:22 +00:00
rubidium
6887fbbaaf
(svn r8980) -Fix (FS#656): the industry list should also be (re)set when the number of industries is 0.
2007-03-02 19:57:55 +00:00
rubidium
517f2bcc57
(svn r8979) -Fix (r8978): unsigned vs signed comparisons.
2007-03-02 18:57:54 +00:00
richk
d11e36e477
(svn r8978) -Feature: Rewrite of transfer system.
...
This major feature-fix keeps track of the value of transfers offloaded at a station, and hands on to a loading vehicle a credit note proportionate to the cargo loaded. The transferring vehicle is paid only for the distance it has travelled. eg. B-C in a transfer chain A-B-C-D.
When the final cargo is delivered, these credit notes are cashed, and the final vehicle is paid for A-D minus any credit notes it is carrying. The company bank balance increases by the value of the A-D route.
You still need to set up a profitable route; it is still easy to make a loss on transfers by bad planning. :)
2007-03-02 18:49:11 +00:00
Darkvater
0961e1bc56
(svn r8977) -Codechange: Remove the hardcoded maximum width for some drawstrings and replace them with a portion of w->width. Only visible improvement is QueryWndProc which will not write exactly to the edge of the window anymore.
2007-03-02 17:54:52 +00:00
Darkvater
991fbeaefa
(svn r8976) -Codechange: Reinitialize all engines after grf files have been reloaded/changed.
2007-03-02 15:17:48 +00:00
Darkvater
baf79a6a85
(svn r8975) -Regression: [win32] Possible buffer overflow if unicode text is pasted into an input box and needs trimming. The last character was wrongly assumed to be of length 1 (tb->maxlength - 1), while a unicode character can be up to 4 long.
2007-03-02 15:08:28 +00:00
Darkvater
c0971bafdc
(svn r8974) -Fix: [win32] Define a win32 target platform ourselves so that we don't conflict with Vista Platform SDK (boekabart)
2007-03-02 15:02:12 +00:00
celestar
f621608f7d
(svn r8973) -Feature/Codechange: Changed the internal unit for aircraft velocities to from 8mph to 1km/h (peter1138), also give aircraft realsitic velocities (so that 1km/h is 1km/h independent of vehicle type) (peter1138). Introduce a flag to reduce aircraft speed in holding patterns to some realistic velocity. Use this flag for the city airport for the time being and make use of the different entry points for this airport type.
2007-03-02 12:01:24 +00:00
peter1138
879eca8e23
(svn r8972) -Codechange: Dynamically add buttons on the cargo payment graph. This lets us remove the gaps and allow more than 12 cargo types later.
2007-03-02 11:36:34 +00:00
rubidium
ea319b78f8
(svn r8969) -Codechange: rework of the player face bits.
...
- introduce a new format (with backward compatability) that is more clear and needs a much simpler face drawer
- replace tons of ifs/switches/magic numbers by table lookups
2007-03-02 01:17:11 +00:00
truelight
322953ad2e
(svn r8967) -Fix (OSX): silent the warnings in cocoa_v.mm about deprecated stuff.. we know that\!
2007-03-02 00:36:16 +00:00
rubidium
08973ba8eb
(svn r8966) -Codechange: replace some if-cascades by switches.
2007-03-02 00:17:35 +00:00
rubidium
cd8090f3bd
(svn r8964) -Codechange: use grf_load_string to read action 8 strings instead of trying to do the same manually.
2007-03-01 23:37:05 +00:00
miham
c53f174005
(svn r8957) -Update: WebTranslator2 update to 2007-03-01 21:03:45
...
afrikaans - 69 fixed, 24 changed by TrueTenacity (93)
american - 1 fixed by WhiteRabbit (1)
brazilian_portuguese - 14 fixed, 9 changed by tucalipe (11), fukumori (12)
catalan - 13 fixed by arnaullv (13)
czech - 13 fixed by Hadez (13)
dutch - 13 fixed by habell (13)
esperanto - 13 fixed by LaPingvino (13)
french - 13 fixed, 1 changed by glx (14)
german - 13 fixed by Neonox (13)
hungarian - 13 fixed by miham (13)
icelandic - 1 fixed by scrooge (1)
italian - 13 fixed by sidew (13)
japanese - 4 fixed by ickoonite (4)
korean - 3 fixed by darkttd (3)
norwegian_bokmal - 1 fixed by oletk (1)
polish - 14 fixed by meush (14)
portuguese - 11 fixed by izhirahider (11)
russian - 13 fixed, 25 changed by DarkFenX (38)
slovak - 16 fixed, 33 changed by lengyel (49)
slovenian - 13 fixed by Necrolyte (13)
spanish - 13 fixed by eusebio (13)
swedish - 13 fixed by daishan (13)
traditional_chinese - 9 fixed, 3 changed by thomasau (12)
turkish - 13 fixed by jnmbk (13)
ukrainian - 15 fixed, 29 changed by mad (32), znikoz (12)
2007-03-01 20:12:41 +00:00
rubidium
c8faa6bee2
(svn r8955) -Fix: crash on loading savegames with GRFs that do not have their GRF info/name set.
2007-03-01 18:28:55 +00:00
rubidium
05fe6d2362
(svn r8954) -Codechange: remove direct map accesses from non-map-accessor headers.
2007-03-01 13:35:40 +00:00
rubidium
ef9b0bdd88
(svn r8953) -Codechange: make the names of enums of WaterTileType consistent with respect to RailTileType and RoadTileType.
2007-03-01 13:27:51 +00:00
belugas
978d7da818
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-03-01 01:24:44 +00:00
rubidium
66487d59fd
(svn r8949) -Codechange: only test the first NETWORK_REVISION_LENGTH - 1 characters when determining network compatability. This makes it possible to have 'long' branch names while still being able to play network games.
2007-03-01 00:58:09 +00:00
maedhros
469fbc912c
(svn r8946) -Feature: [NewGRF] Add support for vehicle variables 0xFE and 0xFF bit 10,
...
which is set when a vehicle was built during the exclusive testing phase.
2007-02-28 17:59:05 +00:00
maedhros
aadd8a4b44
(svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can be used for more than just the gradual loading status.
2007-02-28 17:18:36 +00:00
maedhros
f865f0a445
(svn r8944) -Codechange: Move the enum describing the bitmask of Engine.flags to engine.h and give the enum values better names.
2007-02-28 17:06:22 +00:00
maedhros
8108cbbe3c
(svn r8943) -Fix (r5338): [NewGRF] Fix support for vehicle variable 48, which just returns Engine[id].flags
2007-02-28 10:40:34 +00:00
rubidium
4908115355
(svn r8935) -Codechange: unification of track type between road and rail tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType.
2007-02-27 23:36:28 +00:00
KUDr
fbd6a88d02
(svn r8933) -Fix [Win64]: rdtsc now uses intrinsic on VC8 (michi_cc)
2007-02-27 23:12:45 +00:00
rubidium
8877ef7478
(svn r8921) -Fix (FS#654): several issues related to removing all orders from an aircraft and removing the airport it was heading:
...
- the aircraft would go to (0, 0) and circle there. Clicking the 'eye' to jump to the aircraft in the main window could cause a segmentation fault.
- when rebuilding an airport with the StationID of the old airport could crash as the FTA state of the aircraft is higher than the number of states of the new airport, causing a crash of all clients and the server when assertions are enabled.
- when rebuilding an airport with the StationID of the old airport can bring the aircraft in a state where is keeps circling the airport.
To solve these issues all aircraft without a valid order will try to go to the nearest hangar it can safely get to (large jets do not land on small airports). If there is no hangar to go to, the airplane crashes (out of fuel).
2007-02-27 16:18:31 +00:00
Darkvater
8eced44506
(svn r8920) -Codechange: Do not require to press 'Apply changes' in the newgrf GUI if the changes in there are not activated (this happens in the title screen)
2007-02-27 16:07:04 +00:00
Darkvater
c5e59b8a61
(svn r8919) -Regression (UTF8) (try #2 ): Win9x is very picky about trailing slashes in paths, so C:\\* will not work (but C:\Windows\\* does; go figure). Thanks glx for pointing it out and for the initial fix.
2007-02-27 16:05:49 +00:00
Darkvater
9cbc0e4ade
(svn r8918) -Revert r8914 as the inverted files have been committed not the correct one.
2007-02-27 16:05:20 +00:00
Darkvater
44879ab2c5
(svn r8914) -Regression (UTF8): Win9x is very picky about trailing slashes in paths, so C:\\* will not work (but C:\Windows\\* does; go figure). Thanks glx for pointing it out and for the initial fix.
2007-02-27 15:17:06 +00:00
rubidium
33771b4f25
(svn r8912) -Codechange: coding style cleanup and moving of two global externs into the functions that use them.
2007-02-26 22:32:21 +00:00
rubidium
413853552c
(svn r8911) -Cleanup: fixup comments about the RoadVehicleStates and remove two unused enums.
2007-02-26 22:25:18 +00:00
rubidium
aaeeef3d88
(svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header.
2007-02-26 18:25:03 +00:00
rubidium
f3f966e616
(svn r8907) -Fix (r3281): reading from an unitialized variable.
2007-02-26 00:41:24 +00:00
rubidium
34154aa89e
(svn r8906) -Feature: translation dependant formatting of dates.
2007-02-26 00:36:57 +00:00
peter1138
8df0b8a685
(svn r8903) -Regression (r8891): CT_PURCHASE does apply to aircraft overrides...
2007-02-25 14:33:43 +00:00
tron
e981e0a553
(svn r8901) -Fix
...
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Trackdir, TrackdirBits) and DECLARE_ENUM_AS_BIT_INDEX() altogether
2007-02-25 11:59:26 +00:00
tron
311af1a956
(svn r8900) -Fix
...
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Track, TrackBits)
2007-02-25 11:49:43 +00:00
tron
3ce4baa9fc
(svn r8899) -Fix
...
Remove the unused second parameter from GetTileRailType()
2007-02-25 11:36:19 +00:00
tron
1ce43c1a37
(svn r8897) -Fix
...
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
2007-02-25 10:49:13 +00:00
tron
696b895b77
(svn r8896) -Fix
...
Most (i.e. 13 of 15) callers of GetNewVehiclePos() do not care for the return and the others can figure it out by inspecting the information returned in struct GetNewVehiclePosResult.
Therefore remove the return value.
2007-02-25 10:25:25 +00:00
tron
1864d28cb8
(svn r8894) -Fix
...
Slightly simplify the control flow of TrainController()
2007-02-25 09:47:46 +00:00
tron
e949a956bd
(svn r8893) -Fix
...
variable scope, const, misc.
2007-02-25 09:27:03 +00:00
rubidium
9c6957b457
(svn r8892) -Fix (r8879): swapped the eye colour and eyebrow bits.
2007-02-25 09:06:13 +00:00
peter1138
4c4b035175
(svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo mapping is now dealt with only in NewGRF code, on load where possible.
2007-02-24 23:36:40 +00:00
peter1138
29c8142784
(svn r8890) -Codechange: (NewGRF) add cargo translation support to engine var 47
2007-02-24 23:20:21 +00:00
rubidium
5aaff3b5a1
(svn r8889) -Fix (r8880): a CursorID is not a SpriteID.
2007-02-24 22:35:42 +00:00
peter1138
5dcd88c59c
(svn r8888) -Codechange: Replace hardcoded default cargo bitmasks with a list of cargo labels.
2007-02-24 22:01:18 +00:00
KUDr
b3822a22d9
(svn r8887) -Fix (r8879)[MorphOS]: initialization of mouth_table[] skipped by goto
2007-02-24 19:43:50 +00:00
peter1138
a23b4594ed
(svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table support, applied to action 3s only.
2007-02-24 19:36:47 +00:00
peter1138
0cf5ebee79
(svn r8885) -Codechange: (NewGRF) If a default cargo type property is out of range then choose the cargo type from its refit list.
2007-02-24 19:26:45 +00:00
tron
12b1804d4e
(svn r8884) -Fix
...
Replace SetSpeedLimitOnBridge() by something simpler
2007-02-24 18:44:30 +00:00
maedhros
e3f60f716c
(svn r8882) -Cleanup (r8881): Remove obsolete strings.
2007-02-24 16:37:06 +00:00
maedhros
8b6350d3a3
(svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly.
2007-02-24 16:34:37 +00:00
rubidium
8ac0e7be21
(svn r8880) -Codechange: make anim cursors an array of structs.
2007-02-24 15:05:14 +00:00
rubidium
4fd8926e9d
(svn r8879) -Codechange: make DrawPlayerFace easier to read.
2007-02-24 14:53:32 +00:00
tron
caa129958d
(svn r8878) -Fix
...
-Fix: Do a better job when checking the parameters of CmdMoveRailVehicle()
NOTE: 0.5 candidate
2007-02-24 14:36:14 +00:00
rubidium
6ddef3f743
(svn r8877) -Cleanup: remove already implemented @todo
2007-02-24 12:50:05 +00:00
tron
d3b29bcacb
(svn r8876) -Fix
...
Replace tests with magic numbers by a simple extraction template for command parameters
2007-02-24 09:42:39 +00:00
tron
1d1121f85a
(svn r8875) -Fix
...
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
2007-02-24 06:46:20 +00:00
KUDr
029ceda0f1
(svn r8869) [YAPF] -Fix: Large Train Stations/Trains makes OpenTTD crash (Jigsaw_Psyche)
2007-02-24 00:17:46 +00:00
rubidium
433b8054e9
(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
2007-02-23 22:14:14 +00:00
KUDr
9cdf6fdc7e
(svn r8867) -Fix(r8866): revert yapf_costrail.hpp commited by mistake, helpers.hpp had wrong line ending
2007-02-23 21:36:43 +00:00
KUDr
f3d5fda36c
(svn r8866) -Doc: added more comments to template struct MakeEnumPropsT
2007-02-23 21:29:50 +00:00
peter1138
0cf592b17a
(svn r8865) -Codechange: (NewGRF) Ignore 1 byte action 0s during safety check
2007-02-23 21:03:57 +00:00
KUDr
dac3cd622f
(svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like CLRBIT() and so on (modify value of the first parameter instead or returning the result)
2007-02-23 20:51:10 +00:00
peter1138
20405f56b4
(svn r8863) -Fix: prefix engine_custom_sprites with _
2007-02-23 19:27:31 +00:00
belugas
6dbf9f2f41
(svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
...
Some documentation addition, when i can easily supply them
2007-02-23 18:55:07 +00:00
Darkvater
1bbbbeeef1
(svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
2007-02-23 12:56:10 +00:00
belugas
6d199fcdb7
(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-02-23 11:50:43 +00:00
peter1138
7e73413709
(svn r8858) -Codechange: Replace magic number test with class method for determining if a cargo is valid/active.
2007-02-23 09:56:20 +00:00
celestar
0ed4b64e64
(svn r8857) -Documentation: Added some doxygen @file tags, repaired others (the @file tag MUST be found before any line of code, that includes preprocessor directives).
2007-02-23 08:37:33 +00:00
tron
798c95a228
(svn r8856) -Fix
...
Missing */ (r8853)
2007-02-23 08:19:24 +00:00
tron
9cbc49b65b
(svn r8855) -Fix
...
Change some shift and cast mumbo jumbo for inflation calculation to something remotly comprehensible and explain what the magic number "54" means
2007-02-23 08:03:30 +00:00
belugas
8ace4dd25c
(svn r8854) -Fix(r8853): Ctrl+s (save) without Ctrl does not produce desired result...
2007-02-23 02:18:17 +00:00
belugas
a723770836
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
2007-02-23 01:48:53 +00:00
rubidium
202702c007
(svn r8852) -Fix (r8735): make the dynamite tool for drive through road stops as if it were removing a normal road tile (consider the local authority and such).
...
-Fix (r8735): remove drive through road stops on town owned roads when going bankrupt/being removed.
2007-02-23 00:17:46 +00:00
rubidium
dcb217a6ac
(svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority.
2007-02-23 00:10:16 +00:00
peter1138
89613b6cc4
(svn r8850) -Codechange: Use the cargo type's is_freight flag instead of checking the cargo type to determine if the cargo type is freight cargo type cargo type.
2007-02-22 22:53:49 +00:00
peter1138
6062004960
(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions.
2007-02-22 22:09:51 +00:00
miham
4f41a8a5e2
(svn r8848) -Update: WebTranslator2 update to 2007-02-22 19:57:58
...
brazilian_portuguese - 1 fixed, 49 changed by tucalipe (48), fukumori (2)
bulgarian - 2 fixed by kokobongo (2)
catalan - 1 fixed, 2 changed by arnaullv (3)
czech - 1 fixed by Hadez (1)
danish - 2 fixed, 1 changed by MiR (3)
dutch - 1 fixed by habell (1)
french - 1 fixed, 1 changed by Skiper (2)
german - 1 fixed by Neonox (1)
italian - 1 fixed by sidew (1)
korean - 4 fixed by leejaeuk5 (3), darkttd (1)
portuguese - 4 changed by izhirahider (4)
romanian - 10 fixed by kneekoo (10)
russian - 1 fixed, 42 changed by DarkFenX (43)
slovenian - 1 deleted by Necrolyte (1)
spanish - 1 changed by eusebio (1)
ukrainian - 19 fixed, 1 deleted, 12 changed by mad (32)
2007-02-22 19:14:43 +00:00
tron
2e4844abad
(svn r8847) -Fix
...
There is not much point in hiding a normal 64bit multiplication in a function, so do not do it
2007-02-22 19:05:26 +00:00
tron
8b94d4df22
(svn r8846) -Fix
...
Remove confusing superfluous parentheses
2007-02-22 18:44:42 +00:00
tron
17dd1b7126
(svn r8845) -Fix
...
Remove pointless and out of context comment
2007-02-22 18:34:57 +00:00
Darkvater
31be3c6fac
(svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to add the allocated GRFConfig to its list and not copy it.
2007-02-22 16:16:44 +00:00
tron
c834320611
(svn r8843) -Fix
...
-Fix: Off-by-one error in accessing a buffer (if you start at the second byte you have to subtract one from the size)
Also avoid an unnecessary buffer copy and strlcpy() abuse
NOTE: 0.5 candidate
2007-02-22 15:01:38 +00:00
tron
103d119c51
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
2007-02-22 08:43:02 +00:00
tron
0d041a87cc
(svn r8840) -Fix
...
Remove FIFO and Stack. They have never been used and could not be used anyway because the declarations of some functions are spelled different than the definitions they should correspond to.
Also remove some other unused helpers and related struct attributes.
2007-02-22 06:57:21 +00:00
maedhros
f2d63dcecf
(svn r8838) -Feature: Show newgrf error messages loaded in Action B in the newgrf gui
...
window. GRFs with an error have a warning symbol shown before the name.
2007-02-21 23:18:08 +00:00
rubidium
fd4a0dafc2
(svn r8837) -Fix [FS#626]: drive through stations did not connect to neighbouring roads (mart3p).
2007-02-21 22:02:10 +00:00
KUDr
f24122ba3d
(svn r8836) [YAPF] -Fix[FS#641]: Assertion: 'IsTileDepotType(depot_tile, TRANSPORT_ROAD)' failed (Karsten)
...
-don't tell that we found destination if the best direction was only guessed
2007-02-21 21:56:07 +00:00
tron
0b536291e2
(svn r8835) -Fix
...
Remove dead code
2007-02-21 20:05:05 +00:00
tron
b3d93e3aa2
(svn r8834) -Fix
...
Do not pass something to a function it better could figure out by itself
2007-02-21 19:49:18 +00:00
tron
f716c0b30f
(svn r8833) -Fix
...
-Codechange: Split MakeRoadStop() into MakeRoadStop() and MakeDriveThroughRoadStop() for more clarity and less possibilities to use it incorrect
2007-02-21 19:46:37 +00:00
maedhros
9907e496b1
(svn r8831) -Feature: If an action 7/9 leads to skipping the rest of the file, disable the
...
newgrf if an action 8 hasn't been encountered yet.
2007-02-21 17:54:30 +00:00
maedhros
61fa3909f2
(svn r8830) -Feature: Stop loading and disable the current newgrf if a fatal error message
...
in Action B is encountered. Also be more strict on the values accepted.
2007-02-21 17:20:44 +00:00
tron
62ff0ab073
(svn r8829) -Fix
...
Remove translations which should not be empty
2007-02-21 08:32:36 +00:00
tron
565da62355
(svn r8828) -Fix
...
-Regression (r7585): On load calculate the station rectangle for all savegames, not just savegames with at least version 27
2007-02-21 07:37:31 +00:00
belugas
771932d889
(svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of IndustryTileSPec, the alter ego of IndustrySpec.
...
It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources. More to come
2007-02-21 02:22:43 +00:00
peter1138
ef2daa5060
(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels.
2007-02-20 22:09:21 +00:00
maedhros
6621beb126
(svn r8825) -Fix: Make sure strings read from newgrf files are 0 terminated and 0
...
terminate them if they aren't, so we don't read beyond the end of the
memory allocated for the line.
2007-02-20 17:52:43 +00:00
Darkvater
b00692dff6
(svn r8824) -Fix (r8821): don't use MSVC2005 runtime library-only _snwprintf_s function, but use 'insecure/deprecated' version and zero-terminate string ourselves. Thanks for testing glx.
2007-02-20 14:39:47 +00:00
Darkvater
6d25481221
(svn r8823) -Fix (r8821): wrapping opendir to ottd-specific function failed on non-windows because this wrapper was only active for win32 (thx Rubidium)
2007-02-20 09:46:10 +00:00
tron
41d526415c
(svn r8822) -Fix
...
Variable scope, const
2007-02-20 06:39:09 +00:00
Darkvater
92bbe45dd0
(svn r8821) -Regression: Unable to browse directories on *nix if the filesystem is not in UTF-8 charset and special characters are used. The string passed to opendir() which is UTF-8 was not parsed back to the filesystem format. Use a wrapper called ttd_opendir() instead of redefining opendir itself.
2007-02-20 00:09:23 +00:00
Darkvater
5b237758aa
(svn r8820) -Codechange (r8807, r8806): Remove the unneeded calloc/free allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron.
2007-02-20 00:01:54 +00:00
rubidium
ee3d28ff8f
(svn r8818) -Codechange: remove the #ifdef _cplusplus remnants.
2007-02-19 21:11:44 +00:00
rubidium
168a7876a0
(svn r8809) -Fix (r8715): accidentally removed a part of an expression.
2007-02-19 13:45:13 +00:00
rubidium
5011997f69
(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
2007-02-19 10:13:51 +00:00
Darkvater
8dae4e45ac
(svn r8807) -Feature: Add support for loading (some of) the TTDP extra chunks mainly list of GRFIDs and TTDP version the game was saved with.
...
GRFID list is read and active GRFs are loaded with the game if present in the data/ directory.
TTDP versioning information only works for newer versions, old versions will only give rough information but it's not worth the effort to precisely figure out what bit means what where and when.
2007-02-18 22:50:51 +00:00
Darkvater
6d4d072023
(svn r8806) -Codechange (r7582): Remove a duplicate append of static GRF's when loading the game and hide the intrinsics of adding elements to the GRFConfig list by using an AppendToGRFConfigList function.
2007-02-18 22:37:33 +00:00
Darkvater
b260be6e2a
(svn r8805) -Codechange (r8757): DO set eol-style and keywords on new files...
2007-02-18 22:07:08 +00:00
tron
a69c6086e2
(svn r8802) -Fix
...
-Fix: When inserting an order for a ship while checking the distance between the new order and the order it is inserted after adhere the order types to determine the correct type of destination (i.e. station or depot)
Also do a better job in determining the preceding order
NOTE: 0.5 candidate
2007-02-18 16:24:29 +00:00
tron
352273a5b3
(svn r8800) -Fix
...
Simplify MoveGoodsToSation() under the assumption that 0 is less or equal than 0
2007-02-18 11:45:56 +00:00
tron
1ed8e7e04e
(svn r8799) -Fix
...
Reduce variable scope
2007-02-18 11:27:09 +00:00
rubidium
0734bcfea0
(svn r8797) -Fix (8741): the 'drive through station built on town owned road' bit was not set.
2007-02-18 11:14:55 +00:00
tron
1a1129785a
(svn r8796) -Fix
...
Remove the unused function AllocateStation() which was left over from r8125
2007-02-18 09:00:34 +00:00
tron
46c872b366
(svn r8795) -Fix
...
Remove the explicit check for buoys when inserting goto station orders.
This is already covered by the preceding OWNER_NONE test.
2007-02-18 08:50:27 +00:00
tron
c6743c5e11
(svn r8794) -Fix
...
Remove the possiblity to take over stations with OWNER_NONE by building a station next to it
-Fix: It was possible to take over buoys by building a station next to them
Also remove the now unnecessary special case which prevented taking over oilrigs
NOTE: 0.5 candidate
2007-02-18 08:37:39 +00:00
glx
aa24d59966
(svn r8793) -Fix: corrected spelling of real french townnames and 'removed' a duplicate
2007-02-17 23:53:17 +00:00
maedhros
3c5eb8458a
(svn r8792) -Fix (r6623): Don't check whether a string length is 1 when you already know it isn't.
2007-02-17 23:01:42 +00:00
miham
c810aef43b
(svn r8791) -Revert: r8790 Committed too much in last commit
2007-02-17 22:01:07 +00:00
miham
6e5dd7942f
(svn r8790) [Namegen] -Revert: r8789 (Tron kinda convinced me it is a bad thing, sorry for it)
2007-02-17 21:56:22 +00:00
miham
b447e57131
(svn r8789) [Namegen] -Change: Sorted townnameparts for hungarian, and added a few more
2007-02-17 21:50:00 +00:00
miham
2fce5170ea
(svn r8788) [Translations] -Fix: Removed bogus 3sk case from slovenian, as it is handled in WebTranslator2 from now on
2007-02-17 21:31:30 +00:00
bjarni
853cc54ec6
(svn r8787) -Change r8771: allow fast aircraft in small airports
...
We should keep the list in sync with the build command as hacked clients can avoid a block in the GUI only
2007-02-17 18:38:35 +00:00
bjarni
4bcf385f31
(svn r8786) -Cleanup: replaced a switch-case to get the right refit command for a certain vehicle type. We have a function to do that
2007-02-17 17:12:19 +00:00
richk
06296d98b7
(svn r8785) -Fix: Entry point for commuter airport incorrect.
2007-02-17 17:10:33 +00:00
Darkvater
1aab4a368b
(svn r8784) -Regression (r7274 most likely): Unable to load TTDP (on *NIX) games because the static buffer used for name conversion is overwritten in the callback function.
2007-02-17 16:41:56 +00:00
bjarni
f731d7ffc4
(svn r8783) -Fix r8771: aircraft vehicle subtype and aircraft engine subtype aren't the same (even though they both tell if it's a plane or helicopter)
2007-02-17 16:07:45 +00:00
tron
ea8eb50c0e
(svn r8782) -Fix
...
Adapt GetClosestStationFromTile() more to the way it is used:
- All but deleted stations get filtered later, so do not include non-deleted station in the first place
- Remove the two parameters, which are the same for all callers
2007-02-17 15:59:33 +00:00
tron
b6d2172678
(svn r8781) -Fix
...
A spectator cannot build stations, so do not include a special case for him
2007-02-17 15:34:05 +00:00
richk
992916349d
(svn r8780) -Fix: Spelling of CatchmentArea incorrect.
2007-02-17 15:17:47 +00:00
tron
a74fad50fa
(svn r8779) -Fix
...
-Codechange: Use a more generic test, which tests the allowed aircraft instead of hardcoding the airport type numbers, to generate station names
2007-02-17 15:03:30 +00:00
tron
3c5c64f726
(svn r8778) -Fix
...
-Codechange: Allow goto station orders to public stations in general, not just oilrigs (though this is the same till now)
2007-02-17 14:54:31 +00:00
bjarni
790a3f5d5e
(svn r8777) -Fix: FS#596 Cloning Maglev in UKRS forgets Mail refit
...
Cloning were unaware that articulated locomotives could refit without refitting the front unit
2007-02-17 13:50:22 +00:00
bjarni
222aebc5dd
(svn r8771) -Fix r8343: build aircraft windows will no longer show aircraft that can't use the airport in question
...
Now it's even better than ever because unless the no jetcrash cheat is enabled, the small airports will not show fast aircraft
2007-02-17 12:45:15 +00:00
bjarni
4a41c23b21
(svn r8770) -Fix r8661: corrected some aircraft sprite placement issues in the depot window
2007-02-17 11:17:49 +00:00
KUDr
fe1d448cf8
(svn r8768) -Fix (r8767): VC8 compilation failed 'warning C4146: unary minus operator applied to unsigned type, result still unsigned'
2007-02-17 10:21:48 +00:00
tron
8aacd2585d
(svn r8767) -Fix
...
-Codechange: Do not hardcode the catchment radius of airports, but hold the information in AirportFTAClass
-Fix (r979): The default AI tested possible airport locations with a fixed catchment radius instead of the radius of the to be built airport
2007-02-17 07:45:18 +00:00
KUDr
ee0739561d
(svn r8766) -Fix[YAPF]: rail station platform penalty not calculated properly
2007-02-17 00:18:11 +00:00
rubidium
c04c8382ca
(svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code.
2007-02-16 22:44:56 +00:00
miham
76eb16252a
(svn r8764) -Update: WebTranslator2 update to 2007-02-16 22:03:24
...
afrikaans - 1 changed by TrueTenacity (1)
brazilian_portuguese - 1 fixed, 1 changed by fukumori (2)
bulgarian - 4 fixed by groupsky (4)
dutch - 3 fixed by habell (3)
esperanto - 3 fixed by LaPingvino (3)
finnish - 5 fixed by kerba (5)
icelandic - 15 fixed, 30 changed by scrooge (45)
italian - 3 fixed by sidew (3)
norwegian_bokmal - 13 fixed by oletk (13)
turkish - 3 fixed by jnmbk (3)
2007-02-16 21:06:00 +00:00
tron
cf5949f59d
(svn r8763) -Fix
...
Don't do bogus initialisations and prefer simpler code
2007-02-16 20:03:17 +00:00
celestar
a8e88ae7cc
(svn r8759) -Feature: Allow airports to have up to 4 entry points depending on approach direction. Note: they're not yet used, but will be soon
2007-02-16 12:10:19 +00:00
truelight
ee9f17844d
(svn r8757) -Add: added libtimidity music driver (it is a nice small library simular to timidity via extmidi)
...
[PSP] -Add: added PSP specific code for libtimidity. libtimidity code is based on the work of Turulo. Tnx a bunch!
2007-02-16 09:50:28 +00:00
truelight
d431df8277
(svn r8756) [PSP] -Fix: made the dedicated code compile with PSP. It is almost UNIX, just it needs more includes ;)
...
(or more, it compiles, if it works is a whole other story ;))
2007-02-16 09:39:32 +00:00
tron
87e03c7aa8
(svn r8755) -Fix
...
Abbreviate GetAirport(st->airport_type) to st->Airport()
2007-02-16 09:38:43 +00:00
tron
6c17cd4c46
(svn r8754) -Fix
...
Do not handle a special case for goto hangar orders to oilrigs - they do not have a hangar anyway
2007-02-16 07:32:22 +00:00
belugas
4d988c3506
(svn r8753) -Regression (r8455): Do not unilateraly decide that this engine is a single-headed. Only do it if it previously had no power and that now there is. Or something...
2007-02-16 01:35:18 +00:00
KUDr
ef8c8952b1
(svn r8751) -Fix [lang]: deleted .news and .subs strings causing lang compilation error
2007-02-15 22:00:17 +00:00
KUDr
72cdfb6352
(svn r8750) -Fix (r8747): PLANES defined in wingdi.h caused compilation error under Win32. Changed to AIRPLANES
2007-02-15 22:00:04 +00:00
bjarni
6460d5b441
(svn r8749) -Regression r8331: fixed signed/unsigned issue that could create too many lines in build vehicle windows and crash the game
2007-02-15 20:58:45 +00:00
tron
0697701b33
(svn r8748) -Fix
...
-Codechange: Do not hardcode the airports with a short airstrip anymore, but make it a flag in AirportFTAClass
2007-02-15 20:35:45 +00:00
tron
5231f5669d
(svn r8747) -Fix
...
-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
2007-02-15 20:16:33 +00:00
bjarni
8675b8ec7d
(svn r8746) -Regression r8331: build train window could sort incorrectly by EngineID with certain newGRF sets
2007-02-15 17:51:39 +00:00
truelight
c50396cb15
(svn r8745) [PSP] -Add: added a CSleep() for PSP
2007-02-15 16:15:00 +00:00
celestar
6abbf15a8e
(svn r8744) -Fix(r654/2105): Call GetFirstVehicleInChain only for trains, and assert the vehicle type in that function. Not a critical error, but it does increase game performance by up to 10% when playing a large game (many vehicles) with aircraft/road vehicle newgrfs loaded.
2007-02-15 10:21:00 +00:00
tron
f6b917f609
(svn r8743) -Fix
...
-Codechange: Add a Z adjustment attribute for helicopter pads to AirportFTAClass to get rid of some special cases for oilrigs and heliports
2007-02-15 07:43:06 +00:00
miham
ac95825b92
(svn r8742) -Update: WebTranslator2 update to 2007-02-15 08:05:58
...
american - 3 fixed by WhiteRabbit (3)
brazilian_portuguese - 2 fixed, 7 changed by tucalipe (9)
czech - 3 fixed, 3 deleted, 1 changed by Hadez (7)
estonian - 3 fixed by vermon (3)
french - 3 fixed, 13 changed by Skiper (16)
german - 3 fixed by moewe2 (3)
icelandic - 122 fixed, 11 changed by scrooge (133)
polish - 3 fixed by meush (3)
portuguese - 3 fixed by izhirahider (3)
simplified_chinese - 3 fixed by Fishingsnow (3)
slovenian - 3 fixed, 1 deleted by Necrolyte (4)
spanish - 4 fixed by eusebio (4)
swedish - 4 fixed by daishan (4)
traditional_chinese - 3 fixed by sam0737 (3)
2007-02-15 07:08:22 +00:00
rubidium
79dda0fa07
(svn r8741) -Fix (r8735): make the saveguards of CmdBuildRoadStop more robust and add roadstops.grf to the list of required grfs.
2007-02-14 20:58:19 +00:00
Darkvater
32d2a012e4
(svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx)
2007-02-14 20:48:00 +00:00
Darkvater
3a86ae8ba4
(svn r8739) -Codechange: Update the oldloader debug levels to be more in spec with the guidelines in debug.h.
2007-02-14 20:19:07 +00:00
Darkvater
12868eeb97
(svn r8738) -Fix: TTDP games have all tiles touching the water marked as MP_WATER, we do not (tiles with one corner, or steep tiles), so check and fix these tiles.
2007-02-14 20:17:11 +00:00
Darkvater
c8fb4ddf57
(svn r8737) -Regression (r8621): VEH_Type renumbering wasn't performed for TTD(P) games, failing to load them
2007-02-14 20:10:52 +00:00
miham
9990a67620
(svn r8736) -Update: WebTranslator2 update to 2007-02-14 19:54:03
...
afrikaans - 114 fixed by TrueTenacity (114)
bulgarian - 5 fixed by kokobongo (5)
catalan - 3 fixed by arnaullv (3)
dutch - 3 fixed by habell (3)
russian - 3 fixed by DarkFenX (3)
ukrainian - 3 fixed, 1 deleted, 12 changed by mad (16)
2007-02-14 18:54:46 +00:00
rubidium
0e8f006dc1
(svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p.
2007-02-14 16:37:16 +00:00
celestar
39b73119ca
(svn r8733) -Fix(r8705): Forgot to change some more places where airport blocks are stored
2007-02-14 12:00:43 +00:00
celestar
59a814c6d3
(svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into template functions. Fixes a problem with MSVC and 64-bit shifts.
2007-02-14 11:53:39 +00:00
rubidium
447b16930e
(svn r8730) -Codechange: more replacements of magic numbers by enums and removal of some (by now) redundant comments.
2007-02-14 10:33:36 +00:00
miham
3789e314d9
(svn r8729) [Translations] -Fix: removed dead cases from czech language
2007-02-14 10:22:00 +00:00
miham
6d8021b277
(svn r8728) -Update: WebTranslator2 update to 2007-02-14 10:40:39
...
afrikaans - 112 fixed, 3 changed by TrueTenacity (115)
catalan - 1 fixed by arnaullv (1)
czech - 3 deleted by Hadez (3)
slovak - 64 changed by lengyel (64)
traditional_chinese - 8 changed by thomasau (8)
ukrainian - 9 changed by mad (9)
2007-02-14 09:41:20 +00:00
maedhros
f8b641e753
(svn r8727) -Cleanup (r8366): Remove BIGMULSS64 since it isn't used any more.
2007-02-14 09:39:04 +00:00
rubidium
ecfbfbd98c
(svn r8726) -Codechange: bools are 1 or 0 according to the C++ standard and refactor RoadStop::AllocateBay to remove a loop condition. Suggestions by Tron.
2007-02-14 09:34:12 +00:00
rubidium
f3dc5596ad
(svn r8725) -Fix (r8712): test the first bit of the bitmask, not the nth, as we are shifting the bitmask.
2007-02-14 09:23:52 +00:00
rubidium
59284954ae
(svn r8723) -Codechange: replace yet another couple of magic numbers with enums.
2007-02-14 01:00:57 +00:00
rubidium
f7783212b1
(svn r8721) -Fix (8715): road vehicles could not turn around properly
2007-02-14 00:50:34 +00:00
rubidium
458b564726
(svn r8719) -Fix: some strings have an empty translation where it isn't empty in english.
2007-02-13 23:37:50 +00:00
rubidium
154dff9873
(svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p.
2007-02-13 22:27:27 +00:00
rubidium
86a4b5e169
(svn r8712) -Codechange/cleanup: replace 'magic' constants with enums, use proper types instead of byte, uint etc., give variables more descriptive names and add some comments.
2007-02-13 20:57:02 +00:00
celestar
d9385f2798
(svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed.
2007-02-13 16:36:38 +00:00
celestar
5e880a6a75
(svn r8708) -Codechange(r8514): No need to use "this->" in methods
2007-02-13 15:44:37 +00:00
celestar
8eab3964b4
(svn r8707) -Codechange: Turn IsValidStation into a method of Station
2007-02-13 15:42:52 +00:00
celestar
6f68ac46b8
(svn r8705) -Codechange: Increased the number of airport blocks to 64. This involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums
2007-02-13 12:34:54 +00:00
rubidium
d1d1d170f3
(svn r8703) -Codechange/cleanup: some magic numbers -> enums and other small coding style changes to the ShipController and TrainController.
2007-02-13 11:29:20 +00:00
rubidium
4ec7eb2201
(svn r8701) -Codechange: replace magic numbers with enums for u.rail.track.
2007-02-13 10:46:45 +00:00
rubidium
af3001b988
(svn r8700) -Fix (8698): replaced a magic number with the wrong enum :(
2007-02-13 10:43:50 +00:00
rubidium
a419f4aeda
(svn r8698) -Codechange: enumify the returns of VehicleEnterTile
2007-02-13 10:26:53 +00:00
rubidium
eab6dd9898
(svn r8694) -Codechange: make RoadStop's status accessible via accessor functions.
2007-02-13 00:25:42 +00:00
rubidium
3b0e00e2f9
(svn r8692) -Cleanup: add comments to RoadVehController. Patch by mart3p.
2007-02-12 22:46:10 +00:00
Darkvater
4d4c1e0505
(svn r8691) -Cleanup: Some proper #endif comments for sound/music/video files, and a little elimination of magic numbers in Win32SoundStart
2007-02-12 21:55:10 +00:00
miham
2817acb456
(svn r8690) -Update: WebTranslator2 update to 2007-02-12 20:18:38
...
lithuanian - 11 fixed, 1 changed by Domas (12)
slovak - 63 changed by lengyel (63)
traditional_chinese - 8 changed by thomasau (8)
ukrainian - 1 changed by mad (1)
2007-02-12 19:19:15 +00:00
rubidium
997534a5ea
(svn r8689) -Fix [FS#613] (r8619): crash when an old savegame had buoys on the northern edge of the map.
2007-02-12 12:52:37 +00:00
miham
704c80f27e
(svn r8686) -Update: WebTranslator2 update to 2007-02-12 10:00:57
...
czech - 3 fixed, 59 deleted, 1 changed by Hadez (63)
french - 40 changed by Skiper (36), glx (4)
icelandic - 88 fixed, 25 changed by scrooge (113)
italian - 3 changed by sidew (3)
portuguese - 22 changed by izhirahider (22)
swedish - 6 fixed by daishan (6)
traditional_chinese - 22 changed by xbddc (22)
2007-02-12 09:01:40 +00:00
bjarni
5e8bdaba6a
(svn r8685) -Feature: selecting "end of orders" and clicking delete will delete all the vehicle's orders
...
If the orders are shared, then it will still unshare the orders like before.
2007-02-12 00:38:15 +00:00
rubidium
65001270ef
(svn r8684) -Fix [FS#483] (r3720): a bool (uint32 in PPC) was written to as a uint8. Later those bools are used as index into an array as they expect the value to be 0 or 1.
2007-02-11 23:18:01 +00:00
rubidium
f8ceee0a34
(svn r8681) -Fix (FS#608): wrong comment (rfalke)
2007-02-11 19:31:29 +00:00
truelight
53785810c8
(svn r8678) [PSP] -Add: added LIBS and CFLAGS needed to compile PSP
...
-Fix: PSP needs to link with gcc, not with g++ (don't ask)
-Fix: PSP doens't support threads
2007-02-11 16:28:00 +00:00
truelight
098a63fc53
(svn r8675) [PSP] -Fix: don't autosave in networking for PSP, to time expensive
2007-02-11 14:04:40 +00:00
truelight
0d91ed68a9
(svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
...
-Add: added general header-inclusing for PSP
2007-02-11 13:57:35 +00:00
rubidium
b71d6e1401
(svn r8673) -Codechange: use SetNonBlocking instead of implementing yet another version.
2007-02-11 13:39:23 +00:00
tron
7ee3fc4979
(svn r8671) -Fix
...
Fix some strings which were broken in r7581
2007-02-11 10:30:54 +00:00
bjarni
e133a523c1
(svn r8662) -Fix r8661: don't try to put negative values in unsigned vars
2007-02-10 14:22:11 +00:00
bjarni
0c8078ae29
(svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if a sprite is too big to fit (ships and aircraft only)
...
-Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks
This will make less vehicle type specific code and easier to read resizing based on sprite sizes
2007-02-10 13:37:32 +00:00
tron
356e47f108
(svn r8660) -Fix
...
-Codechange: Remove _avail_aircraft
Its name is misleading. It is rather _avail_airports, but then only some of them, which leads to inconsistencies when using it.
Further it is unnecessary to store it in savegams.
2007-02-10 08:19:39 +00:00
rubidium
b0d4ece2ad
(svn r8651) -Codechange: group the functions related to getting and setting the town index and move one function that is not related to the map array out of town_map.h.
2007-02-09 16:21:03 +00:00
truelight
7cd68b5a07
(svn r8647) -Codechange: add a general way to handle platforms who can only have a limited amount of file-descripters open at any given time.
...
The Fios keeps track how many times a file is opened, and tries to close up files which aren't used often.
The first platform using this is PSP. Patch based on the work of Turulo.
2007-02-08 23:46:25 +00:00
miham
424001168d
(svn r8645) -Update: WebTranslator2 update to 2007-02-08 22:52:39
...
french - 38 changed by Skiper (38)
norwegian_nynorsk - 6 fixed by khaavik (6)
traditional_chinese - 64 changed by thomasau (64)
2007-02-08 21:53:15 +00:00
rubidium
3d04e8f64d
(svn r8637) -Fix: CTRL-clicking on a hangar in the order list segfaulted as hangars are part of a station instead of real depots.
2007-02-08 15:54:36 +00:00
rubidium
6bbbedc8cc
(svn r8635) -Fix: draw canal edges under buoys that are in a canal.
2007-02-08 14:04:02 +00:00
rubidium
ea55a04b69
(svn r8634) -Codechange: replace missing sprites with a red question mark.
2007-02-08 14:02:12 +00:00
truelight
c46a1cc2f6
(svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
...
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
2007-02-08 12:27:53 +00:00
miham
596fb726d0
(svn r8622) -Update: WebTranslator2 update to 2007-02-07 22:44:21
...
finnish - 8 fixed by kerba (8)
russian - 4 fixed, 2 changed by DarkFenX (6)
slovak - 2 changed by lengyel (2)
spanish - 7 fixed by eusebio (7)
traditional_chinese - 38 fixed, 27 changed by thomasau (65)
2007-02-07 21:46:25 +00:00
bjarni
037d636734
(svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
...
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
Surprisingly this can be done without changing the savegame format
2007-02-07 19:10:19 +00:00
rubidium
5666d8d727
(svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros).
2007-02-07 18:01:26 +00:00
rubidium
d95a872579
(svn r8619) -Fix: store the ownership of a water tile in the buoy tile and set the ownership of the water tile when the buoy is removed. This solves the issue of removing ownership from canal tiles thus making is possible for other players to remove the canal tile.
2007-02-07 17:52:21 +00:00
tron
eab0379264
(svn r8618) -Fix
...
Remove redundant assignments. The function call just before already does it
2007-02-07 13:46:28 +00:00
tron
9ad50fff33
(svn r8617) -Fix
...
Fix harmless typo: s/,/;/
2007-02-07 08:36:53 +00:00
miham
122f23a470
(svn r8616) -Update: WebTranslator2 update to 2007-02-06 22:31:04
...
american - 6 fixed by WhiteRabbit (6)
brazilian_portuguese - 11 changed by fukumori (11)
croatian - 29 fixed, 1 changed by tperic (30)
danish - 2 fixed by MiR (2)
dutch - 4 fixed by habell (4)
french - 1 fixed by glx (1)
korean - 18 changed by leejaeuk5 (4), darkttd (14)
russian - 4 fixed, 31 changed by DarkFenX (35)
slovak - 7 fixed by lengyel (7)
traditional_chinese - 2806 fixed by sam0737 (93), cylau0 (412), xbddc (109), thomasau (440), tiberiusteng (1752)
ukrainian - 4 fixed, 1 deleted, 3 changed by mad (8)
2007-02-06 21:31:55 +00:00
miham
17c8b38f7a
(svn r8614) [Translations] -Prepare: prepare committing traditional chinese
2007-02-06 21:26:54 +00:00
KUDr
f801a5c04f
(svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build
2007-02-06 19:16:38 +00:00
maedhros
7a685a35fc
(svn r8612) -Fix (r117) [FS#582]: When the currently selected player in the performance
...
details window is no longer active, choose the first active player instead of
the first player as that may also be inactive.
2007-02-06 15:50:15 +00:00
celestar
3dc645ce0a
(svn r8611) -Fix: Moved the aircraft speed limiting into UpdateAircraftSpeed and enummed some speed limits. This should give a more steady display in the status bar during taxiing
2007-02-06 15:38:23 +00:00
bjarni
80125fd934
(svn r8610) -Codechange/Feature: rewrote the list handling in the autoreplace window
...
-The user will notice the following changes:
All vehicle types behaves in the same way
Adding/removing an engine (new design and so on) can no longer result in the window selecting a new engine
All valid replacements will be displayed since it looks at refitting options as well (this solves the missing ships with the newships GRF)
Since you can't replace an engine into itself, the engine selected in the left list will no longer appear in the right list
-The code changes:
Instead of looping all engines all the time, each list generates a list like the build windows
This ensures consistent list generation since only one function can loop all engines
Unified code for all vehicle types
It now use the lists to call the drawing code in the build vehicle window
Works on selected EngineIDs instead of selected index in the list
2007-02-06 11:11:12 +00:00
rubidium
2918fab68d
(svn r8609) -Fix: a road vehicle that is very close after another (slower) road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel.
2007-02-06 09:29:56 +00:00
rubidium
8c3793a088
(svn r8608) -Fix: you were unable to build roads in the scenario editor when there is no town 0, even though there are other towns.
2007-02-06 09:25:52 +00:00
bjarni
ca1a88f6c4
(svn r8605) -Codechange: [OSX] changed all objective C to objective C++
...
This will permanently solve the issue where compilation on OSX broke because C++ code was added to some header files
-Note: (important if you develop mac specific code)
taken from http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html
gdb lacks an integrated C++ with Objective-C parser. This means that gdb won't be able to evaluate expressions that contain both C++ and Objective-C constructs.
gdb assumes that the language for ".mm" files is C++.
you can change it to objective C by typing: (gdb) set language objc
Mixing C++ and objective C has some limitation (see link for all of them)
2007-02-05 21:16:56 +00:00
rubidium
1bf688e5b5
(svn r8593) -Fix (FS#564): bridges do not get destroyed when the bridge head gets flooded and there is a vehicle on the bridge. Original patch by KeeperofTheSoul.
2007-02-05 14:00:32 +00:00
miham
cf5f19520c
(svn r8588) -Update: WebTranslator2 update to 2007-02-04 19:36:03
...
catalan - 1 fixed by arnaullv (1)
czech - 3 fixed, 12 changed by Hadez (15)
esperanto - 2 fixed by LaPingvino (2)
hungarian - 4 fixed by miham (4)
korean - 8 fixed by leejaeuk5 (8)
portuguese - 2 fixed, 2 changed by izhirahider (4)
russian - 11 fixed, 14 changed by DarkFenX (25)
2007-02-04 18:36:43 +00:00
tron
6b72228df5
(svn r8582) -Fix
...
Reorder the attributes of some structs to reduce their size
2007-02-04 13:46:21 +00:00
KUDr
ccffde6d7e
(svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build)
2007-02-04 11:33:02 +00:00
rubidium
8b8e41ceb8
(svn r8575) -Fix (8125): remove unused include
2007-02-04 11:31:24 +00:00
KUDr
62486a73ed
(svn r8574) -Fix: Silence VC2003 warning: "compiler limit : terminating debug information emission for enum 'StringIdEnum'"
2007-02-04 11:30:22 +00:00
rubidium
ec058624ad
(svn r8573) -Cleanup: obey the comment style in stdafx.h.
2007-02-04 11:20:24 +00:00
rubidium
1945653380
(svn r8572) -Fix: use the C++ version of the Standard C Library headers. This due to the fact that some stl headers will include them anyway and #undef several defines made in stdafx.h.
...
An example of this is that fopen that we redefine to _wfopen (for Windows Unicode compatability), is reverted to a non-Windows Unicode compatible fopen. This makes it impossible to start openttd with non-ASCII characters in the path or load savegames with non-ASCII characters under Windows.
2007-02-04 11:14:42 +00:00
tron
880412c5fd
(svn r8570) -Fix
...
Add a regular constructor and destructor to AirportFTAClass
2007-02-04 10:25:57 +00:00
peter1138
e724ada674
(svn r8569) -Fix (r8464): revert properly
2007-02-04 05:53:09 +00:00
maedhros
6c23767d3c
(svn r8567) -Feature: Allow upgrading bridges by building a new bridge over the top. (Based on a patch by gigajum)
...
- The replacement bridge must be the same transport type, and if it's a rail bridge it must have the same railtype.
- Town owned bridges can also be upgraded, but only to a bridge with a higher top speed.
2007-02-03 21:55:14 +00:00
tron
b1e3466b1d
(svn r8566) -Fix
...
Remove untranslated strings
2007-02-03 21:13:34 +00:00
tron
d80747fb16
(svn r8565) -Fix
...
Fix indentation
2007-02-03 20:15:17 +00:00
tron
4b5bed99a2
(svn r8564) -Fix
...
Remove incorrect empty translations
2007-02-03 20:12:06 +00:00
tron
77be0abd3d
(svn r8563) -Fix
...
Replace very old tabs which should be spaces by spaces
2007-02-03 20:11:10 +00:00
miham
f32a3eb7d6
(svn r8562) -Update: WebTranslator2 update to 2007-02-03 19:51:53
...
brazilian_portuguese - 1 changed by fukumori (1)
croatian - 78 fixed, 1 changed by tperic (79)
german - 15 changed by Neonox (15)
portuguese - 4 fixed by izhirahider (4)
russian - 10 fixed by DarkFenX (10)
slovenian - 4 fixed by Necrolyte (4)
2007-02-03 18:56:42 +00:00
tron
1a3b4b7394
(svn r8559) -Fix
...
-Codechange: Put the airport movement data into struct AirportFTAClass
2007-02-03 13:03:11 +00:00
tron
c326ff3795
(svn r8550) -Fix
...
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
2007-02-03 09:05:43 +00:00
tron
981833751a
(svn r8549) -Fix
...
Do not check whether the end of the depot array has been reached when building an aircraft. This cannot happen, just assert it really does not happen
2007-02-03 08:30:22 +00:00
tron
c3d971c855
(svn r8548) -Fix
...
Remove redundant second retrieval of the AircraftVehicleInfo when building an aircraft
2007-02-03 07:54:13 +00:00
tron
feab2ace94
(svn r8547) -Fix
...
Remove redundant second retrieval of the station and airport when building an aircraft
2007-02-03 07:47:00 +00:00
rubidium
500f9a971a
(svn r8546) -Codechange: add a seperate (wrapper) functions to send/receive booleans.
2007-02-02 23:16:58 +00:00
rubidium
9ddd227eb3
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
2007-02-02 21:32:58 +00:00
rubidium
6a820a30d1
(svn r8543) -Codechange: make a real difference between querying the server via UDP and TCP.
2007-02-02 21:04:50 +00:00
rubidium
07b9d95c3c
(svn r8542) -Codechange (Fix?): tweak the gamelist requery timeout so more servers are found for slow network connections.
2007-02-02 20:57:03 +00:00
KUDr
e66028538a
(svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan)
2007-02-02 20:20:56 +00:00
tron
4216c10eb1
(svn r8539) -Fix
...
static
2007-02-02 19:09:54 +00:00
tron
e0a46a08e9
(svn r8538) -Fix
...
GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
2007-02-02 19:07:20 +00:00
miham
8baecb778d
(svn r8537) -Update: WebTranslator2 update to 2007-02-02 19:45:42
...
brazilian_portuguese - 33 changed by fukumori (33)
danish - 2 fixed by MiR (2)
esperanto - 6 fixed, 1 changed by LaPingvino (7)
italian - 4 changed by sidew (4)
2007-02-02 18:48:37 +00:00
celestar
22dc618582
(svn r8536) -Fix (FS#577): Road Vehicles now can obtain a slot even if the station is very spread out
2007-02-02 16:51:10 +00:00
belugas
1c013055b6
(svn r8535) -Feature: Allow lumbermill to cut trees only when they are full grown.
...
This does not affect output of the mill, but make the visual aspect of it more accurate.
Prior of this, the mill produced cargo of the same amount even if the trees are on their first stages of growth.
2007-02-02 15:14:28 +00:00
celestar
6f01ba5ad9
(svn r8534) -Feature/Codechange: Provide aircraft with vertical separation depending on their altitude and velocity
2007-02-02 15:04:59 +00:00
rubidium
904088f2f9
(svn r8533) -Fix: segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar.
2007-02-02 14:32:23 +00:00
tron
be26fbcbb3
(svn r8531) -Fix
...
Remove unnecessary pointer mumbo-jumbo from FindRoadStopSpot()
2007-02-02 08:23:48 +00:00
celestar
90528dc78e
(svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming conflict no longer exists.
2007-02-02 07:48:06 +00:00
miham
ae3982dbec
(svn r8527) -Update: WebTranslator2 update to 2007-02-02 07:41:47
...
brazilian_portuguese - 6 fixed, 363 changed by fukumori (369)
bulgarian - 6 fixed by groupsky (6)
catalan - 6 fixed by arnaullv (6)
croatian - 54 fixed, 3 changed by tperic (57)
czech - 6 fixed by Hadez (6)
danish - 2 fixed, 1 changed by MiR (3)
dutch - 2 fixed by habell (2)
estonian - 6 fixed by kristjans (6)
french - 4 fixed by glx (4)
german - 6 fixed, 2 changed by Neonox (8)
hungarian - 2 fixed by miham (2)
italian - 6 fixed, 4 changed by lorenzodv (6), sidew (4)
japanese - 6 fixed by ickoonite (6)
polish - 4 fixed by meush (4)
simplified_chinese - 6 fixed by Fishingsnow (6)
slovenian - 39 fixed, 1 deleted, 2 changed by Necrolyte (42)
turkish - 6 fixed by jnmbk (6)
ukrainian - 41 fixed, 1 deleted, 22 changed by znikoz (1), mad (63)
2007-02-02 06:42:55 +00:00
peter1138
2e2e19b3d1
(svn r8526) -Codechange: add stubs for unsupported newgrf station properties
2007-02-02 02:56:29 +00:00
rubidium
59f4f056df
(svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet functions of NetworkTCPSocketHandler.
2007-02-01 23:50:15 +00:00
Darkvater
4ebb009ab4
(svn r8524) -Cleanup: Ala r8509 add some enum names to the generate landscape window
2007-02-01 23:39:48 +00:00
rubidium
16ce6def09
(svn r8523) -Codechange: move all the Network(Recv|Send)_(uintXX|string) functions to Packet.
2007-02-01 23:26:44 +00:00
Darkvater
19c90a3bc0
(svn r8522) -Regression (r8512): The flat/random window moved the to scenario editor did not use the right settings for generating land
2007-02-01 22:54:04 +00:00
rubidium
99f860e686
(svn r8521) -Codechange: initial step in converting Packet to a class; make and use constructors and functions related to the reading/saving the packet size.
2007-02-01 22:30:35 +00:00
rubidium
15980fc023
(svn r8520) -Fix/Feature: requery gameservers that did not respond to their first query.
2007-02-01 21:04:40 +00:00
celestar
5678febfe2
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
2007-02-01 16:48:38 +00:00
Darkvater
33cadd5043
(svn r8513) -Cleanup (r8512): Remove the now unused strings from the language files, as well as two others that weren't used for ages (tgp had other strings for them, or simply not).
2007-02-01 16:28:11 +00:00
Darkvater
cace026c1b
(svn r8512) -Codechange: From the intro window enter the scenario editor. From the scenario editor dialog, remove the 'load heightmap' option and put that with the other options like 'load scenario', 'save scenario', etc. Play a little bit with positioning of elements inside the scenario editor dialog so it looks better.
2007-02-01 16:21:56 +00:00
rubidium
c8882bd3d2
(svn r8511) -Codechange: make WindowClass an enumerated value.
2007-02-01 15:49:12 +00:00
Darkvater
01a9abc7e5
(svn r8509) -Cleanup: Add some enum names to the create scenario window
2007-02-01 14:29:06 +00:00
Darkvater
50909e272b
(svn r8508) -Codechange (r5762): [win32] Use an atomic operation to query and set the value of _global_dir_is_in_use for opendir etc to guarantee concurrency.
2007-02-01 13:01:05 +00:00
Darkvater
3c2cb4871e
(svn r8507) -Codechange/Feature: Don't remove player-owned property on-load in the scenario editor. Add a button to the landscape window to do this.
2007-02-01 12:51:10 +00:00
peter1138
74c842a3ef
(svn r8505) -Codechange: Ensure GRM allocated sprites will be below the original 16384 sprite limit. If not, fail and disable the NewGRF.
2007-02-01 01:40:46 +00:00
maedhros
d8edc2bb98
(svn r8501) -Fix (r7377) [FS#539]: Keep track of how much cargo has been paid for, so that cargo cannot be paid for more than once.
2007-01-31 22:33:24 +00:00
tron
43242302e0
(svn r8499) -Fix
...
-Fix (?): When removing an oil rig replace the station tile by water, not bare land
2007-01-31 21:42:58 +00:00
tron
ce12ae7420
(svn r8498) -Fix
...
-Codechange: Move the update of the oil rig airport type to the recently (r8485) added loop
2007-01-31 21:38:09 +00:00
Darkvater
c5c0a54a50
(svn r8497) -Codechange: Increase the size of the sound/video/music-drivers to 32 bytes (instead of 16) so their actual parameters can be passed. Sound has for example 'bufsize' and 'hz'. Also use the recently introduced StrEmpty().
2007-01-31 20:20:36 +00:00
tron
63a5b0e8be
(svn r8485) -Fix
...
-Fix (since the dawn of time): Remove phantom oil rigs sometimes present in old savegames
2007-01-31 10:50:12 +00:00
KUDr
f5d74b8af6
(svn r8482) -Revert (r8480): let others to do it properly
2007-01-31 10:27:45 +00:00
KUDr
a5198858d8
(svn r8480) -Fix [lang]: Error caused by missing case
2007-01-31 09:54:35 +00:00
KUDr
f9462a50e9
(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
...
-Codechange: 'typedef struct Packet' changed to 'struct Packet'
2007-01-31 09:51:22 +00:00
tron
d1b861a3dc
(svn r8478) -Fix
...
Change the structure of the the loop in r8477 to prepare for further changes
2007-01-31 09:49:02 +00:00
tron
fe1691acce
(svn r8477) -Fix
...
-Codechange: Remove the unnecessary attributes Station::{bus,lorry}_tile_obsolete by replacing them with a scan of the map for existing road stops when loading old savegames
2007-01-31 06:25:46 +00:00
tron
6e20c73c33
(svn r8476) -Fix
...
Remove the unused remnants of {bus,truck}_stop_status_obsolete
(though I wonder a bit why this information doesn't get converted on load *shrug*)
2007-01-31 05:08:07 +00:00
tron
5d4241db30
(svn r8475) -Fix
...
Remove the unused remnants of blocked_months_obsolete
2007-01-31 05:01:29 +00:00
tron
f5b41a2fbb
(svn r8474) -Fix
...
Turn GetPrimaryRoadStop() into a method of struct Station
2007-01-31 04:34:56 +00:00
peter1138
d838a477e2
(svn r8465) -Regression (r8455): Switching from dual to single head should switch to wagon if power is zero. .Or something.
2007-01-30 22:00:25 +00:00
peter1138
8933ffd9ac
(svn r8464) -Revert (r4322): Change back to converting to mph in the GUI code, as 1 mph == 1.6 km/h is too far out for some people.
2007-01-30 21:10:04 +00:00
miham
6e85681ae0
(svn r8462) -Update: WebTranslator2 update to 2007-01-30 19:52:32
...
french - 2 fixed by glx (2)
polish - 2 fixed by meush (2)
ukrainian - 36 fixed, 10 changed by mad (46)
2007-01-30 18:53:10 +00:00
rubidium
86b046864a
(svn r8461) -Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console.
2007-01-30 17:22:56 +00:00
bjarni
be19961f1e
(svn r8460) -Fix (r8455): the build train window put locomotives and wagons in appeantly random order
2007-01-30 17:19:58 +00:00
rubidium
291b7925ee
(svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to NetworkSocketHandler, so it can also be used the TCP socket handler.
2007-01-30 17:12:46 +00:00
miham
7feba09d9f
(svn r8456) -Update: WebTranslator2 update to 2007-01-30 16:08:37
...
american - 4 fixed by WhiteRabbit (4)
brazilian_portuguese - 4 fixed by fukumori (4)
danish - 16 changed by MiR (16)
esperanto - 4 fixed by LaPingvino (4)
french - 32 changed by glx (32)
italian - 4 fixed by sidew (4)
japanese - 4 fixed, 2 changed by ickoonite (4), PouncingAnt (2)
korean - 1 changed by darkttd (1)
norwegian_nynorsk - 4 fixed by pollux (4)
portuguese - 6 changed by izhirahider (6)
romanian - 4 fixed by kneekoo (4)
slovak - 4 fixed by lengyel (4)
slovenian - 43 fixed, 38 changed by Necrolyte (81)
spanish - 4 fixed by jfrank (4)
swedish - 4 fixed by daishan (4)
ukrainian - 45 fixed, 7 deleted, 18 changed by mad (14), znikoz (56)
2007-01-30 15:09:33 +00:00
belugas
0c45071bb0
(svn r8455) -Codechange: Give a more meaningful name (railveh_type)to member flags of RailVehInfo, as well as changing the code to reflect the fact that it was not a flag but rather a one value only variable. Doing so, some evaluations have been simplified.
...
-Codechange: Add and use RAILVEH_SINGLEHEAD when railveh_type is set to 0, which was implicit before.
-Cleanup: Remove some extraneous parenthesis.
2007-01-30 11:53:35 +00:00
tron
e3b63e6d83
(svn r8449) -Fix
...
-Codechange: Remove the superfluous attribute RoadStop::prev
2007-01-28 21:54:40 +00:00
Darkvater
39a50e3723
(svn r8448) -Codechange/Fix (r2993): Also update the helicopter's rotor when loading the game. This can solve crashes when a game is loaded with missing GRF's
2007-01-28 21:53:13 +00:00
rubidium
00782c089d
(svn r8446) -Fix (8445): accidentally made a function that should not be abstract abstract.
2007-01-28 20:54:30 +00:00
rubidium
f72dde5236
(svn r8445) -Cleanup: remove some @params from comments as the parameters did not exist anymore and add comments to several variables/functions.
2007-01-28 20:47:25 +00:00
miham
2e984e0477
(svn r8444) -Fix: [Translations] Fixes from russian translator Quark
2007-01-28 18:44:09 +00:00
miham
79c10eea5e
(svn r8443) -Update: WebTranslator2 update to 2007-01-28 19:36:45
...
czech - 4 fixed by Hadez (4)
danish - 1 changed by MiR (1)
korean - 3 changed by darkttd (3)
turkish - 4 fixed by jnmbk (4)
2007-01-28 18:37:22 +00:00
rubidium
5d3ad5601d
(svn r8437) -Codechange: move often duplicated (in MSU) define to the udp header.
2007-01-28 13:07:24 +00:00
tron
508dc154df
(svn r8436) -Fix
...
-Feature: When linking the terraform toolbar to the build toolbars place them side by side instead of on top of each other
2007-01-28 10:09:40 +00:00
peter1138
60ddc05925
(svn r8434) -Fix (r8430): Missing braces caused compilation failure for some (most?) compilers...
2007-01-27 22:28:28 +00:00
miham
f5412c1a41
(svn r8431) -Update: WebTranslator2 update to 2007-01-27 19:34:37
...
catalan - 4 fixed by arnaullv (4)
danish - 4 fixed, 2 changed by MiR (6)
dutch - 4 fixed by habell (4)
french - 4 fixed by glx (4)
german - 4 fixed by Neonox (4)
hungarian - 4 fixed by miham (4)
korean - 4 fixed, 4 changed by Nios (4), leejaeuk5 (4)
lithuanian - 2 changed by Domas (2)
polish - 4 fixed by meush (4)
portuguese - 4 fixed by izhirahider (4)
simplified_chinese - 4 fixed by Fishingsnow (4)
slovenian - 4 fixed, 410 changed by Necrolyte (414)
ukrainian - 34 fixed, 49 changed by mad (79), znikoz (4)
2007-01-27 18:35:30 +00:00
tron
430e64c848
(svn r8430) -Fix
...
Replace the rather obscure control flow for handling aircraft/ship/train orders by something remotly comprehensible (see r3584)
2007-01-27 16:45:16 +00:00
Darkvater
08c21c0c61
(svn r8429) -Codechange: Add a name for AircraftVehicleInfo subtype helicopter and remove some magic numbers related to the subtype.
2007-01-27 12:45:55 +00:00
Darkvater
50ca901b40
(svn r8428) -Codechange: Add proper names to aircraft subtypes instead of magic numbers and add a function IsNormalAircraft() which tells us whether the aircraft is in fact some flying device or a rotor/shadow.
2007-01-27 12:29:55 +00:00
tron
8bebb83de9
(svn r8427) -Fix
...
s/m?/m³/
2007-01-27 10:58:44 +00:00
tron
020c352ebf
(svn r8426) -Fix
...
Slightly simplify the code which determines whether to build a rail or a road bridge
2007-01-27 10:08:08 +00:00
tron
e0df42b3a3
(svn r8425) -Fix
...
Do not try to invalidate a window which just got deleted. It is pointless
2007-01-26 20:51:35 +00:00
tron
8a70d42603
(svn r8424) -Fix
...
Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
2007-01-26 20:49:40 +00:00
tron
e7dd766c1e
(svn r8423) -Fix
...
Do not explicitly pass the station specification and the station to ResolveStation(). They are already contained in the ResolverObject
2007-01-26 20:39:36 +00:00
tron
ccfddeca9c
(svn r8422) -Fix
...
-Regression (r8314): Reevaluate the disabled elrail setting after loading because the railtype doesn't get saved anymore
2007-01-26 20:22:34 +00:00
Darkvater
7b38614756
(svn r8421) -Codechange (r8420): rename STR_AVAILABLE_VEHICLES to STR_AVAILABLE_ROAD_VEHICLES for clarificaton (Tron)
2007-01-26 19:30:11 +00:00
Darkvater
1b47b17450
(svn r8420) -Codechange (r7418): Rename the 'New <vehtype>' button of the global vehicle lists to 'Available <vehtype>' as it is a view-only list, not one from which you can purchase (rolling) stock.
2007-01-26 19:24:02 +00:00
miham
6fd747adbb
(svn r8419) -Update: WebTranslator2 update to 2007-01-26 19:40:39
...
brazilian_portuguese - 1 changed by fukumori (1)
korean - 1 changed by Nios (1)
ukrainian - 1 fixed, 23 changed by mad (24)
2007-01-26 18:41:15 +00:00
KUDr
201ba1f5c3
(svn r8414) -Codechange: Use own AutoPtrT instead of std::auto_ptr.
...
-Simplifies assignment from raw pointers
-Should be harder to crash the program by incorrect assignment into it.
-Should help with MorphOS compilation errors
2007-01-26 11:38:07 +00:00
KUDr
29a332e829
(svn r8413) -Fix [MORPHOS]: disable #define offsetof conflict on Morphos (seems that g++ 2.95 defines it anyway)
2007-01-26 08:37:48 +00:00
truelight
40f966958e
(svn r8412) [MorphOS] -Fix: assert_compile(x != y) doesn't work, but assert_compile(!(x == y)) does.. don't ask me why!
2007-01-26 08:36:02 +00:00
truelight
cf07eafb97
(svn r8411) [MorphOS] -Fix: tons of unneeded warnings in networking code, because MorphOS wants UBYTE arrays and we use char arrays. Solution is a bit hackish.
2007-01-26 08:27:59 +00:00
tron
c9f4c637fb
(svn r8410) -Fix
...
-Fix: Fix an out of bounds array access when assigning the engine type in the _engine array
This usually hits the _engine_name_strings array and causes an invalid StringID, though it depends on the compiler which data structure gets placed after the _engines array.
Most probably this was exposed by removing railtype from Engine, which changed the size of this struct.
2007-01-26 07:50:34 +00:00
Darkvater
f4dad30da7
(svn r8409) -Regression (r8049): When the latest news was deleted, the news queue wrapped back to the oldest item, showing all news again.
...
-Regression [FS#573] (r8049): ShowLastNewsMessage could show an out-of-bounds news item because it did not checked if a previous item actually existed the first time it is called (forced news is INVALID_NEWS).
2007-01-26 00:25:39 +00:00
miham
c153058378
(svn r8404) -Update: WebTranslator2 update to 2007-01-25 19:36:44
...
korean - 2 changed by leejaeuk5 (2)
slovak - 1 changed by lengyel (1)
slovenian - 290 changed by Necrolyte (290)
ukrainian - 1 fixed, 55 changed by mad (7), znikoz (49)
2007-01-25 18:37:21 +00:00
celestar
113fa175a4
(svn r8403) -Fix (r8402): Forgot to remove an enum
2007-01-25 11:11:43 +00:00
celestar
b0a0086e7c
(svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
2007-01-25 10:06:58 +00:00
celestar
600cb8a314
(svn r8401) -Codechange: Make 'IsValidRoadStop' a method of RoadStop and rename it to 'IsValid'
...
-Codechange: While I'm at it, put 'RoadStop::AllocateRaw' into the protected section
2007-01-25 08:58:09 +00:00
tron
e85cd647e1
(svn r8400) -Fix
...
Simplify r8399
2007-01-25 07:11:06 +00:00
glx
35de25eec1
(svn r8399) -Fix (r8185): a new road stop was always created in CmdBuildRoadStop(), but it was not deleted if DC_EXEC flag was not set or if the station creation failed
2007-01-25 01:29:24 +00:00
Darkvater
9727bb4cfc
(svn r8398) -Cleanup: Remove WATCOM crud from strgen and map.h include from macros.h as it is no longer needed.
2007-01-24 21:23:35 +00:00
bjarni
fb5a0ba6df
(svn r8397) -Codechange: [orders window] don't move the refit button to the same location as the unload button
...
instead assert if the widget array place them at different locations
2007-01-24 19:19:12 +00:00
miham
2d93411e39
(svn r8396) -Update: WebTranslator2 update to 2007-01-24 19:41:28
...
estonian - 1 fixed by vermon (1)
finnish - 1 fixed by kerba (1)
greek - 13 fixed by Kesnar (13)
norwegian_bokmal - 1 fixed by oletk (1)
romanian - 1 fixed by kneekoo (1)
spanish - 1 fixed by eusebio (1)
ukrainian - 31 fixed, 24 changed by znikoz (4), mad (51)
2007-01-24 18:42:14 +00:00
bjarni
fc16b983f1
(svn r8395) -Cleanup: [orders window] moved the refit button two places up, so the order of the widget array fits the placement on the screen
2007-01-24 18:41:27 +00:00
bjarni
d2597d1fd6
(svn r8394) -Cleanup: added an enum with widget names to the orders window
2007-01-24 18:22:31 +00:00
tron
18effde565
(svn r8393) -Fix
...
-Codechange: CheckCompatibleRail() is only called for tiles which are known to contain a piece of rail. Simplify the function accordingly by eliminating unnecessary checks.
-Fix (?): Also fix an inconsistency in deciding what a compatible rail type is between level crossings and other rail tiles. It is unknown if this caused any problems.
2007-01-24 18:03:36 +00:00
tron
09502deabe
(svn r8392) -Fix
...
Use HASBIT() instead of implementing it manually
2007-01-24 17:58:07 +00:00
peter1138
20e0a91506
(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
2007-01-24 15:01:20 +00:00
bjarni
8c098db7a8
(svn r8390) -Codechange (r8384): Rewrote ResizeButtons()
...
Now it only works on first and last widget to resize
It now works with offsets correctly (no longer assumes the left is 0)
It's no longer needed to have a widget right of the ones you resize
Can handle any number of widgets
2007-01-24 14:32:20 +00:00
tron
0996de79df
(svn r8385) -Fix
...
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
2007-01-24 07:14:09 +00:00
bjarni
e2f72cbf1f
(svn r8384) -Codechange: [GUI] instead of writing a resize button function for each window, a global ResizeButtons() is added
2007-01-24 02:36:55 +00:00
bjarni
a1a6e1eb85
(svn r8383) -Feature: train detail window is now resizable horizontally (requested by Wolf01)
2007-01-24 01:37:04 +00:00
bjarni
072e429220
(svn r8382) -Fix (r8374): moved the include of stdint.h to the front of stdafx.h
...
This fixes the issue where OSX included stdint.h though other includes before defining __STDC_LIMIT_MACROS (and failed to compile because of this)
2007-01-24 00:55:35 +00:00
bjarni
a73f67af40
(svn r8381) -Fix (r8377): [build vehicle window] cleaned up the train refitable detection. It had two variables doing the same thing, but not always set to the same (oops)
2007-01-23 21:24:26 +00:00
miham
d2ca1494be
(svn r8380) [Translations] -Fix: After held a developer mini-conference upon this wrong argidx issue, we decided to remove the {P ..} from STR_TONS
2007-01-23 20:55:08 +00:00
bjarni
9f31b897b6
(svn r8379) -Cleanup: [build vehicle window] removed overloading with DrawVehiclePurchaseInfo() and renamed them into type specific names
2007-01-23 20:55:04 +00:00
bjarni
9c6317a203
(svn r8378) -Fix (r8331): [build vehicle window] extended the widget with the details with one line since some newgrf trains needs it
2007-01-23 20:23:13 +00:00
bjarni
8d89ca48e1
(svn r8377) -Fix (r8331): [build vehicle window] train cargo capacity now only add "(refitable)" if the engine in question is refitable
2007-01-23 20:01:04 +00:00
rubidium
e6ea9ba0f5
(svn r8376) -Codechange: remove unused table
2007-01-23 19:36:59 +00:00
miham
233948946f
(svn r8375) -Update: WebTranslator2 update to 2007-01-23 19:34:40
...
brazilian_portuguese - 2 changed by fukumori (2)
esperanto - 14 changed by LaPingvino (14)
simplified_chinese - 6 fixed, 10 changed by Fishingsnow (16)
slovenian - 394 changed by Necrolyte (394)
ukrainian - 68 changed by mad (61), znikoz (7)
2007-01-23 18:37:00 +00:00
maedhros
18fa2ca233
(svn r8374) -Fix (r8367): LLONG_MAX isn't always defined, and INT64_MAX describes the
...
required value better anyway. However, INT64_MAX comes from stdint.h which
doesn't seem to exist on MSVC or MorphOS, so it's defined manually for them.
2007-01-23 15:47:28 +00:00
rubidium
cfb7fb3ac4
(svn r8373) -Codechange: remove some obsolete MSVC6 compatability defines
2007-01-23 14:58:10 +00:00
rubidium
269c1a58a0
(svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater.
2007-01-23 14:47:38 +00:00
bjarni
c856c26611
(svn r8371) -Codechange: [autoreplace GUI] moved the autoreplace GUI to a file of it's own
...
Note: it's the same as r8363, only this time the svn history of autoreplace should be preserved
2007-01-23 13:26:12 +00:00
bjarni
422004013e
(svn r8370) -Revert (r8363): the autoreplace GUI move cleared the file history
2007-01-23 13:10:43 +00:00
maedhros
914c8147c0
(svn r8369) -Cleanup: [Graphs] Rename include_neg and adj_height to more descriptive names, and add some more comments.
2007-01-23 12:41:04 +00:00
maedhros
a014ace8e7
(svn r8368) -Cleanup: [Graphs] Rename the variables relating to whether datasets should be drawn, and use HASBIT for testing against them.
2007-01-23 12:19:41 +00:00
maedhros
3e43565fb3
(svn r8367) -Fix: [Graphs] Don't try to use the same value to mean something is invalid for both an int64 and a uint.
2007-01-23 11:20:59 +00:00
maedhros
75e7b2e6df
(svn r8366) -Codechange: [Graphs] Make the scaling code less cryptic, and fix two longstanding bugs.
...
1) If the graph contained negative values, the y axis labels were half the size they should have been.
2) If the maximum value was larger than the height of the graph in pixels << 32, all datapoints were scaled to 0.
2007-01-23 10:21:51 +00:00
bjarni
8c3e4ead65
(svn r8364) -Codechange (r8362): added an assert to catch conditions where a request wants to draw more vehicles than the list contains
2007-01-23 01:00:56 +00:00
bjarni
97effdcb96
(svn r8363) -Codechange: [autoreplace GUI] moved the autoreplace GUI to a file of it's own
2007-01-23 00:04:17 +00:00
bjarni
a9a1fd8c20
(svn r8362) -Codechange: [vehicle build window] moved the engine drawing loop to a function of it's own
...
-Fix (r8335): [vehicle build window] ship sprites were moved two pixels to the left
2007-01-22 23:23:30 +00:00
rubidium
3e10a726e5
(svn r8361) -Codechange: make sure the range of the dates coming from the network are valid in OpenTTD
...
-Codechange: use_password is a boolean variable
-Codechange: move range checking for server_lang and map_set to Recv_NetworkGameInfo
2007-01-22 21:38:16 +00:00
miham
5f72bb18ca
(svn r8360) [Translations] -Fix: removed 4 empty strings from simplified chinese translation
...
-Fix: added dummy ownname to Korean, translator will have to supply it through WT2
2007-01-22 21:00:38 +00:00
miham
1f826dc002
(svn r8359) [Translations] -Change: Removed the .UTF-8 suffix from isocodes
2007-01-22 20:52:20 +00:00
maedhros
a830397501
(svn r8356) -Codechange: [Graphs] Rename mx to highest_value, and fix the scaling for negative values.
2007-01-22 20:38:19 +00:00
miham
eedd58484f
(svn r8354) -Update: WebTranslator2 update to 2007-01-22 19:27:50
...
american - 1 fixed by WhiteRabbit (1)
brazilian_portuguese - 5 changed by fukumori (5)
esperanto - 4 changed by LaPingvino (4)
japanese - 28 changed by ickoonite (28)
korean - 6 fixed, 151 changed by leejaeuk5 (157)
simplified_chinese - 7 fixed, 2 changed by Fishingsnow (9)
2007-01-22 18:28:30 +00:00
bjarni
edf2f70565
(svn r8353) -Cleanup: added IsPlayerBuildableVehicleType() to autoreplace code (duplicated code removal)
2007-01-22 16:48:36 +00:00
maedhros
35c80532e9
(svn r8350) -Codechange: [Graphs] Use DrawStringCentered instead of a hardcoded offset to make the string appear centred.
2007-01-22 16:26:45 +00:00
bjarni
8de4196410
(svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with real static inline functions
2007-01-22 16:16:52 +00:00
maedhros
053dd86a3c
(svn r8347) -Codechange: [Graphs] Make some more variables local to the loops they're used in, and remove some assumptions about the size of an array.
2007-01-22 15:46:57 +00:00
bjarni
29a89e0a2f
(svn r8343) -Cleanup: [build vehicle windows] added a few comments and removed two switch-cases, that we can do without
2007-01-22 14:08:14 +00:00
bjarni
9f73cf6bb1
(svn r8341) -Codechange (r8336): added assert to VehTypeToIndex() to ensure valid vehicle types in the argument
2007-01-22 10:27:14 +00:00
bjarni
4099d62cb2
(svn r8340) -Cleanup (r8338): removed now unused header includes from roadveh_gui.cpp
2007-01-22 08:38:18 +00:00
belugas
ac9d926606
(svn r8339) -Fix(r8331): MSVC seems to be a little more strict (or less intelligent) then other compilers when it comes to operator precedence.
...
A copy of code from train_gui.cpp to build_vehicle_gui.cpp was not exactly the same.
The earlier version did not require parenthesis to specify correct operator precedence.
2007-01-22 02:59:50 +00:00
bjarni
6ccbfffbea
(svn r8338) -Codechange: merged road vehicle build window into the other ones
...
Note: now all build vehicle windows are merged into build_vehicle_gui.cpp
2007-01-22 02:09:51 +00:00
bjarni
cf0e5816d6
(svn r8337) -Cleanup: removed some more switch-cases in build_vehicle_gui.cpp and added arrays + VehTypeToIndex() instead
2007-01-22 01:35:53 +00:00
bjarni
8f4e2e8040
(svn r8336) -Codechange: added function to translate vehicle types to 0,1,2... for use for index to arrays
...
Used this function to get rid of some switch-cases in build_vehicle_gui.cpp
-Fix (r8335): ship build window didn't remember assending/decending sort setting
2007-01-22 01:13:10 +00:00
bjarni
14b2998023
(svn r8335) -Feature: the build ship window is now also resizable horizontally and contains sorting options
...
-Codechange: the build ship window is merged into build_vehicle_gui.cpp
2007-01-22 00:26:46 +00:00
bjarni
1f32ce7e89
(svn r8334) -Fix (r8331): build window buttons now both resize as intended
2007-01-21 23:24:25 +00:00
bjarni
4bb18a450c
(svn r8333) -Codechange: when invalidating a build window list, set a flag instead of rebuilding the list and then rebuild it the next time it's redrawn
...
This should save CPU time in the (maybe unlikely) event that the list is invalidated more than once between two redraws
2007-01-21 23:13:46 +00:00
bjarni
d82ae7427d
(svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp
2007-01-21 22:57:52 +00:00
bjarni
b60e5c17cd
(svn r8331) -Feature: the train and aircraft build windows are now resizable in horizontal direction as well
...
-Codechange: merged train and aircraft build window code
2007-01-21 22:50:43 +00:00
maedhros
17c71f4557
(svn r8330) -Codechange: Remove num_x and num_dataset from DrawGraph.
2007-01-21 20:54:29 +00:00
maedhros
e371c67199
(svn r8329) -Codechange: Remove the the horribly abused j and k variables completely, and make i local to each loop it's used in.
2007-01-21 20:34:28 +00:00
maedhros
2b2fdc1281
(svn r8328) -Codechange: Remove some magic numbers in the graph drawing code.
2007-01-21 20:14:35 +00:00
bjarni
bdc29f3d0d
(svn r8327) -Codechange: though overloading, IsPlayerBuildableVehicleType() now works with the type given as a byte as well as a vehicle pointer
2007-01-21 20:08:00 +00:00
miham
34de6db60d
(svn r8324) [Translations] -Change: Declared simplified_chinese as officially available language (number of missing strings is far less than 100)
2007-01-21 19:31:29 +00:00
miham
1e01201713
(svn r8323) [Translations] -Fix: removed untranslated strings from chinese language, fixed a wrong plural param
2007-01-21 19:27:50 +00:00
maedhros
06362c3535
(svn r8322) -Codechange: Rename unk61A and unk61C to something a little more descriptive.
2007-01-21 19:19:25 +00:00
tron
8ac3272e85
(svn r8321) -Fix
...
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
2007-01-21 19:00:31 +00:00
tron
fb8b0557f9
(svn r8320) -Fix
...
Simplify TrainPowerChanged() somewhat by eleminating code duplication
2007-01-21 18:46:19 +00:00
maedhros
84f4ca8b56
(svn r8319) -Codechange: Remove the remaining colours from GraphDrawer as they're also the same everywhere.
2007-01-21 18:42:15 +00:00
miham
b25584b40c
(svn r8318) -Update: WebTranslator2 update to 2007-01-21 19:29:35
...
brazilian_portuguese - 10 changed by fukumori (10)
polish - 5 fixed by meush (5)
simplified_chinese - 9 fixed, 191 changed by Fishingsnow (200)
slovak - 1 fixed by lengyel (1)
slovenian - 1 changed by ThePianoGuy (1)
2007-01-21 18:30:21 +00:00
maedhros
699d8709c1
(svn r8317) -Codechange: Remove GraphDrawer::bg_line_color since it was the same everywhere it was set.
2007-01-21 18:07:35 +00:00
rubidium
cf83a9f065
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
2007-01-21 17:29:38 +00:00
truelight
d82304ccab
(svn r8315) -Fix: use ShowInfo over fprintf(stderr, as Windows doesn't always have a stderr visible/available
2007-01-21 17:09:32 +00:00
tron
bc523186e0
(svn r8314) -Fix
...
-Codechange: Move the railtype from EngineInfo to RailVehicleInfo, because having a railtype for non-rail vehicles isn't that useful
2007-01-21 16:08:18 +00:00
maedhros
1564c74259
(svn r8312) -Fix (r8038, sort of): Operating profit and the company value can be negative,
...
so don't put them in an unsigned variable before drawing them in the various
graphs. Although the code didn't change, this only seems to have broken since
we started compiling it as C++.
2007-01-21 15:03:37 +00:00
truelight
203ccad578
(svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;)
2007-01-21 14:36:08 +00:00
truelight
6a145e06c3
(svn r8309) [WinCE] -Fix: WinCE doesn't know resolution changing
...
-Fix: WinCE doesn't know GetKeyboardState
-Fix: made a replacement of GetCurrentDirectory, where CurDir is assumed to be the dir the executable is located (esoftinteractive.com)
-Fix: the GCC compiler is more happy if the WinMain is called that
-Fix: a really old typo (missing ')') ;)
-Fix: GdiFlush() isn't supported on WinCE
2007-01-21 14:32:40 +00:00
truelight
79dfc62261
(svn r8308) [WinCE] -Revert r5764: in case of WinCE, use the code for FileExists as it was in pre-r5764 for Win32 (tnx Darkvater)
2007-01-21 14:21:31 +00:00
truelight
bd52404b8e
(svn r8307) [WinCE] -Fix: for now disable sound and music. That will be done later.
2007-01-21 14:19:44 +00:00
truelight
4dae672e92
(svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an alternative where possible
2007-01-21 14:19:18 +00:00
truelight
bb8f3a1dff
(svn r8305) -Codechange: defining 'static const' in a header is a bit weird.
...
Above that, wince-gcc gave "unused variable" on every file which included airport.h... pretty annoying ;)
2007-01-21 14:15:38 +00:00
bjarni
4241f1eb20
(svn r8303) -Codechange (r8293): default is moved to the front of the switch in ShowVehicleListWindowLocal()
2007-01-21 13:16:31 +00:00
maedhros
38647bb426
(svn r8301) -Codechange: Move the code relating to the sign list window from graph_gui.cpp to a file of its own: signs_gui.cpp.
2007-01-21 12:35:35 +00:00
maedhros
7a7562d8e2
(svn r8300) -Codechange: Add a prototype for DrawPlayerIcon to players.h and include that
...
instead of using externs. Also move DrawPlayerIcon from graph_gui.cpp to
players.cpp.
2007-01-21 11:49:18 +00:00
tron
501cd51c15
(svn r8299) -Fix
...
Remove unreachable code
2007-01-21 08:04:14 +00:00
bjarni
59e6e762b8
(svn r8296) -Fix: GenerateVehicleSortList() tried to put a TileIndex into an uint16
...
-Fix: CmdMassStartStopVehicle() tried to put a TileIndex into an uint16
Those two bugs were unrelated to each other and unrelated to r8295, even though that commit touched the code in question
2007-01-21 01:25:59 +00:00
bjarni
518c4cdfce
(svn r8295) -Cleanup: merged arguments station, order and depot_airport_index for GenerateVehicleSortList() and BuildVehicleList() into one uint16 argument
...
It turned out that all 3 arguments were the same at all the places those functions are called, so there was no point in having more than one
2007-01-21 01:07:15 +00:00
bjarni
7871ce1879
(svn r8294) -Fix: deleting a vehicle with shared orders, but no orders would fail to reset prev_shared and next_shared
...
-As a result, vehicles in the game could end up having prev/next pointers to vehicles, that was no longer in the game
2007-01-21 00:13:39 +00:00
bjarni
c8c27b9740
(svn r8293) -Codechange: overloaded ShowVehicleListWindow() so it can open all types of vehicle lists (depending on arguments)
...
- Also removed some unneeded arguments
- this also allows removing an if-else cascade in ShowVehicleListWindowLocal()
2007-01-21 00:01:47 +00:00
miham
470619a8bb
(svn r8290) -Update: WebTranslator2 update to 2007-01-20 19:46:14
...
brazilian_portuguese - 69 changed by fukumori (69)
frisian - 48 fixed by ikkejw (48)
russian - 57 changed by DarkFenX (57)
ukrainian - 5 changed by znikoz (5)
2007-01-20 18:50:50 +00:00
miham
c145db6e6b
(svn r8289) [Translations] -Fix: translators sent some offline translation for simplified chinese (Fishingsnow) and japanese (ickoonite)
2007-01-20 18:42:27 +00:00
bjarni
00b730ebca
(svn r8288) -Fix: [OSX] compiling with debug enabled now works again
...
-This is once again an obj-C vs C++ issue. I need to make a nice and permanent solution soon, but I need the debugger right now
2007-01-20 11:26:16 +00:00
peter1138
e13b00e14f
(svn r8287) -Fix (r8286): forgot to check for newline format, sorry...
2007-01-20 09:49:29 +00:00
peter1138
4d0a0fed0e
(svn r8286) -Add: Korean translation by Ezi
2007-01-20 09:19:37 +00:00
KUDr
8c5f64ae56
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
2007-01-19 22:41:50 +00:00
peter1138
d3761d97eb
(svn r8283) -Fix (r8128): Custom waypoint drawing used wrong bits since bitshuffling occurred. Also update with other station drawing changes (code duplication,
...
eh?)
2007-01-19 21:40:10 +00:00
miham
f07cbde398
(svn r8281) -Update: WebTranslator2 update to 2007-01-19 19:32:57
...
brazilian_portuguese - 2 fixed, 49 changed by fukumori (51)
bulgarian - 1 fixed by kokobongo (1)
2007-01-19 18:33:30 +00:00
peter1138
4d6a7b7427
(svn r8280) -Codechange: Remove unnecessarily complex assignment of waypoint string ID.
2007-01-19 17:46:44 +00:00
Darkvater
97d558760c
(svn r8279) -Regression (r8274): Removing signals could fail under certain circumstances (not the proper bits of p1/p2 were set to trackbits). Moved trackbits back to bits 0..2, ctrl to 3, semaphore to 4. Also lower the decision of the ctrl-override of signal/semaphore from the GUI into the cmd function since we are passing the ctrl-bit anyways. Bug(s) found by Frostregen; thanks
2007-01-19 17:44:11 +00:00
KUDr
7b5ec98d99
(svn r8277) -Fix (r8038): assert on game exit when waypoints were used. The static variable of type Station (inside ComposeWaypointStation) replaced by byte array so no destructor is called for it on exit.
2007-01-19 16:01:43 +00:00
tron
b2def96248
(svn r8276) -Fix
...
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables.
Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
2007-01-19 11:47:48 +00:00
tron
7af3094bc3
(svn r8275) -Fix
...
Factor common data tables and use a bit more sensible names
2007-01-19 06:08:04 +00:00
Darkvater
110c0162df
(svn r8274) -Codechange (r8151): Move the automatic semaphore/signal checks inside the CMD_ functions where they are supposed to be. Achieve this by adding a seperate bit to p1/p2 to hold the CTRL-modifier. While here, use proper types, and 'unify' the parameter bit-meanings. 0 - ctrl-pressed, 1 - signal/semaphore, 2-4 - trackbits, 5 - remove (internal), 24-31 - drag density.
2007-01-19 00:01:52 +00:00
KUDr
314e35beff
(svn r8273) -Fix: return value from clamp was ignored
2007-01-18 23:48:04 +00:00
KUDr
6230f9b922
(svn r8272) -Fix (r8038): signed/unsigned change - PlayerID is now enum (signed) and was byte so test for PlayerID validity needed to be updated (Darkvater)
2007-01-18 23:45:58 +00:00
miham
b36298e8a1
(svn r8267) [Translations] -Fix: (r8266) fixed the ownname and the isocode of the russian language
2007-01-18 22:24:11 +00:00
miham
2cca03409c
(svn r8266) -Update: WebTranslator2 update to 2007-01-18 19:42:06
...
afrikaans - 26 fixed, 63 changed by TrueTenacity (89)
dutch - 1 fixed by habell (1)
esperanto - 1 fixed by LaPingvino (1)
russian - 26 changed by DarkFenX (26)
turkish - 1 fixed by jnmbk (1)
ukrainian - 6 changed by znikoz (6)
2007-01-18 18:42:50 +00:00
Darkvater
8e06ff09a6
(svn r8254) -Merge: Release changes from the 0.5 branch back to trunk. This ensures an updated changelog, readme, et.
2007-01-18 15:39:58 +00:00
Darkvater
4de91346e9
(svn r8253) -Codechange: Be more strict about language generation and fail any languages not having the mandatory ##name, ##ownname and ##isocode pragma's.
2007-01-18 15:27:57 +00:00
Darkvater
982c451a8e
(svn r8252) -Regression(r8204): WT2 commit removed ##isocode from Russian, resulting in a clean
...
start of openttd being in russian instead of in english.
2007-01-18 15:26:52 +00:00
Darkvater
95ccdeeac0
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
2007-01-18 14:08:56 +00:00
Darkvater
d3a58ba36b
(svn r8239) -Regression (r7278): Help window was empty for UNICODE builds
2007-01-18 14:06:30 +00:00
KUDr
147ca22060
(svn r8231) -Fix (r8125): MP desync caused by calling Random() from station constructor. This was wrong because station constructor is called also when loading savegame and when player tries to build station when it is not sure that it will succeed (thanks Rubidium)
2007-01-18 09:34:44 +00:00
Darkvater
653290c76a
(svn r8218) -Codechange: Increase spritecache size to 2MB. This will vastly improve performance when using (lots of) grf files. You can change it yourself easily with the SPRITE_CACHE_SIZE compile flag. (peter1138).
2007-01-17 23:25:19 +00:00
peter1138
652b804a9e
(svn r8214) -Fix (r8038): The fast forward flag stores 2 bits, not 1. Remember the
...
whole thing when turning off FF for autosave. This stops FF getting stuck on
if the FF key is released during the save.
2007-01-17 22:44:49 +00:00
tron
3be30b8842
(svn r8212) -Fix
...
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
2007-01-17 22:32:34 +00:00
peter1138
004f1b061f
(svn r8211) -Codechange: (NewGRF) Implement callback 2D, explicit vehicle colour map
...
selection.
2007-01-17 22:19:12 +00:00
tron
3d1735fcfd
(svn r8207) -Fix
...
Remove the write-only attribute RoadStop::station
2007-01-17 21:14:17 +00:00
miham
27dde23409
(svn r8206) [Translations] -Fix: Fixed r8193, converted the html notations back to UTF8 characters
2007-01-17 21:05:39 +00:00
miham
4653c34f2a
(svn r8204) -Fix: reverted r8202, since it did not solve all the problems, since ALL language changes done today are garbage due to a quick bugfix in WT2 which introduced another, much more serious bug: put an utf8_to_htmlcode() call to a wrong place
...
I will fix the affected language files soon (20-30 minutes)
Please excuse me for this whole problem :-(
2007-01-17 20:37:25 +00:00
tron
f3daa56208
(svn r8203) -Fix:
...
Use initialisers, reduce variable scope, remove spurious whitespace, fix format string to make it readable
2007-01-17 20:34:29 +00:00
miham
0eb5af76d1
(svn r8202) -Fix: r8193: russian.txt changes somehow became garbage
2007-01-17 20:29:45 +00:00
rubidium
dec9698edc
(svn r8198) -Codechange: two global variables are not needed when network is disabled.
2007-01-17 19:55:18 +00:00
miham
11b19bb6ab
(svn r8193) -Update: WebTranslator2 update to 2007-01-17 19:42:11
...
brazilian_portuguese - 3 changed by fukumori (3)
danish - 21 changed by MiR (21)
german - 1 fixed by Neonox (1)
japanese - 24 changed by ickoonite (24)
norwegian_nynorsk - 1 changed by pollux (1)
russian - 5 fixed, 75 changed by DarkFenX (80)
slovenian - 57 changed by Necrolyte (57)
swedish - 1 fixed by daishan (1)
2007-01-17 18:43:03 +00:00
peter1138
61f5cf9b6f
(svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use.
2007-01-17 12:57:35 +00:00
celestar
8c54793068
(svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
2007-01-17 11:15:51 +00:00
tron
a973e45719
(svn r8184) if cascade -> switch
2007-01-17 06:54:03 +00:00
tron
2742b5fe25
(svn r8183) When iterating over the map in AfterLoadGame() do it the same way for all loops
2007-01-17 06:33:23 +00:00
rubidium
0bd6622c2e
(svn r8171) -Fix (FS#556): return SL_ERROR when unthreaded saves failed, to make sure we do not try to send zero-byte savegames.
2007-01-17 00:01:55 +00:00
Darkvater
1f3ea708c3
(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
2007-01-16 23:01:06 +00:00
rubidium
96b19ca23e
(svn r8167) -Fix (FS#556): a network client crashes, due to a division by zero, when the connection gets lost at the right moment or when the packet is malformed (server sends size 0 for the map).
2007-01-16 22:56:18 +00:00
peter1138
f19b87df08
(svn r8166) -Fix (r7797): Protect against out of bounds access to the sprite ptr
...
list.
2007-01-16 22:10:35 +00:00
Darkvater
0c9e65d8cc
(svn r8165) -Revert r8107 and show the MD5SUM of the *REPLACEMENT* grf file, NOT the original one. Reason for this is that this md5sum is saved, and otherwise a wrong md5sum would be stored in a savegame.
2007-01-16 21:34:51 +00:00
Darkvater
542f156091
(svn r8164) -Codechange (r8159): Fix up some comments/doxygen for disasters and rename Submarine1/2 to small/big
2007-01-16 20:16:30 +00:00
miham
6cc178d577
(svn r8163) [Translations] Re-added cases for the czech language (they were removed either accidentally or on purpose, will look after it later
2007-01-16 19:27:28 +00:00
miham
b67c92d7cd
(svn r8162) WebTranslator2 update to 2007-01-16 19:44:34
...
brazilian_portuguese - 1 fixed, 66 changed by fukumori (67)
catalan - 1 fixed by arnaullv (1)
czech - 1 fixed by Hadez (1)
danish - 1 fixed, 1 changed by MiR (1), ThomasA (1)
french - 1 fixed by glx (1)
hungarian - 1 fixed by miham (1)
italian - 1 fixed by sidew (1)
japanese - 1 fixed, 63 changed by ickoonite (64)
norwegian_nynorsk - 1 fixed, 37 changed by khaavik (28), pollux (10)
portuguese - 1 fixed by izhirahider (1)
slovenian - 1 fixed by Necrolyte (1)
ukrainian - 5 fixed, 16 changed by fevral13 (4), znikoz (17)
2007-01-16 18:45:25 +00:00
rubidium
3d6b021faa
(svn r8161) -Fix (FS#555, r8144): enroute_from_xy was not set properly for old savegames.
2007-01-16 18:31:58 +00:00
maedhros
eeaf5c1f1c
(svn r8160) -Fix (r8151): Do not use HasSignals on tiles without railways.
2007-01-16 17:44:59 +00:00
Darkvater
6908565067
(svn r8159) -Cleanup: Sprinkle some coding-style and comments on the disaster code.
2007-01-16 16:54:06 +00:00
Darkvater
12f0e67437
(svn r8158) -Fix: The submarine disaster failed to move at all due to wrong masking of trackbits
2007-01-16 16:28:41 +00:00
rubidium
f3796eee66
(svn r8157) -Fix (r3136): moving cargo during auto replaces did not update the cached vehicle weight for trains properly. This caused (in network games) the server to have a different cached vehicle weight than newly joined clients would have, which causes desyncs.
2007-01-16 15:45:20 +00:00
bjarni
ccbe68d5bc
(svn r8155) -Fix: fixed compilation when --disable-network is in use
2007-01-16 15:20:22 +00:00
peter1138
1395524390
(svn r8154) -Codechange: Water can no longer be under bridge tiles, so don't check for it.
2007-01-16 15:18:02 +00:00
peter1138
9b73684733
(svn r8153) -Codechange: Change UpdateStationAcceptance() and ShowRejectOrAcceptNews() to work with cargo IDs instead of cargo names, and explicitly list the different strings to use.
2007-01-16 11:13:00 +00:00
tron
3005bc3f01
(svn r8152) Fix a off-by-one error in the placement of the sticky box of the road build toolbar in the scenario editor
2007-01-16 08:10:29 +00:00
maedhros
895cc4fa47
(svn r8151) -Feature: Automatically build semaphores before a configurable date, which can be set by each network player seperately.
2007-01-15 22:18:35 +00:00
miham
b4f128b5f0
(svn r8148) WebTranslator2 update to 2007-01-15 19:25:31
...
brazilian_portuguese - 4 fixed by fukumori (4)
bulgarian - 1 fixed, 48 changed by groupsky (49)
croatian - 163 fixed, 60 changed by Ydobon (223)
danish - 23 changed by MiR (23)
esperanto - 2 changed by LaPingvino (2)
italian - 4 fixed by sidew (4)
japanese - 5 fixed by ickoonite (5)
norwegian_bokmal - 4 fixed by brygge_2 (4)
norwegian_nynorsk - 830 changed by khaavik (822), Eikje3 (8)
portuguese - 4 fixed by izhirahider (4)
slovenian - 4 fixed, 64 changed by Necrolyte (68)
2007-01-15 18:28:27 +00:00
bjarni
0026ea84d1
(svn r8147) -Fix: [autoreplace] v->leave_depot_instantly was not always reset correctly
...
While it's not certain if this would have any serious sideeffects (or any at all), it's reset when intended now
2007-01-15 17:32:42 +00:00
celestar
0fbdae2828
(svn r8146) -Fix (FS#552, r8038): a C/C++ linkage problem on some very few incarnations of gcc
2007-01-15 17:32:01 +00:00
belugas
7b9379e0de
(svn r8145) -Featurette: Allow for Tropic Farm to plant fields after producing cargo, like its counterpart in temperate climate.
2007-01-15 16:31:46 +00:00
celestar
05b783e551
(svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get excessive payment any longer, as the origin TILE is now stored as long as the origin STATION for the transported cargos. Basically this is only a temporary fix until cargopackets are implemented, but it fixes one of the oldest known bugs (Special Thanks to Darkvater for lots of testing)
2007-01-15 14:42:24 +00:00
tron
3b22cfe70d
(svn r8143) Remove the landscaping button from the build toolbars.
...
The landscaping toolbar can be reached at least as easy directly from the main toolbar.
Further two of the four toolbars uses 'l' as keyboard shortcut for this button, which plain does not work (The letter has to be uppercase).
This was covered by the fact there is a global shortcut 'L' to open the landscaping toolbar, so the individual checks in the four build toolbars were redundant anyway.
2007-01-15 07:38:36 +00:00
bjarni
19bdb49e5b
(svn r8141) -Fix r8128: [OSX] now OSX can compile again.
...
Note: this is again another not so nice workaround as Objective C fails to include C++ code in the headers
We should move to Objective C++ as soon as possible, but such a change is not done overnight and
this quick fix will allow OSX to compile until the prober solution is done
2007-01-15 00:58:18 +00:00
Darkvater
c430f2a543
(svn r8140) -Fix [FS#54]: Combat helicopter flies past factory before it shoots. Chopper comes from the north-east, so it looks in +15 direction (forward), not -15 direction. Probably bad copy-paste from airplane-destroys-oil-refinery disaster.
2007-01-15 00:09:25 +00:00
KUDr
fd383668f8
(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
2007-01-14 23:43:59 +00:00
KUDr
278cf974a4
(svn r8138) -Cleanup: comment style corrections
2007-01-14 23:36:25 +00:00
rubidium
48611e1e20
(svn r8137) -Fix (FS#551, r4259, r4320): roadstop->num_vehicles was wrong for savegames with version 24 or lower and do not calculate roadstop->num_vehicles when reading the roadstops as the vehicles might not be loaded at that moment.
2007-01-14 23:09:25 +00:00
KUDr
cd74706c54
(svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods.
2007-01-14 23:02:12 +00:00
Darkvater
de10e911cb
(svn r8135) -Fix (r7582): Don't assert on duplicate non-static grfs when removing duplicates as the PEBKAC effect can result in the user adding the same grf's in the config file.
2007-01-14 22:43:19 +00:00
Darkvater
82b0704bcc
(svn r8134) -Fix (r8013): Add a newline after the ShowInfo console output
2007-01-14 22:39:53 +00:00
Darkvater
aee29710bd
(svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to incorrect assumption of requested memory for sprites (smatz)
2007-01-14 21:50:56 +00:00
Darkvater
e4d4e13e15
(svn r8132) -Fix (r6824): The game could crash when the chat key (<ENTER>) is pressed too vehemently during the join of the game. Your client's id does not exist in the clients list yet, and returns NULL.
2007-01-14 21:32:13 +00:00
KUDr
f8a434e9fc
(svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped.
2007-01-14 21:03:21 +00:00
tron
b028d8c201
(svn r8130) Provide struct GoodsEntry with a constructor
2007-01-14 20:00:25 +00:00
peter1138
4b4c5a403b
(svn r8129) -Codechange: Change data tables to use split off palette map. And
...
include a file missed last time...
2007-01-14 19:59:25 +00:00
peter1138
92d418b031
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
KUDr
19d31c7417
(svn r8127) -Fix (r8125): removed redundant free() call which is also in Station destructor (Tron)
2007-01-14 19:44:27 +00:00
KUDr
1eac31a1d8
(svn r8126) -Fix (r8125): missing #include fixes compilation error on g++ (still some warnings, working on it)
2007-01-14 19:29:21 +00:00
KUDr
8b65342449
(svn r8125) -Codechange: Station is now constructed/destroyed using new/delete operators (don't worry, they still use the same memory pool). Few station related functions turned into Station::methods (just first step). All this new stuff moved from station_cmd.cpp to the new file (station.cpp).
2007-01-14 19:18:50 +00:00
KUDr
d57b290474
(svn r8124) -Add [DEBUG]: _debug_station_level
2007-01-14 19:13:36 +00:00
maedhros
d289816deb
(svn r8123) -Fix (r117): FindFirstBit now really returns the first bit. Fixes bug FS#538.
2007-01-14 19:06:11 +00:00
KUDr
04d2d80891
(svn r8122) -Fix[LANG]: terror in czech lang file (again)
2007-01-14 18:57:39 +00:00
miham
6fb2b0c952
(svn r8121) WebTranslator2 update to 2007-01-14 19:39:35
...
american - 4 fixed by WhiteRabbit (4)
bulgarian - 4 fixed by groupsky (4)
catalan - 4 fixed by arnaullv (4)
croatian - 379 fixed, 32 changed by Ydobon (411)
czech - 4 fixed by joeprusa (4)
danish - 4 fixed, 24 changed by ThomasA (20), MiR (8)
dutch - 4 fixed by habell (1), Zr40 (3)
esperanto - 4 fixed by LaPingvino (4)
estonian - 4 fixed, 2 changed by kristjans (6)
finnish - 7 fixed by pallokala (7)
german - 4 fixed by Neonox (3), chu (1)
hungarian - 4 fixed by miham (4)
japanese - 14 fixed by ickoonite (14)
lithuanian - 4 fixed, 3 changed by Domas (7)
norwegian_nynorsk - 4 fixed, 119 changed by khaavik (123)
romanian - 4 fixed by kneekoo (4)
slovak - 4 fixed by lengyel (4)
spanish - 4 fixed, 2 changed by eusebio (6)
swedish - 4 fixed by ChrillDeVille (4)
2007-01-14 18:41:48 +00:00
peter1138
bfa618ef89
(svn r8120) -Fix (r8055): Station cargo waiting value clamp should be signed not unsigned. This resulted in cargo magically appearing...
2007-01-14 18:38:40 +00:00
Darkvater
54b88bc8e6
(svn r8119) -Fix (r8101): Uninitializing windows should be called before freeing dynamic variables as windows could use those variables during cleanup (eg WE_DESTROY calling GetStation(w->window_number).
...
-Merged UnInitializeGame with UnInitializeAirports and UnInitializeDynamicVariables
2007-01-14 17:17:30 +00:00
rubidium
468f53911d
(svn r8118) -Codechange: change the ordering of the network list a little:
...
- servers we have information about go above servers we do not have information about.
- servers that are version compatible go above servers we are not version compatible with.
- servers we have all required NewGRFs for go above servers we miss NewGRFs for.
- unpassworded servers go above passworded servers.
2007-01-14 16:44:52 +00:00
KUDr
96ea43d1b2
(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
2007-01-14 13:21:02 +00:00
tron
b9832e10bd
(svn r8116) Undo r8113
2007-01-14 13:09:17 +00:00
tron
2fa5337474
(svn r8114) Allocate struct GRFText in the C++ way
2007-01-14 08:37:16 +00:00
tron
7eca68cfe9
(svn r8113) Fix the #include path to table/strings.h
2007-01-14 08:34:38 +00:00
glx
f833de284f
(svn r8111) -Fix r8106: silence warnings
2007-01-13 21:28:46 +00:00
KUDr
9bfb3f08d9
(svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue.
2007-01-13 18:55:54 +00:00
miham
5f00d57513
(svn r8108) WebTranslator2 update to 2007-01-13 19:32:03
...
danish - 56 changed by MiR (56)
french - 4 fixed by glx (4)
japanese - 77 fixed, 23 changed by ickoonite (100)
norwegian_nynorsk - 5 fixed, 1 changed by pollux (6)
turkish - 4 fixed by jnmbk (4)
2007-01-13 18:32:50 +00:00
Darkvater
a5cc170ab0
(svn r8107) -Codechange (r8106): Show the MD5SUM of the original GRF (saved in savegame) instead of that of the replacement so a user can still go hunt for the original GRF if needed.
2007-01-13 17:44:11 +00:00
Darkvater
66c5cde981
(svn r8106) -Feature/Fix: Add the ability to load savegames when you don't have the exact GRF files in your list. GRF files that are found based on GRFID (but not on matching md5sum) are used instead of disabling them. This does not affect MP games, there you still need an exact match.
...
-GRF Window colour-codes changed a bit: Static is now grey, and compatible GRF (found locally only based on GRFID) are shown in orange. Compatible GRF's also have an orange status/warning text saying they're not the original the game was saved with.
-Loaded games with something amiss regarding GRF's will show an appropiate warning message.
2007-01-13 17:42:50 +00:00
Darkvater
3f168daee1
(svn r8105) -Codechange: Change FindGRFConfig so that if md5sum parameter is omitted (or NULL)
...
only a check for GRFID is done and not on md5sum as well. Remove blanksum in the function as it's obsoleted
2007-01-13 17:23:02 +00:00
Darkvater
5863a6088d
(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
2007-01-13 15:55:22 +00:00
Darkvater
e832a1d046
(svn r8101) -Fix (runknown): Plug potential memleaks when calling UnInitWindowSystem. The function directly deleted all windows instead of calling their respective deallocators which could then in turn any used memory.
2007-01-13 15:50:36 +00:00
Darkvater
d9fc6134d3
(svn r8098) -Fix (r6964): For editboxen, always fill the background with black, and not only after a valid call to FillDrawPixelInfo. This solves some graphics glitches with background widget-colour showing through on frequent redraws.
2007-01-13 15:00:40 +00:00
tron
abb644771a
(svn r8097) Replace strlen() {==,!=,>} 0 by the more concise {,!}StrEmpty(). Additionally the test takes O(1) instead of O(n) now
2007-01-13 15:00:16 +00:00
Darkvater
fc78ef95e1
(svn r8096) -Codechange: Invert the check if you are allowed to clear a road tile so there are not so many negations (too confusing) and added some comments to further clarify what happens.
2007-01-13 14:48:47 +00:00
KUDr
0edc029f9f
(svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h
2007-01-13 14:43:46 +00:00
Darkvater
57a366e6d8
(svn r8094) -Feature/Fix (r7523): Show the activated status of the GRF list after pressing 'apply'
...
in the newgrf window, instead of the local list.
2007-01-13 14:01:05 +00:00
Darkvater
5ed33e549e
(svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it.
2007-01-13 13:47:57 +00:00
KUDr
f2e5e604fb
(svn r8092) -Codechange: header files with miscellaneous template classes (smart pointers, blob, array, hashtable, etc.) moved from src/yapf to src/misc as they can now be used anywhere.
2007-01-13 13:33:36 +00:00
Darkvater
c09b7e7fac
(svn r8090) -[win32] Fix (r8089): for *nprintf 'ret = count' NOT 'ret = 0'...
2007-01-13 13:13:32 +00:00
Darkvater
120f57b865
(svn r8089) -[win32] MS-borkedness: All *nprintf functions are broken, but we didn't test to fix it ourselves when 'len = count'.
2007-01-13 13:06:18 +00:00
tron
4ee1050976
(svn r8088) -Regression (r8087): Fix japanese translation by adding missing { and removing spurious 0
2007-01-13 10:38:58 +00:00
miham
dbeb30fcab
(svn r8087) [Translations] Japanese translation manually updated by ickoonite
2007-01-13 07:31:35 +00:00
miham
de60e0fe92
(svn r8086) WebTranslator2 update to 2007-01-13 08:18:52
...
brazilian_portuguese - 203 changed by fukumori (203)
norwegian_nynorsk - 9 changed by pollux (9)
2007-01-13 07:19:26 +00:00
miham
a6ed8732c8
(svn r8085) [Translations] fixed the filenames to the scheme the others use, updated projectfile, sorry
2007-01-12 22:32:58 +00:00
miham
57561ab674
(svn r8084) [Translations] Added nynorsk translation (pollux), renamed norwegian to norwegian bokmal, moved nynorsk to finished languages, and updated project files.
...
Strings pending to nynorsk will be preserved if they are differ from the current translation
2007-01-12 22:27:27 +00:00
rubidium
f66b373b52
(svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState.
2007-01-12 20:19:49 +00:00
miham
ee1021d29c
(svn r8082) WebTranslator2 update to 2007-01-12 19:31:14
...
brazilian_portuguese - 62 changed by fukumori (62)
croatian - 86 fixed, 2 changed by knovak (88)
esperanto - 1 changed by LaPingvino (1)
2007-01-12 18:32:39 +00:00
peter1138
4ef8afa9e1
(svn r8081) -Fix (r8075): Use a copy of the resolver object instead of the using the existing one. This fixes problems with the object scope setting.
2007-01-12 16:44:08 +00:00
Darkvater
a352bf8529
(svn r8080) -Codechange (r8079): Move the *WHOLE* performance code into the #ifndef and some style changes.
2007-01-12 16:30:41 +00:00
KUDr
e896d7814a
(svn r8079) -Fix [YAPF]: float division by zero when calculating stats (YAPF cache hit ratio). Caused BSOD on Win9x. (thanks 3iff for report, Darkvater for help)
2007-01-12 15:43:00 +00:00
rubidium
c48aa5db45
(svn r8078) -Codechange: rewrite UDP part of the network code to make use classes. This is only one of the many steps to really cleanup the network code.
2007-01-12 14:30:01 +00:00
Darkvater
bccef9f948
(svn r8077) -Cleanup: Restructure some switch() statements' default case when they're unreachable
2007-01-12 14:28:00 +00:00
maedhros
4ae861880b
(svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138)
2007-01-12 11:20:34 +00:00
rubidium
5afd50017d
(svn r8074) -Fix (FS#537, r7555, r5749): revert r7555 because it was really wrong and fix the off-by-one error due to truncation that was supposedly fixed by r7555.
2007-01-12 08:37:14 +00:00
miham
c3b56e0b3a
(svn r8073) WebTranslator2 update to 2007-01-12 08:35:48
...
brazilian_portuguese - 92 changed by fukumori (92)
2007-01-12 07:37:35 +00:00
Darkvater
95deb5eace
(svn r8071) -Fix (r5999): [FS#536] Merging 32bit dates broke the inauguration date of companies in
...
oldloader: "The year the company was inaugurated (full value, not base-1920)"
(Marcin Grzegorczyk's TTD internals site)
2007-01-12 00:44:49 +00:00
glx
2533b4a520
(svn r8070) -Fix r5815: missing initialisation could cause crash when loading 24bpp BMP heightmap
2007-01-11 21:49:39 +00:00
miham
7885defae5
(svn r8069) [Translations] Moved japanese from unfinished, good job translators
2007-01-11 19:35:30 +00:00
miham
1789467090
(svn r8068) WebTranslator2 update to 2007-01-11 19:35:48
...
croatian - 93 fixed by knovak (93)
greek - 10 fixed by Kesnar (10)
japanese - 506 fixed by ickoonite (506)
2007-01-11 18:36:22 +00:00
KUDr
33be1ecfb1
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
celestar
91ff746410
(svn r8065) -Feature: The station list does now remember the sort settings
2007-01-11 15:30:35 +00:00
peter1138
8d5a542d9b
(svn r8063) -Codechange: When evaluating newgrf varaction2s the 'last value' should start off at 0, and the result of the operation is remembered.
2007-01-11 14:40:12 +00:00
peter1138
b7e753555d
(svn r8062) -Codechange: change newgrf varaction2 value from signed to unsigned
2007-01-11 14:25:17 +00:00
bjarni
f348fc7b4c
(svn r8061) -Fix r8055: obj-c can't handle templates
...
We will need to figure out a nicer solution for this, but now OSX compiles again
2007-01-11 13:47:55 +00:00
celestar
8694ad9e0d
(svn r8058) -Codechange: Replaced an occurence of (uint32)-1 by UINT_MAX
2007-01-11 12:47:42 +00:00
celestar
6a256ff2df
(svn r8057) -Codechange: Declare the "new" max template as static line.
2007-01-11 12:38:04 +00:00
celestar
1691b2da61
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
2007-01-11 12:32:10 +00:00
celestar
2ac0410767
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
2007-01-11 11:05:01 +00:00
peter1138
7996c9e560
(svn r8054) -Codechange: Use a template function instead of a macro for evaluating NewGRF var adjusts
2007-01-11 10:58:53 +00:00
miham
ea4cee8d03
(svn r8053) [Translations] Reverted german translators work (moewe2), since it looks suspicious
2007-01-11 10:35:59 +00:00
KUDr
dbe11fb9c7
(svn r8052) - Codechange: RemoveFirstTrack() and RemoveFirstTrackdir() now accept pointer to TrackBits/TrackdirBits instead of reference.
2007-01-11 10:34:42 +00:00
miham
318cfab2a1
(svn r8051) WebTranslator2 update to 2007-01-11 07:24:01
...
german - 1 deleted by moewe2 (1)
greek - 3 fixed by Kesnar (3)
japanese - 273 fixed by ickoonite (273)
2007-01-11 06:24:37 +00:00
belugas
5f9c891734
(svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
...
Only doc landscape_grid.html has been updated, landscape.html will be done latter.
-CodeChange: Replace a direct access to m6 with SetTropicZone in InitializeLandscape, as it is the only part of m6 still untouched without the brute-forced m6=0
2007-01-11 02:05:13 +00:00
Darkvater
2ea3531c24
(svn r8049) -Regression (r7369): Removing certain news windows could cause a crash due to only
...
one MoveToNextItem() in DeleteVehicleNews (added in r3757). To work correctly do not
reset _forced_news to INVALID_NEWS when a new item is added, but leave it.
-Codechange: ShowLastNewsMessage has been changed so that it actually works, wraps
around correctly (array as FIFO) and shows the previous news item if the current
news item is open (previously this was doubly shown).
2007-01-11 01:21:55 +00:00
Darkvater
0cb2bc2b23
(svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138)
2007-01-10 21:44:59 +00:00
rubidium
c5a7eaca65
(svn r8043) -Fix (8028): forgot setting a variable.
2007-01-10 20:11:13 +00:00
orudge
6b58c1c2ff
(svn r8042) - Fix: OS/2 compilation with GCC (thanks to Paul Smedley and TrueBrain for their help)
2007-01-10 19:39:54 +00:00
peter1138
ae0a92b51a
(svn r8041) -Regression (r7564): [NewGRF] check_length should skip further processing if a length is too short, so give the function a return value
2007-01-10 19:20:25 +00:00
miham
72acc8fc65
(svn r8039) WebTranslator2 update to 2007-01-10 19:58:43
...
brazilian_portuguese - 15 changed by fukumori (15)
danish - 23 changed by MiR (23)
greek - 12 fixed by Kesnar (12)
japanese - 282 fixed by ickoonite (282)
slovenian - 1 changed by Necrolyte (1)
turkish - 2 changed by jnmbk (2)
ukrainian - 30 changed by znikoz (30)
2007-01-10 19:00:08 +00:00
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
rubidium
344f70e1af
(svn r8034) -Fix (r8033): aircraft_cmd.c was not renamed.
2007-01-10 18:24:48 +00:00
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00
rubidium
001d858b52
(svn r8030) -Fix: segmentation fault when removing a town in the scenario editor while having the query tool window open for one of the town's tiles.
2007-01-10 16:31:40 +00:00
rubidium
815256b2ae
(svn r8029) -Fix (7759): somehow the old configure script was not removed.
2007-01-10 15:03:47 +00:00
rubidium
4c2b993d1d
(svn r8028) -Fix: overflow of ticks was not handled properly, possibly resulting a non-reacting gameserver/gameclient.
2007-01-10 15:00:20 +00:00
celestar
f3b4cf10b6
(svn r8027) -Fix (FS#486) If a pause command is issues, it will now pause the game even if shift is pressed instead of giving a cost estimate of 0. This fixes a problem where the server does not pause_on_join when the player on the interactive server has the shift button pressed. (Thanks to pvz for the report and the fix)
2007-01-10 14:52:10 +00:00
celestar
52d14b3dd0
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
2007-01-10 14:22:49 +00:00
maedhros
e221fef08c
(svn r8014) -Codechange (r7573): When a tile is cleared, empty the general purpose bits in
...
extra as well, unless they are (or could be) used for bridges. This means these
bits don't have to be cleared seperately when non-bridgeable tiles are removed.
2007-01-09 21:43:32 +00:00
Darkvater
6c3187213d
(svn r8013) -Codechange (r6921, rUnknown): Show the error message of corrupt or missing (own) files
...
through a ShowInfo(F). This way windows users also see this message and bugs such as
FS#528 will not happen anymore. Put ShowInfo(F) error output to stderr and not stdout.
2007-01-09 21:25:13 +00:00
miham
fe1ac3c5d1
(svn r8012) WebTranslator2 update to 2007-01-09 20:43:03
...
bulgarian - 3 fixed, 68 changed by groupsky (71)
danish - 45 changed by ThomasA (4), MiR (41)
finnish - 2 fixed by pallokala (2)
frisian - 2 changed by talzaroff (2)
greek - 40 fixed, 1 changed by Kesnar (41)
italian - 2 changed by sidew (2)
swedish - 2 fixed, 1 deleted, 55 changed by ChrillDeVille (58)
2007-01-09 19:43:46 +00:00
peter1138
207f7eb167
(svn r8007) -Codechange: Change _vehicle_position_hash from VehicleID to Vehicle*. This removes the need for look ups by index. Also declare the array static.
2007-01-09 16:27:25 +00:00
rubidium
293d8ba826
(svn r8000) -Codechange: drop UDP packets when their internal size does not match the received size. If that is the case, the packet was not received in one piece (or got somehow mangled with another packet), which will cause us to drop the packet later on because we are (for example) trying to read beyond the end of the packet.
2007-01-09 14:48:21 +00:00
miham
53576542d1
(svn r7987) [Translations] Slovenian is no longer unfinished (no bad strings)
2007-01-09 07:24:35 +00:00
miham
1a5b13127f
(svn r7986) WebTranslator2 update to 2007-01-09 08:20:27
...
brazilian_portuguese - 72 changed by fukumori (72)
hungarian - 2 fixed by miham (2)
slovenian - 191 fixed by Necrolyte (191)
2007-01-09 07:22:20 +00:00
Darkvater
5acbc88ee1
(svn r7984) -Fix: out-of-bounds read access on _clients array (Quark)
2007-01-08 19:18:53 +00:00
miham
48b4226f5e
(svn r7983) WebTranslator2 update to 2007-01-08 19:37:40
...
brazilian_portuguese - 111 changed by fukumori (111)
esperanto - 11 changed by LaPingvino (11)
japanese - 116 fixed by ickoonite (116)
2007-01-08 18:39:17 +00:00
peter1138
739b43b3c2
(svn r7982) -Codechange: Enumify graphics blitter modes.
2007-01-08 18:07:57 +00:00
celestar
ecef824f93
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
2007-01-08 10:36:45 +00:00
miham
852139d94b
(svn r7975) WebTranslator2 update to 2007-01-08 09:13:29
...
brazilian_portuguese - 6 fixed, 2 changed by fukumori (8)
danish - 5 changed by MiR (3), ThomasA (2)
estonian - 1 changed by kristjans (1)
frisian - 82 fixed, 85 changed by ikkejw (82), talzaroff (85)
greek - 64 fixed, 3 changed by Kesnar (67)
italian - 1 changed by sidew (1)
japanese - 92 fixed by ickoonite (92)
polish - 1 changed by meush (1)
slovak - 7 changed by lengyel (7)
slovenian - 160 fixed by Necrolyte (160)
turkish - 2 changed by jnmbk (2)
2007-01-08 08:16:01 +00:00
Darkvater
f22c963dcf
(svn r7969) *whistle* 20067 has not yet come to pass; it's 2007 (I think my search&replace broke)
2007-01-07 17:32:35 +00:00
Darkvater
7b38ec131a
(svn r7968) -Update copyright/etc information to 2007
2007-01-07 16:55:30 +00:00
Darkvater
43c030f438
(svn r7966) -Fix (r7936): Eh AxisToTrack returns Track not Axis, thanks KUDr
2007-01-07 16:35:20 +00:00
Darkvater
7156749043
(svn r7936) -Fix (r4987, old-rev): Only update the signals and YAPF cache on a DC_EXEC action for bridge-building
2007-01-07 00:19:57 +00:00
rubidium
432ea5bbd6
(svn r7932) -Fix (r7931): committed a few files too much :( (the ones I used to test the new masterserver)
2007-01-06 23:00:21 +00:00
rubidium
8d41fe225e
(svn r7931) -Fix (r7759): multiple (different) -O flags made compilations with the wrong optimisations.
2007-01-06 22:58:01 +00:00
Darkvater
a05ab3028a
(svn r7930) -Fix: [FS#520] Wrong GRF flag set for gradual loading (mart3p)
2007-01-06 22:43:11 +00:00
miham
5a2d86f8a3
(svn r7905) WebTranslator2 update to 2007-01-06 15:28:31
...
estonian - 5 changed by kristjans (5)
frisian - 669 fixed, 17 changed by ikkejw (574), Bouke (2), talzaroff (110)
italian - 1 changed by sidew (1)
turkish - 2 fixed, 16 changed by jnmbk (18)
2007-01-06 14:29:07 +00:00
peter1138
86bad22c89
(svn r7901) -Codechange: Remove some misplaced externs and use extern, not VARDEF, in the place they should be...
2007-01-06 13:26:04 +00:00
miham
f8642fd784
(svn r7896) WebTranslator2 update to 2007-01-06 08:24:52
...
italian - 211 changed by sidew (211)
lithuanian - 66 changed by Domas (66)
slovenian - 131 fixed by ThePianoGuy (31), Necrolyte (100)
2007-01-06 07:26:15 +00:00
rubidium
8ce23a5881
(svn r7888) -Change: add documentation about the 'on-the-wire' structure of the network game information request and reply packets.
2007-01-05 21:33:58 +00:00
bjarni
674dcfa5d2
(svn r7887) -Fix: [OSX] Endian32_Swap should always return a uint32, not a long unsigned int
...
This kills an OSX specific warning in newgrf_config.c
Ensured that Endian16_Swap returns uint16 as well, even though that one didn't result in any warnings (yet)
2007-01-05 20:46:53 +00:00
bjarni
7dff5fccd3
(svn r7886) -Fix: [OSX] control+enter will no longer toggle fullscreen as it collided with other hotkeys (pv2b)
...
People should use command+enter as it was originally intended (this key combo also worked before this commit)
2007-01-05 19:50:44 +00:00
miham
13db63f63b
(svn r7884) WebTranslator2 update to 2007-01-05 19:28:08
...
bulgarian - 14 changed by groupsky (14)
croatian - 159 fixed, 8 changed by knovak (167)
danish - 30 changed by ThomasA (4), MiR (26)
estonian - 41 changed by kristjans (41)
japanese - 47 fixed, 1 changed by PouncingAnt (48)
lithuanian - 31 fixed, 68 changed by Domas (99)
2007-01-05 18:28:49 +00:00
truelight
27ccf59460
(svn r7882) -Fix: OS2 is defined as UNIX too, but not for networking
2007-01-05 18:03:30 +00:00
peter1138
0a4b2ae79c
(svn r7864) -Codechange: Offset engines/wagons in the train details window by half the train length modifier. This stops overflowing wagons in sets that use 32px lengths.
2007-01-05 14:26:45 +00:00
Darkvater
2d3e7aef51
(svn r7861) -Fix (r7823): Crash when oldest news was deleted. First check the index for oldest news
...
and THEN decrease index, not the other way around.
2007-01-05 11:41:11 +00:00
miham
eb42782d6a
(svn r7857) WebTranslator2 update to 2007-01-05 08:35:59
...
lithuanian - 2 fixed, 278 changed by Domas (280)
slovenian - 11 fixed by Necrolyte (11)
2007-01-05 07:36:33 +00:00
rubidium
7b8032d6d4
(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.
2007-01-05 01:23:03 +00:00
Darkvater
8f945f53e2
(svn r7843) -Codechange (r7840): left out word 'file' making crash-text look un-english-ish.
2007-01-05 00:39:08 +00:00
Darkvater
07994ea72a
(svn r7840) -Codechange: Change the crash window a bit. Tell about Flyspray and crash.dmp. Remove
...
text about submitting crash report.
2007-01-04 23:49:55 +00:00
rubidium
73079f83bc
(svn r7836) -Codechange: some constness for network/core.
2007-01-04 21:48:52 +00:00
rubidium
b2f85eb044
(svn r7834) -Codechange: cleanup the includes of network/core a little; include headers in headers when the header needs types/constants defined in them.
2007-01-04 21:21:14 +00:00
rubidium
bfe4dcbc39
(svn r7833) -Fix (r7829): forgot to add debug.h to the includes.
2007-01-04 20:33:50 +00:00
peter1138
fa4d49f838
(svn r7831) -Codechange: [NewGRF] Do not mark as unsafe those NewGRFs that set their own parameters (via action D) and/or change only bridge sprite table layouts (action 0, property D).
2007-01-04 19:24:42 +00:00
rubidium
85d1768b34
(svn r7830) -Codechange: let NetworkCoreInitialize return a bool, so we have to set _network_available only once.
2007-01-04 19:12:45 +00:00
rubidium
627ebe8430
(svn r7829) -Codechange: move the network (core) initialization/shutdown functions into network/core, so the can be reused in the masterserver_updater.
2007-01-04 18:50:40 +00:00
miham
c231b1fa9a
(svn r7828) WebTranslator2 update to 2007-01-04 19:28:37
...
danish - 8 changed by ThomasA (8)
estonian - 101 changed by kristjans (101)
italian - 1 changed by sidew (1)
japanese - 17 fixed, 11 changed by PouncingAnt (28)
2007-01-04 18:30:28 +00:00
rubidium
ae9750e69b
(svn r7825) -Codechange: make NetworkUDPClose close a single UDP socket. Use NetworkUDPStop to close all opened udp sockets (those were called NetworkUDPClose).
2007-01-04 18:10:40 +00:00
Darkvater
2fda7e6c10
(svn r7823) -Fix (r7384 / r7368 / r3757 / r7388): News windows could still cause crashes because
...
DeleteVehicleNews shuffles around _news_items which can wreak havoc with the NewsItem*
of a currently open news window. While here also correctly update _current_news and
_forced_news for the same reasons. Should really work now.
2007-01-04 17:23:55 +00:00
rubidium
6851608c00
(svn r7821) -Fix: be more strict about the socket from where packets arrive. Do not accept requests about the game server on the master/client socket, do not accept master server acks on the client/server socket, etc.
2007-01-04 15:42:09 +00:00
miham
90f546e87e
(svn r7819) WebTranslator2 update to 2007-01-04 07:57:17
...
japanese - 78 fixed by ickoonite (78)
slovenian - 26 fixed, 317 changed by Necrolyte (343)
ukrainian - 3 fixed, 2 changed by znikoz (5)
2007-01-04 06:57:49 +00:00
rubidium
6edd50e722
(svn r7818) -Fix (r7751): wrote some data to the wrong network packet.
2007-01-04 02:18:04 +00:00
Darkvater
f0705977b3
(svn r7817) -Fix (r7573): Bridge merge broke building canals at level 0.
2007-01-04 01:10:39 +00:00
glx
1987b32a8d
(svn r7812) -Fix: rail station build window was not correctly updated after station_spread change
2007-01-03 23:53:23 +00:00
KUDr
db02336ef1
(svn r7810) -Fix: FS#504 Building airport whose size exceeds max station spread-out caused assert. (Zuu)
2007-01-03 22:55:53 +00:00
miham
d55282cc92
(svn r7806) [Translations] Lithuanian is no longer unfinished, thanks for the current translators! Good work, keep it up!
2007-01-03 20:44:59 +00:00
miham
0b52996e2d
(svn r7803) WebTranslator2 update to 2007-01-03 19:37:39
...
bulgarian - 5 fixed by groupsky (5)
croatian - 72 fixed by knovak (72)
danish - 25 changed by MiR (25)
italian - 1 changed by sidew (1)
norwegian - 2 fixed by oletk (2)
slovenian - 241 fixed, 143 changed by Necrolyte (384)
2007-01-03 18:41:20 +00:00
rubidium
8080f6a159
(svn r7802) -Feature: make it possible to override the bind address and port of a dedicated server from the command line.
2007-01-03 18:29:15 +00:00
rubidium
2676142ca9
(svn r7801) -Feature: add command line option to prevent saving of highscore and configuration on exit and a console command to manually initiate a configuration save (Aloysha).
2007-01-03 18:06:50 +00:00
peter1138
dd048e8c31
(svn r7800) -Fix (r7787): Remove Czech strings with .news or .subs case.
2007-01-03 17:47:34 +00:00
peter1138
346a0df0b7
(svn r7797) -Codechange: Replace static _sprite_ptr and associated arrays with dynamic array to allow variable number of sprites. This does not change the sprite limit.
2007-01-03 14:42:08 +00:00
rubidium
21a1aa7c2c
(svn r7796) -Fix (r7759): cygwin does not need to rewrite the paths for strgen.
...
-Fix (r7759): supply the correct flags to cygwin to make it compile.
Note: cygwin itself is 'broken'. Known issues with cygwin are:
- bash does not work when including files that have dos line ending (\r\n).
This causes the strange errors in config.lib. The solution is running:
dos2unix config.lib
- the windows-native svn does not work (though it previously did). The
solution for this is to install the cygwin svn.
- libfreetype2's freetype-config --cflags does not have ft2build.h in the
path include search path. The workaround for this is to copy
/usr/include/ft2build.h to /usr/include/freetype2/. Also linking does
not work for static builds as freetype-config does not support that.
You have to add the '--disable-static' flag when running './configure'.
- libpng12 does not work with static building either. You have to add
the '--disable-static' flag when running './configure' too.
2007-01-03 13:55:25 +00:00
peter1138
8cb56a9af6
(svn r7795) -Codechange: [NewGRF] When safety checking, allow an Action E that force activates the GRF. Unfortunately this requires knowing the GRF ID in advance (before the Action 8) so the static GRFs are now scanned twice on start up, once for the GRF ID, and then for the safety check. (This fix allows unifont.grf to be used.)
2007-01-03 11:33:54 +00:00
peter1138
789b76d36b
(svn r7794) -Cleanup: Remove obsolete, never-used landscape rotation code. And spell obsolete correctly.
2007-01-03 09:45:07 +00:00
peter1138
8e625b8b42
(svn r7793) -Cleanup: Remove obsolute, never-used old spritecache LRU code
2007-01-03 09:32:01 +00:00
miham
38252d04b9
(svn r7787) WebTranslator2 update to 2007-01-03 07:49:50
...
czech - 2 changed by joeprusa (2)
danish - 80 changed by MiR (80)
esperanto - 1 fixed, 3 changed by LaPingvino (4)
estonian - 54 changed by kristjans (54)
japanese - 177 fixed, 65 changed by ickoonite (242)
lithuanian - 57 changed by Domas (57)
slovenian - 38 fixed, 262 changed by Necrolyte (300)
2007-01-03 06:50:31 +00:00
Darkvater
84ddb87726
(svn r7772) -Fix (r7759): [win32] Paths to icon files were wrong.
2007-01-02 21:48:33 +00:00
bjarni
e13f5c19c1
(svn r7767) -Fix r7751: [OSX] nameclash in includes. ALIGN was defined in both a library and macros.h
...
we undefines the library one since we don't need that one anyway
2007-01-02 21:27:28 +00:00
bjarni
25e03150a6
(svn r7766) -Fix: [OSX] removed incorrect debug message about corrupted/missing grf files
...
The md5 code now looks in the secundary data dir as well
Note: OSX builds can still give the incorrect message: dbg: [sl] Cannot open savegame 'data/opntitle.dat' for saving/loading.
2007-01-02 20:39:07 +00:00
peter1138
6b82f1dc06
(svn r7760) -Codechange: Debug messages for newgrf showed the starting sprite, not the current sprite index. Also only output the debug message during activation, when sprites are loaded.
2007-01-02 20:00:10 +00:00
rubidium
66bbf336c6
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
2007-01-02 19:19:48 +00:00