Commit Graph

531 Commits (7eab669a888fa61f916b4617315eff6a53c712ff)

Author SHA1 Message Date
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
tron 059552f2d9 (svn r8538) -Fix
GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
18 years ago
miham ee650409f8 (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)
18 years ago
celestar c09e73a5e5 (svn r8536) -Fix (FS#577): Road Vehicles now can obtain a slot even if the station is very spread out 18 years ago
belugas 22a22a7d3f (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.
18 years ago
celestar 8be271f9b0 (svn r8534) -Feature/Codechange: Provide aircraft with vertical separation depending on their altitude and velocity 18 years ago
rubidium 6d50c66d67 (svn r8533) -Fix: segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar. 18 years ago
tron 097b12f998 (svn r8531) -Fix
Remove unnecessary pointer mumbo-jumbo from FindRoadStopSpot()
18 years ago
celestar c95736046b (svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming conflict no longer exists. 18 years ago
miham bf4f9a84bc (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)
18 years ago
peter1138 0fd8543085 (svn r8526) -Codechange: add stubs for unsupported newgrf station properties 18 years ago
rubidium 922a623402 (svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet functions of NetworkTCPSocketHandler. 18 years ago
Darkvater 6ff65bdf3b (svn r8524) -Cleanup: Ala r8509 add some enum names to the generate landscape window 18 years ago
rubidium 105cd53868 (svn r8523) -Codechange: move all the Network(Recv|Send)_(uintXX|string) functions to Packet. 18 years ago
Darkvater 0b4d416e1f (svn r8522) -Regression (r8512): The flat/random window moved the to scenario editor did not use the right settings for generating land 18 years ago
rubidium 51c2af6e5e (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. 18 years ago
rubidium 752ca4ebf7 (svn r8520) -Fix/Feature: requery gameservers that did not respond to their first query. 18 years ago
celestar 4d0d6864ee (svn r8514) -Codechange: Turn IsBuoy into a method of stations 18 years ago
Darkvater 51db81921c (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). 18 years ago
Darkvater dbc5fe943d (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. 18 years ago
rubidium 2a9851a3ad (svn r8511) -Codechange: make WindowClass an enumerated value. 18 years ago
Darkvater 7735c2197f (svn r8509) -Cleanup: Add some enum names to the create scenario window 18 years ago
Darkvater f3b45316b2 (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. 18 years ago
Darkvater a5228fd33c (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. 18 years ago
peter1138 fd62bc46d0 (svn r8505) -Codechange: Ensure GRM allocated sprites will be below the original 16384 sprite limit. If not, fail and disable the NewGRF. 18 years ago
maedhros 913558797b (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. 18 years ago
tron fc9e84b04e (svn r8499) -Fix
-Fix (?): When removing an oil rig replace the station tile by water, not bare land
18 years ago
tron e937ffee0d (svn r8498) -Fix
-Codechange: Move the update of the oil rig airport type to the recently (r8485) added loop
18 years ago
Darkvater 80abfa165e (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(). 18 years ago
tron c846b28d40 (svn r8485) -Fix
-Fix (since the dawn of time): Remove phantom oil rigs sometimes present in old savegames
18 years ago
KUDr 4a5c2bb70c (svn r8482) -Revert (r8480): let others to do it properly 18 years ago
KUDr bba796fe8b (svn r8480) -Fix [lang]: Error caused by missing case 18 years ago
KUDr 02f17406b1 (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'
18 years ago
tron 0f17d25377 (svn r8478) -Fix
Change the structure of the the loop in r8477 to prepare for further changes
18 years ago
tron cb859f4a6a (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
18 years ago
tron 1266624e88 (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*)
18 years ago
tron 49fabae7a1 (svn r8475) -Fix
Remove the unused remnants of blocked_months_obsolete
18 years ago
tron 36d965a697 (svn r8474) -Fix
Turn GetPrimaryRoadStop() into a method of struct Station
18 years ago
peter1138 8b4f046fd1 (svn r8465) -Regression (r8455): Switching from dual to single head should switch to wagon if power is zero. .Or something. 18 years ago
peter1138 4438b99ae4 (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. 18 years ago
miham 5ebd7391a1 (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)
18 years ago
rubidium 6787514d62 (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. 18 years ago
bjarni a97d87be9a (svn r8460) -Fix (r8455): the build train window put locomotives and wagons in appeantly random order 18 years ago
rubidium cd6a826ecf (svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to NetworkSocketHandler, so it can also be used the TCP socket handler. 18 years ago
miham 3090873224 (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)
18 years ago
belugas e8af755d7f (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.
18 years ago
tron 5a9873c3bd (svn r8449) -Fix
-Codechange: Remove the superfluous attribute RoadStop::prev
18 years ago
Darkvater 83ba97c755 (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 18 years ago
rubidium f78d463f07 (svn r8446) -Fix (8445): accidentally made a function that should not be abstract abstract. 18 years ago
rubidium 66f46b71a1 (svn r8445) -Cleanup: remove some @params from comments as the parameters did not exist anymore and add comments to several variables/functions. 18 years ago
miham 95f33ea087 (svn r8444) -Fix: [Translations] Fixes from russian translator Quark 18 years ago
miham 794f77d34e (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)
18 years ago
rubidium 3e6bd9c2e9 (svn r8437) -Codechange: move often duplicated (in MSU) define to the udp header. 18 years ago
tron 5052c6609d (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
18 years ago
peter1138 45654f8be0 (svn r8434) -Fix (r8430): Missing braces caused compilation failure for some (most?) compilers... 18 years ago
miham f3b90e589c (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)
18 years ago
tron 9ccb6ddd71 (svn r8430) -Fix
Replace the rather obscure control flow for handling aircraft/ship/train orders by something remotly comprehensible (see r3584)
18 years ago
Darkvater fa0b625552 (svn r8429) -Codechange: Add a name for AircraftVehicleInfo subtype helicopter and remove some magic numbers related to the subtype. 18 years ago
Darkvater 2ff4492abc (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. 18 years ago
tron 36039f318d (svn r8427) -Fix
s/m?/m³/
18 years ago
tron e446379102 (svn r8426) -Fix
Slightly simplify the code which determines whether to build a rail or a road bridge
18 years ago
tron fa8f46c88e (svn r8425) -Fix
Do not try to invalidate a window which just got deleted. It is pointless
18 years ago
tron d858077fd2 (svn r8424) -Fix
Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
18 years ago
tron 08b110952a (svn r8423) -Fix
Do not explicitly pass the station specification and the station to ResolveStation(). They are already contained in the ResolverObject
18 years ago
tron f11163bbb9 (svn r8422) -Fix
-Regression (r8314): Reevaluate the disabled elrail setting after loading because the railtype doesn't get saved anymore
18 years ago
Darkvater 19b81c4faa (svn r8421) -Codechange (r8420): rename STR_AVAILABLE_VEHICLES to STR_AVAILABLE_ROAD_VEHICLES for clarificaton (Tron) 18 years ago
Darkvater 15edd465ac (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. 18 years ago
miham 90fc4671b4 (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)
18 years ago
KUDr 55ac8f843a (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
18 years ago
KUDr 1943e8cb8c (svn r8413) -Fix [MORPHOS]: disable #define offsetof conflict on Morphos (seems that g++ 2.95 defines it anyway) 18 years ago
truelight 561daaba2c (svn r8412) [MorphOS] -Fix: assert_compile(x != y) doesn't work, but assert_compile(!(x == y)) does.. don't ask me why! 18 years ago
truelight ef37b30674 (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. 18 years ago
tron 044f395b7b (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.
18 years ago
Darkvater 783902838e (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).
18 years ago
miham 4dd7a61a50 (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)
18 years ago
celestar 2745180a50 (svn r8403) -Fix (r8402): Forgot to remove an enum 18 years ago
celestar dfb5556376 (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 18 years ago
celestar e3fbc6c06b (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
18 years ago
tron 1da6c719fd (svn r8400) -Fix
Simplify r8399
18 years ago
glx 1b48fd232f (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 18 years ago
Darkvater b0f7707df8 (svn r8398) -Cleanup: Remove WATCOM crud from strgen and map.h include from macros.h as it is no longer needed. 18 years ago
bjarni 4bd4583df1 (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
18 years ago
miham 0543c355e9 (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)
18 years ago
bjarni 731b14d569 (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 18 years ago
bjarni e4b7a14f96 (svn r8394) -Cleanup: added an enum with widget names to the orders window 18 years ago
tron fdee057baf (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.
18 years ago
tron 2e6c663b94 (svn r8392) -Fix
Use HASBIT() instead of implementing it manually
18 years ago
peter1138 ba6b7c1403 (svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work 18 years ago
bjarni 058df1b99f (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
18 years ago
tron 7fffe8b3d4 (svn r8385) -Fix
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
18 years ago
bjarni 4dd0d007b1 (svn r8384) -Codechange: [GUI] instead of writing a resize button function for each window, a global ResizeButtons() is added 18 years ago
bjarni 802d1065b2 (svn r8383) -Feature: train detail window is now resizable horizontally (requested by Wolf01) 18 years ago
bjarni 625368772e (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)
18 years ago
bjarni e40723568a (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) 18 years ago
miham 8cce582301 (svn r8380) [Translations] -Fix: After held a developer mini-conference upon this wrong argidx issue, we decided to remove the {P ..} from STR_TONS 18 years ago
bjarni ff2ce417a3 (svn r8379) -Cleanup: [build vehicle window] removed overloading with DrawVehiclePurchaseInfo() and renamed them into type specific names 18 years ago
bjarni 116cbcedb1 (svn r8378) -Fix (r8331): [build vehicle window] extended the widget with the details with one line since some newgrf trains needs it 18 years ago
bjarni 5a47d11689 (svn r8377) -Fix (r8331): [build vehicle window] train cargo capacity now only add "(refitable)" if the engine in question is refitable 18 years ago
rubidium c6e54b92aa (svn r8376) -Codechange: remove unused table 18 years ago
miham c62bd7d21c (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)
18 years ago
maedhros 24b81e6e46 (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.
18 years ago