Commit Graph

531 Commits (7eab669a888fa61f916b4617315eff6a53c712ff)

Author SHA1 Message Date
tron 16df378623 (svn r8747) -Fix
-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
18 years ago
bjarni ab08096aab (svn r8746) -Regression r8331: build train window could sort incorrectly by EngineID with certain newGRF sets 18 years ago
truelight d53613c8f2 (svn r8745) [PSP] -Add: added a CSleep() for PSP 18 years ago
celestar d9f034bd87 (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. 18 years ago
tron e62036f5e9 (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
18 years ago
miham 0c330c1b1b (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)
18 years ago
rubidium dcc7dd936e (svn r8741) -Fix (r8735): make the saveguards of CmdBuildRoadStop more robust and add roadstops.grf to the list of required grfs. 18 years ago
Darkvater 3053109c63 (svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx) 18 years ago
Darkvater 4c0f91e060 (svn r8739) -Codechange: Update the oldloader debug levels to be more in spec with the guidelines in debug.h. 18 years ago
Darkvater 89172eb054 (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. 18 years ago
Darkvater 92faa8d80e (svn r8737) -Regression (r8621): VEH_Type renumbering wasn't performed for TTD(P) games, failing to load them 18 years ago
miham a5462fbe50 (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)
18 years ago
rubidium a2999dadc9 (svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p. 18 years ago
celestar ca310e5a26 (svn r8733) -Fix(r8705): Forgot to change some more places where airport blocks are stored 18 years ago
celestar bde06e75b4 (svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into template functions. Fixes a problem with MSVC and 64-bit shifts. 18 years ago
rubidium a374caf51d (svn r8730) -Codechange: more replacements of magic numbers by enums and removal of some (by now) redundant comments. 18 years ago
miham 18f88c6ad9 (svn r8729) [Translations] -Fix: removed dead cases from czech language 18 years ago
miham 12756027fd (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)
18 years ago
maedhros f7db8b4a61 (svn r8727) -Cleanup (r8366): Remove BIGMULSS64 since it isn't used any more. 18 years ago
rubidium ebff8b09fc (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. 18 years ago
rubidium 93b78f31fb (svn r8725) -Fix (r8712): test the first bit of the bitmask, not the nth, as we are shifting the bitmask. 18 years ago
rubidium 3969f10b53 (svn r8723) -Codechange: replace yet another couple of magic numbers with enums. 18 years ago
rubidium da705e8167 (svn r8721) -Fix (8715): road vehicles could not turn around properly 18 years ago
rubidium 96b43da866 (svn r8719) -Fix: some strings have an empty translation where it isn't empty in english. 18 years ago
rubidium b5dade8098 (svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p. 18 years ago
rubidium fd645aa845 (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. 18 years ago
celestar 72e74c29d4 (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. 18 years ago
celestar bf147e395e (svn r8708) -Codechange(r8514): No need to use "this->" in methods 18 years ago
celestar a89f2fd610 (svn r8707) -Codechange: Turn IsValidStation into a method of Station 18 years ago
celestar 82c696688c (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 18 years ago
rubidium 4d0f8bac27 (svn r8703) -Codechange/cleanup: some magic numbers -> enums and other small coding style changes to the ShipController and TrainController. 18 years ago
rubidium 0ba18a677c (svn r8701) -Codechange: replace magic numbers with enums for u.rail.track. 18 years ago
rubidium dba93c7038 (svn r8700) -Fix (8698): replaced a magic number with the wrong enum :( 18 years ago
rubidium eb5648f382 (svn r8698) -Codechange: enumify the returns of VehicleEnterTile 18 years ago
rubidium 3f74dbe5c0 (svn r8694) -Codechange: make RoadStop's status accessible via accessor functions. 18 years ago
rubidium 654aca2b32 (svn r8692) -Cleanup: add comments to RoadVehController. Patch by mart3p. 18 years ago
Darkvater 5574d04547 (svn r8691) -Cleanup: Some proper #endif comments for sound/music/video files, and a little elimination of magic numbers in Win32SoundStart 18 years ago
miham 8f96cadeb2 (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)
18 years ago
rubidium b50d995c2c (svn r8689) -Fix [FS#613] (r8619): crash when an old savegame had buoys on the northern edge of the map. 18 years ago
miham 2ca9370c81 (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)
18 years ago
bjarni 94609499f3 (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.
18 years ago
rubidium 4f1869010c (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. 18 years ago
rubidium b03de4ad90 (svn r8681) -Fix (FS#608): wrong comment (rfalke) 18 years ago
truelight 4b88663f31 (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
18 years ago
truelight 750f61012e (svn r8675) [PSP] -Fix: don't autosave in networking for PSP, to time expensive 18 years ago
truelight c8c9c0c831 (svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
-Add: added general header-inclusing for PSP
18 years ago
rubidium 9d545a69c5 (svn r8673) -Codechange: use SetNonBlocking instead of implementing yet another version. 18 years ago
tron 3291300ab8 (svn r8671) -Fix
Fix some strings which were broken in r7581
18 years ago
bjarni 59029669a8 (svn r8662) -Fix r8661: don't try to put negative values in unsigned vars 18 years ago
bjarni 89b362a622 (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
18 years ago
tron ced80aadaa (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.
18 years ago
rubidium 396f905b6e (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. 18 years ago
truelight f5ea97e0b3 (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.
18 years ago
miham 8bceacac45 (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)
18 years ago
rubidium f7c5e770f0 (svn r8637) -Fix: CTRL-clicking on a hangar in the order list segfaulted as hangars are part of a station instead of real depots. 18 years ago
rubidium 39454ab61a (svn r8635) -Fix: draw canal edges under buoys that are in a canal. 18 years ago
rubidium c9b2b81413 (svn r8634) -Codechange: replace missing sprites with a red question mark. 18 years ago
truelight bc5d3ef3b0 (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.
18 years ago
miham a05beb7487 (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)
18 years ago
bjarni d40886903d (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
18 years ago
rubidium 022e11d421 (svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros). 18 years ago
rubidium 61c796b825 (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. 18 years ago
tron f4144f1373 (svn r8618) -Fix
Remove redundant assignments. The function call just before already does it
18 years ago
tron fd4e74efed (svn r8617) -Fix
Fix harmless typo: s/,/;/
18 years ago
miham d08c913863 (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)
18 years ago
miham e60f7db359 (svn r8614) [Translations] -Prepare: prepare committing traditional chinese 18 years ago
KUDr 727409d2e8 (svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build 18 years ago
maedhros 310a299a43 (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.
18 years ago
celestar d3dc34c965 (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 18 years ago
bjarni f626458af7 (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
18 years ago
rubidium ec301e0f8a (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. 18 years ago
rubidium 69d4888c29 (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. 18 years ago
bjarni 5ebab4089a (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)
18 years ago
rubidium bec2c60245 (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. 18 years ago
miham 628527e999 (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)
18 years ago
tron 3690fbcc6e (svn r8582) -Fix
Reorder the attributes of some structs to reduce their size
18 years ago
KUDr 3d59cf0573 (svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build) 18 years ago
rubidium f38eb4bd8f (svn r8575) -Fix (8125): remove unused include 18 years ago
KUDr 3f7d1fd2de (svn r8574) -Fix: Silence VC2003 warning: "compiler limit : terminating debug information emission for enum 'StringIdEnum'" 18 years ago
rubidium 9796411a24 (svn r8573) -Cleanup: obey the comment style in stdafx.h. 18 years ago
rubidium 3675874113 (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.
18 years ago
tron efea7e8d6d (svn r8570) -Fix
Add a regular constructor and destructor to AirportFTAClass
18 years ago
peter1138 73ce8ea7f4 (svn r8569) -Fix (r8464): revert properly 18 years ago
maedhros fa22b5f2ae (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.
18 years ago
tron ab3c3e09d4 (svn r8566) -Fix
Remove untranslated strings
18 years ago
tron fbc368a7d3 (svn r8565) -Fix
Fix indentation
18 years ago
tron 7c06ff3962 (svn r8564) -Fix
Remove incorrect empty translations
18 years ago
tron ac04195805 (svn r8563) -Fix
Replace very old tabs which should be spaces by spaces
18 years ago
miham d711270ede (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)
18 years ago
tron f0f86442ad (svn r8559) -Fix
-Codechange: Put the airport movement data into struct AirportFTAClass
18 years ago
tron cf5514ce8d (svn r8550) -Fix
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
18 years ago
tron e2ad9abbca (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
18 years ago
tron fc4a53bff0 (svn r8548) -Fix
Remove redundant second retrieval of the AircraftVehicleInfo when building an aircraft
18 years ago
tron 8679ce4638 (svn r8547) -Fix
Remove redundant second retrieval of the station and airport when building an aircraft
18 years ago
rubidium 2f249e650b (svn r8546) -Codechange: add a seperate (wrapper) functions to send/receive booleans. 18 years ago
rubidium e50cc1ae49 (svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h 18 years ago
rubidium fe996cb13d (svn r8543) -Codechange: make a real difference between querying the server via UDP and TCP. 18 years ago
rubidium 6fd39ebb7c (svn r8542) -Codechange (Fix?): tweak the gamelist requery timeout so more servers are found for slow network connections. 18 years ago
KUDr 5198acfe22 (svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan) 18 years ago
tron dede093639 (svn r8539) -Fix
static
18 years ago