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.
2007-01-24 18:03:36 +00:00
tron
2e6c663b94
(svn r8392) -Fix
...
Use HASBIT() instead of implementing it manually
2007-01-24 17:58:07 +00:00
peter1138
ba6b7c1403
(svn r8391) -Codechange: Make normal/desert/rainforest detection for newgrf stations work
2007-01-24 15:01:20 +00:00
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
2007-01-24 14:32:20 +00:00
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.
2007-01-24 07:14:09 +00:00
bjarni
4dd0d007b1
(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
802d1065b2
(svn r8383) -Feature: train detail window is now resizable horizontally (requested by Wolf01)
2007-01-24 01:37:04 +00:00
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)
2007-01-24 00:55:35 +00:00
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)
2007-01-23 21:24:26 +00:00
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
2007-01-23 20:55:08 +00:00
bjarni
ff2ce417a3
(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
116cbcedb1
(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
5a47d11689
(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
c6e54b92aa
(svn r8376) -Codechange: remove unused table
2007-01-23 19:36:59 +00:00
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)
2007-01-23 18:37:00 +00:00
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.
2007-01-23 15:47:28 +00:00
rubidium
96e3e8cd1a
(svn r8373) -Codechange: remove some obsolete MSVC6 compatability defines
2007-01-23 14:58:10 +00:00
rubidium
89865658b1
(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
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
2007-01-23 13:26:12 +00:00
bjarni
751409fe83
(svn r8370) -Revert (r8363): the autoreplace GUI move cleared the file history
2007-01-23 13:10:43 +00:00
maedhros
470e22037f
(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
b29710c70f
(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
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.
2007-01-23 11:20:59 +00:00
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.
2007-01-23 10:21:51 +00:00
belugas
1b2516964d
(svn r8365) -Cleanup: Remove unneeded and dead links, install Owner informations, add attribute m6.
...
More to come on that matter...
2007-01-23 02:31:49 +00:00
bjarni
aa2b69262b
(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
a7edefb8d7
(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
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
2007-01-22 23:23:30 +00:00
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
2007-01-22 21:38:16 +00:00
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
2007-01-22 21:00:38 +00:00
miham
e480e3be93
(svn r8359) [Translations] -Change: Removed the .UTF-8 suffix from isocodes
2007-01-22 20:52:20 +00:00
maedhros
8d64ee83af
(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
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)
2007-01-22 18:28:30 +00:00
bjarni
c4dd62914a
(svn r8353) -Cleanup: added IsPlayerBuildableVehicleType() to autoreplace code (duplicated code removal)
2007-01-22 16:48:36 +00:00
maedhros
7ce4df0ee7
(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
89bf1d627b
(svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with real static inline functions
2007-01-22 16:16:52 +00:00
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.
2007-01-22 15:46:57 +00:00
bjarni
f19c84dc25
(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
2f5bc96b47
(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
8c9afdcadf
(svn r8340) -Cleanup (r8338): removed now unused header includes from roadveh_gui.cpp
2007-01-22 08:38:18 +00:00
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.
2007-01-22 02:59:50 +00:00
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
2007-01-22 02:09:51 +00:00
bjarni
09c9fe501f
(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
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
2007-01-22 01:13:10 +00:00
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
2007-01-22 00:26:46 +00:00
bjarni
e6e1334eb3
(svn r8334) -Fix (r8331): build window buttons now both resize as intended
2007-01-21 23:24:25 +00:00
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
2007-01-21 23:13:46 +00:00
bjarni
f87494587e
(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
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
2007-01-21 22:50:43 +00:00
maedhros
612658b506
(svn r8330) -Codechange: Remove num_x and num_dataset from DrawGraph.
2007-01-21 20:54:29 +00:00