Commit Graph

734 Commits

Author SHA1 Message Date
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