Commit Graph

6071 Commits (352273a5b3a80ea9775c91d525765d9928cfa1f6)
 

Author SHA1 Message Date
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)
18 years ago
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) 18 years ago
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 18 years ago
bjarni 9f31b897b6 (svn r8379) -Cleanup: [build vehicle window] removed overloading with DrawVehiclePurchaseInfo() and renamed them into type specific names 18 years ago
bjarni 9c6317a203 (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 8d89ca48e1 (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 e6ea9ba0f5 (svn r8376) -Codechange: remove unused table 18 years ago
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)
18 years ago
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.
18 years ago
rubidium cfb7fb3ac4 (svn r8373) -Codechange: remove some obsolete MSVC6 compatability defines 18 years ago
rubidium 269c1a58a0 (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 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
18 years ago
bjarni 422004013e (svn r8370) -Revert (r8363): the autoreplace GUI move cleared the file history 18 years ago
maedhros 914c8147c0 (svn r8369) -Cleanup: [Graphs] Rename include_neg and adj_height to more descriptive names, and add some more comments. 18 years ago
maedhros a014ace8e7 (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 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. 18 years ago
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.
18 years ago
belugas 294723d03f (svn r8365) -Cleanup: Remove unneeded and dead links, install Owner informations, add attribute m6.
More to come on that matter...
18 years ago
bjarni 8c3e4ead65 (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 97effdcb96 (svn r8363) -Codechange: [autoreplace GUI] moved the autoreplace GUI to a file of it's own 18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
miham 1f826dc002 (svn r8359) [Translations] -Change: Removed the .UTF-8 suffix from isocodes 18 years ago
maedhros a830397501 (svn r8356) -Codechange: [Graphs] Rename mx to highest_value, and fix the scaling for negative values. 18 years ago
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)
18 years ago
bjarni edf2f70565 (svn r8353) -Cleanup: added IsPlayerBuildableVehicleType() to autoreplace code (duplicated code removal) 18 years ago
maedhros 35c80532e9 (svn r8350) -Codechange: [Graphs] Use DrawStringCentered instead of a hardcoded offset to make the string appear centred. 18 years ago
bjarni 8de4196410 (svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with real static inline functions 18 years ago
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. 18 years ago
bjarni 29a89e0a2f (svn r8343) -Cleanup: [build vehicle windows] added a few comments and removed two switch-cases, that we can do without 18 years ago
bjarni 9f73cf6bb1 (svn r8341) -Codechange (r8336): added assert to VehTypeToIndex() to ensure valid vehicle types in the argument 18 years ago
bjarni 4099d62cb2 (svn r8340) -Cleanup (r8338): removed now unused header includes from roadveh_gui.cpp 18 years ago
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.
18 years ago
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
18 years ago
bjarni cf0e5816d6 (svn r8337) -Cleanup: removed some more switch-cases in build_vehicle_gui.cpp and added arrays + VehTypeToIndex() instead 18 years ago
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
18 years ago
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
18 years ago
bjarni 1f32ce7e89 (svn r8334) -Fix (r8331): build window buttons now both resize as intended 18 years ago
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
18 years ago
bjarni d82ae7427d (svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() from build_vehicle_gui.cpp to aircraft_gui.cpp 18 years ago
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
18 years ago
maedhros 17c71f4557 (svn r8330) -Codechange: Remove num_x and num_dataset from DrawGraph. 18 years ago
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. 18 years ago
maedhros 2b2fdc1281 (svn r8328) -Codechange: Remove some magic numbers in the graph drawing code. 18 years ago
bjarni bdc29f3d0d (svn r8327) -Codechange: though overloading, IsPlayerBuildableVehicleType() now works with the type given as a byte as well as a vehicle pointer 18 years ago
truelight dfd951c34c (svn r8326) -Fix r8304: forgot to update projects/generate to keep in mind the new WINCE tag in sources.list
-Fix: MSVC doesn't order files itself, so put win32.cpp in the right place ourself
-Update: update the MSVC projects files for r8324 (MiHaMiX)
18 years ago
miham 34de6db60d (svn r8324) [Translations] -Change: Declared simplified_chinese as officially available language (number of missing strings is far less than 100) 18 years ago
miham 1e01201713 (svn r8323) [Translations] -Fix: removed untranslated strings from chinese language, fixed a wrong plural param 18 years ago
maedhros 06362c3535 (svn r8322) -Codechange: Rename unk61A and unk61C to something a little more descriptive. 18 years ago