Commit Graph

458 Commits (96b43da86642c8272d358444f20b1b2160338af3)

Author SHA1 Message Date
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
rubidium 96e3e8cd1a (svn r8373) -Codechange: remove some obsolete MSVC6 compatability defines 18 years ago
rubidium 89865658b1 (svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater. 18 years ago
bjarni 10d6f066e4 (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
18 years ago
bjarni 751409fe83 (svn r8370) -Revert (r8363): the autoreplace GUI move cleared the file history 18 years ago
maedhros 470e22037f (svn r8369) -Cleanup: [Graphs] Rename include_neg and adj_height to more descriptive names, and add some more comments. 18 years ago
maedhros b29710c70f (svn r8368) -Cleanup: [Graphs] Rename the variables relating to whether datasets should be drawn, and use HASBIT for testing against them. 18 years ago
maedhros 9e0459e581 (svn r8367) -Fix: [Graphs] Don't try to use the same value to mean something is invalid for both an int64 and a uint. 18 years ago
maedhros 05a59ba413 (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.
18 years ago
bjarni aa2b69262b (svn r8364) -Codechange (r8362): added an assert to catch conditions where a request wants to draw more vehicles than the list contains 18 years ago
bjarni a7edefb8d7 (svn r8363) -Codechange: [autoreplace GUI] moved the autoreplace GUI to a file of it's own 18 years ago
bjarni a6a65f6c3e (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
18 years ago
rubidium daeadd9a0e (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
18 years ago
miham 18d525c62c (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
18 years ago
miham e480e3be93 (svn r8359) [Translations] -Change: Removed the .UTF-8 suffix from isocodes 18 years ago
maedhros 8d64ee83af (svn r8356) -Codechange: [Graphs] Rename mx to highest_value, and fix the scaling for negative values. 18 years ago
miham a9eee2ee88 (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)
18 years ago
bjarni c4dd62914a (svn r8353) -Cleanup: added IsPlayerBuildableVehicleType() to autoreplace code (duplicated code removal) 18 years ago
maedhros 7ce4df0ee7 (svn r8350) -Codechange: [Graphs] Use DrawStringCentered instead of a hardcoded offset to make the string appear centred. 18 years ago
bjarni 89bf1d627b (svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with real static inline functions 18 years ago
maedhros 5275a0ed1d (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. 18 years ago
bjarni f19c84dc25 (svn r8343) -Cleanup: [build vehicle windows] added a few comments and removed two switch-cases, that we can do without 18 years ago
bjarni 2f5bc96b47 (svn r8341) -Codechange (r8336): added assert to VehTypeToIndex() to ensure valid vehicle types in the argument 18 years ago
bjarni 8c9afdcadf (svn r8340) -Cleanup (r8338): removed now unused header includes from roadveh_gui.cpp 18 years ago
belugas bfa5822bd8 (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.
18 years ago
bjarni 71d22b2f5e (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
18 years ago
bjarni 09c9fe501f (svn r8337) -Cleanup: removed some more switch-cases in build_vehicle_gui.cpp and added arrays + VehTypeToIndex() instead 18 years ago
bjarni be5f289275 (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
18 years ago
bjarni c39e513076 (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
18 years ago
bjarni e6e1334eb3 (svn r8334) -Fix (r8331): build window buttons now both resize as intended 18 years ago
bjarni ade2af8ac6 (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
18 years ago
bjarni f87494587e (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp 18 years ago
bjarni 884af9d856 (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
18 years ago
maedhros 612658b506 (svn r8330) -Codechange: Remove num_x and num_dataset from DrawGraph. 18 years ago
maedhros 45bb50d6b6 (svn r8329) -Codechange: Remove the the horribly abused j and k variables completely, and make i local to each loop it's used in. 18 years ago
maedhros c7b1268336 (svn r8328) -Codechange: Remove some magic numbers in the graph drawing code. 18 years ago
bjarni b7af27911e (svn r8327) -Codechange: though overloading, IsPlayerBuildableVehicleType() now works with the type given as a byte as well as a vehicle pointer 18 years ago
miham 3e93fecb68 (svn r8324) [Translations] -Change: Declared simplified_chinese as officially available language (number of missing strings is far less than 100) 18 years ago
miham 239519d1e2 (svn r8323) [Translations] -Fix: removed untranslated strings from chinese language, fixed a wrong plural param 18 years ago
maedhros 5d6d180be9 (svn r8322) -Codechange: Rename unk61A and unk61C to something a little more descriptive. 18 years ago
tron 900113f8d2 (svn r8321) -Fix
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
18 years ago
tron 5438336102 (svn r8320) -Fix
Simplify TrainPowerChanged() somewhat by eleminating code duplication
18 years ago
maedhros 60864af5d1 (svn r8319) -Codechange: Remove the remaining colours from GraphDrawer as they're also the same everywhere. 18 years ago
miham 43e275f758 (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)
18 years ago
maedhros 3ba288f8ef (svn r8317) -Codechange: Remove GraphDrawer::bg_line_color since it was the same everywhere it was set. 18 years ago
rubidium a93eb4b8d8 (svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused. 18 years ago
truelight 365dc05cd7 (svn r8315) -Fix: use ShowInfo over fprintf(stderr, as Windows doesn't always have a stderr visible/available 18 years ago
tron 3d5acc1450 (svn r8314) -Fix
-Codechange: Move the railtype from EngineInfo to RailVehicleInfo, because having a railtype for non-rail vehicles isn't that useful
18 years ago
maedhros 667c4c0a0a (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++.
18 years ago
truelight 21c7801345 (svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;) 18 years ago
truelight b488d9d420 (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
18 years ago
truelight 4daaa0dcfb (svn r8308) [WinCE] -Revert r5764: in case of WinCE, use the code for FileExists as it was in pre-r5764 for Win32 (tnx Darkvater) 18 years ago
truelight 84cd8f49df (svn r8307) [WinCE] -Fix: for now disable sound and music. That will be done later. 18 years ago
truelight 7ee1ff5af1 (svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an alternative where possible 18 years ago
truelight 465cc38811 (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 ;)
18 years ago
bjarni a21e290995 (svn r8303) -Codechange (r8293): default is moved to the front of the switch in ShowVehicleListWindowLocal() 18 years ago
maedhros babda828ab (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. 18 years ago
maedhros cf06eae3bb (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.
18 years ago
tron 9e7b066522 (svn r8299) -Fix
Remove unreachable code
18 years ago
bjarni 8ca4a7d8d9 (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
18 years ago
bjarni 1995cdf00b (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
18 years ago
bjarni 24a8b16197 (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
18 years ago
bjarni 44494a8e93 (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()
18 years ago
miham 799fbda05a (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)
18 years ago
miham 28681f0419 (svn r8289) [Translations] -Fix: translators sent some offline translation for simplified chinese (Fishingsnow) and japanese (ickoonite) 18 years ago
bjarni 7c78bb79d6 (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
18 years ago
peter1138 2a732f2d3c (svn r8287) -Fix (r8286): forgot to check for newline format, sorry... 18 years ago
peter1138 b01d4375e9 (svn r8286) -Add: Korean translation by Ezi 18 years ago
KUDr 5775115eba (svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof 18 years ago
peter1138 23bf684a5d (svn r8283) -Fix (r8128): Custom waypoint drawing used wrong bits since bitshuffling occurred. Also update with other station drawing changes (code duplication,
eh?)
18 years ago
miham a5b864c932 (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)
18 years ago
peter1138 6228127ae9 (svn r8280) -Codechange: Remove unnecessarily complex assignment of waypoint string ID. 18 years ago
Darkvater 7201689a17 (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 18 years ago
KUDr a2eda30afa (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. 18 years ago