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
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.
2007-01-21 20:34:28 +00:00
maedhros
c7b1268336
(svn r8328) -Codechange: Remove some magic numbers in the graph drawing code.
2007-01-21 20:14:35 +00:00
bjarni
b7af27911e
(svn r8327) -Codechange: though overloading, IsPlayerBuildableVehicleType() now works with the type given as a byte as well as a vehicle pointer
2007-01-21 20:08:00 +00:00
truelight
61eef2ded9
(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)
2007-01-21 19:40:38 +00:00
miham
3e93fecb68
(svn r8324) [Translations] -Change: Declared simplified_chinese as officially available language (number of missing strings is far less than 100)
2007-01-21 19:31:29 +00:00
miham
239519d1e2
(svn r8323) [Translations] -Fix: removed untranslated strings from chinese language, fixed a wrong plural param
2007-01-21 19:27:50 +00:00
maedhros
5d6d180be9
(svn r8322) -Codechange: Rename unk61A and unk61C to something a little more descriptive.
2007-01-21 19:19:25 +00:00
tron
900113f8d2
(svn r8321) -Fix
...
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
2007-01-21 19:00:31 +00:00
tron
5438336102
(svn r8320) -Fix
...
Simplify TrainPowerChanged() somewhat by eleminating code duplication
2007-01-21 18:46:19 +00:00
maedhros
60864af5d1
(svn r8319) -Codechange: Remove the remaining colours from GraphDrawer as they're also the same everywhere.
2007-01-21 18:42:15 +00:00
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)
2007-01-21 18:30:21 +00:00
maedhros
3ba288f8ef
(svn r8317) -Codechange: Remove GraphDrawer::bg_line_color since it was the same everywhere it was set.
2007-01-21 18:07:35 +00:00
rubidium
a93eb4b8d8
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
2007-01-21 17:29:38 +00:00
truelight
365dc05cd7
(svn r8315) -Fix: use ShowInfo over fprintf(stderr, as Windows doesn't always have a stderr visible/available
2007-01-21 17:09:32 +00:00
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
2007-01-21 16:08:18 +00:00
truelight
5d4acb5906
(svn r8313) [WinCE] -Fix: -lws2 wasn't included in libraries, so network couldn't be linked
2007-01-21 15:18:36 +00:00
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++.
2007-01-21 15:03:37 +00:00
truelight
e6f033f692
(svn r8311) [WinCE] -Fix r8304: GDI wasn't enabled by default on WinCE
2007-01-21 14:44:25 +00:00
truelight
21c7801345
(svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;)
2007-01-21 14:36:08 +00:00
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
2007-01-21 14:32:40 +00:00
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)
2007-01-21 14:21:31 +00:00
truelight
84cd8f49df
(svn r8307) [WinCE] -Fix: for now disable sound and music. That will be done later.
2007-01-21 14:19:44 +00:00
truelight
7ee1ff5af1
(svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an alternative where possible
2007-01-21 14:19:18 +00:00
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 ;)
2007-01-21 14:15:38 +00:00
truelight
3a8024597d
(svn r8304) [WinCE] -Add: added configure detection for WinCE.
...
Compiling doesn't work, neither does running, but it is a first step in developing an official WinCE port
2007-01-21 14:14:27 +00:00
bjarni
a21e290995
(svn r8303) -Codechange (r8293): default is moved to the front of the switch in ShowVehicleListWindowLocal()
2007-01-21 13:16:31 +00:00
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.
2007-01-21 12:35:35 +00:00
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.
2007-01-21 11:49:18 +00:00
tron
9e7b066522
(svn r8299) -Fix
...
Remove unreachable code
2007-01-21 08:04:14 +00:00
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
2007-01-21 01:25:59 +00:00
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
2007-01-21 01:07:15 +00:00
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
2007-01-21 00:13:39 +00:00
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()
2007-01-21 00:01:47 +00:00
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)
2007-01-20 18:50:50 +00:00
miham
28681f0419
(svn r8289) [Translations] -Fix: translators sent some offline translation for simplified chinese (Fishingsnow) and japanese (ickoonite)
2007-01-20 18:42:27 +00:00
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
2007-01-20 11:26:16 +00:00
peter1138
2a732f2d3c
(svn r8287) -Fix (r8286): forgot to check for newline format, sorry...
2007-01-20 09:49:29 +00:00
peter1138
b01d4375e9
(svn r8286) -Add: Korean translation by Ezi
2007-01-20 09:19:37 +00:00