summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-01-22(svn r8362) -Codechange: [vehicle build window] moved the engine drawing ↵bjarni
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(svn r8361) -Codechange: make sure the range of the dates coming from the ↵rubidium
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(svn r8360) [Translations] -Fix: removed 4 empty strings from simplified ↵miham
chinese translation -Fix: added dummy ownname to Korean, translator will have to supply it through WT2
2007-01-22(svn r8359) [Translations] -Change: Removed the .UTF-8 suffix from isocodesmiham
2007-01-22(svn r8356) -Codechange: [Graphs] Rename mx to highest_value, and fix the ↵maedhros
scaling for negative values.
2007-01-22(svn r8354) -Update: WebTranslator2 update to 2007-01-22 19:27:50miham
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(svn r8353) -Cleanup: added IsPlayerBuildableVehicleType() to autoreplace ↵bjarni
code (duplicated code removal)
2007-01-22(svn r8350) -Codechange: [Graphs] Use DrawStringCentered instead of a ↵maedhros
hardcoded offset to make the string appear centred.
2007-01-22(svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with ↵bjarni
real static inline functions
2007-01-22(svn r8347) -Codechange: [Graphs] Make some more variables local to the ↵maedhros
loops they're used in, and remove some assumptions about the size of an array.
2007-01-22(svn r8343) -Cleanup: [build vehicle windows] added a few comments and ↵bjarni
removed two switch-cases, that we can do without
2007-01-22(svn r8341) -Codechange (r8336): added assert to VehTypeToIndex() to ensure ↵bjarni
valid vehicle types in the argument
2007-01-22(svn r8340) -Cleanup (r8338): removed now unused header includes from ↵bjarni
roadveh_gui.cpp
2007-01-22(svn r8339) -Fix(r8331): MSVC seems to be a little more strict (or less ↵belugas
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(svn r8338) -Codechange: merged road vehicle build window into the other onesbjarni
Note: now all build vehicle windows are merged into build_vehicle_gui.cpp
2007-01-22(svn r8337) -Cleanup: removed some more switch-cases in ↵bjarni
build_vehicle_gui.cpp and added arrays + VehTypeToIndex() instead
2007-01-22(svn r8336) -Codechange: added function to translate vehicle types to ↵bjarni
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(svn r8335) -Feature: the build ship window is now also resizable ↵bjarni
horizontally and contains sorting options -Codechange: the build ship window is merged into build_vehicle_gui.cpp
2007-01-21(svn r8334) -Fix (r8331): build window buttons now both resize as intendedbjarni
2007-01-21(svn r8333) -Codechange: when invalidating a build window list, set a flag ↵bjarni
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(svn r8332) -Codechange: moved DrawAircraftImage() and CcBuildAircraft() ↵bjarni
from build_vehicle_gui.cpp to aircraft_gui.cpp
2007-01-21(svn r8331) -Feature: the train and aircraft build windows are now resizable ↵bjarni
in horizontal direction as well -Codechange: merged train and aircraft build window code
2007-01-21(svn r8330) -Codechange: Remove num_x and num_dataset from DrawGraph.maedhros
2007-01-21(svn r8329) -Codechange: Remove the the horribly abused j and k variables ↵maedhros
completely, and make i local to each loop it's used in.
2007-01-21(svn r8328) -Codechange: Remove some magic numbers in the graph drawing code.maedhros
2007-01-21(svn r8327) -Codechange: though overloading, IsPlayerBuildableVehicleType() ↵bjarni
now works with the type given as a byte as well as a vehicle pointer
2007-01-21(svn r8324) [Translations] -Change: Declared simplified_chinese as ↵miham
officially available language (number of missing strings is far less than 100)
2007-01-21(svn r8323) [Translations] -Fix: removed untranslated strings from chinese ↵miham
language, fixed a wrong plural param
2007-01-21(svn r8322) -Codechange: Rename unk61A and unk61C to something a little more ↵maedhros
descriptive.
2007-01-21(svn r8321) -Fixtron
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
2007-01-21(svn r8320) -Fixtron
Simplify TrainPowerChanged() somewhat by eleminating code duplication
2007-01-21(svn r8319) -Codechange: Remove the remaining colours from GraphDrawer as ↵maedhros
they're also the same everywhere.
2007-01-21(svn r8318) -Update: WebTranslator2 update to 2007-01-21 19:29:35miham
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(svn r8317) -Codechange: Remove GraphDrawer::bg_line_color since it was the ↵maedhros
same everywhere it was set.
2007-01-21(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to ↵rubidium
GRFIdentifier so it can be reused.
2007-01-21(svn r8315) -Fix: use ShowInfo over fprintf(stderr, as Windows doesn't ↵truelight
always have a stderr visible/available
2007-01-21(svn r8314) -Fixtron
-Codechange: Move the railtype from EngineInfo to RailVehicleInfo, because having a railtype for non-rail vehicles isn't that useful
2007-01-21(svn r8312) -Fix (r8038, sort of): Operating profit and the company value ↵maedhros
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(svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;)truelight
2007-01-21(svn r8309) [WinCE] -Fix: WinCE doesn't know resolution changingtruelight
-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(svn r8308) [WinCE] -Revert r5764: in case of WinCE, use the code for ↵truelight
FileExists as it was in pre-r5764 for Win32 (tnx Darkvater)
2007-01-21(svn r8307) [WinCE] -Fix: for now disable sound and music. That will be done ↵truelight
later.
2007-01-21(svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an ↵truelight
alternative where possible
2007-01-21(svn r8305) -Codechange: defining 'static const' in a header is a bit weird.truelight
Above that, wince-gcc gave "unused variable" on every file which included airport.h... pretty annoying ;)
2007-01-21(svn r8303) -Codechange (r8293): default is moved to the front of the switch ↵bjarni
in ShowVehicleListWindowLocal()
2007-01-21(svn r8301) -Codechange: Move the code relating to the sign list window from ↵maedhros
graph_gui.cpp to a file of its own: signs_gui.cpp.
2007-01-21(svn r8300) -Codechange: Add a prototype for DrawPlayerIcon to players.h and ↵maedhros
include that instead of using externs. Also move DrawPlayerIcon from graph_gui.cpp to players.cpp.
2007-01-21(svn r8299) -Fixtron
Remove unreachable code
2007-01-21(svn r8296) -Fix: GenerateVehicleSortList() tried to put a TileIndex into an ↵bjarni
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(svn r8295) -Cleanup: merged arguments station, order and ↵bjarni
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