Commit Graph

5854 Commits

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