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