Commit Graph

4585 Commits

Author SHA1 Message Date
bjarni
c471ddf4b6 (svn r6269) -Fix r6240: fixed incorrect row count in vehicle lists when resizing to smaller windows (AsterixMG) 2006-08-31 13:28:59 +00:00
tron
fbbaa57001 (svn r6268) Remove now pointless assignment (followup of r6267) 2006-08-31 12:19:32 +00:00
tron
8193ee2b04 (svn r6267) Simplify the control flow in the rail tile loop by eliminating a bool flag and replacing it by a simple goto 2006-08-31 11:42:16 +00:00
tron
48258d844f (svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job 2006-08-31 11:25:00 +00:00
tron
1bb62bdef7 (svn r6265) Check whether to draw catenary at all once before the drawing loop instead of on every iteration 2006-08-31 11:18:30 +00:00
tron
f44e915cdc (svn r6264) Get rid of a cast 2006-08-31 10:36:59 +00:00
miham
af921181ea (svn r6263) WebTranslator2 update to 2006-08-31 12:34:27
dutch      - 4 fixed by habell (4)
french     - 4 fixed, 4 changed by glx (8)
german     - 4 fixed by Neonox (4)
polish     - 4 fixed by meush (4)
portuguese - 11 fixed, 17 changed by izhirahider (19), nars (9)
turkish    - 9 fixed, 10 changed by jnmbk (19)
2006-08-31 10:34:59 +00:00
tron
430927c913 (svn r6262) Remove unused #define and function declaration 2006-08-31 10:14:47 +00:00
bjarni
7aa94f0d4f (svn r6261) -Fix r6246: fixed sprite related crash related to other player's vehicle list windows (spotted by Darkvater) 2006-08-31 09:40:10 +00:00
tron
22c12573b9 (svn r6260) Improve readability 2006-08-31 08:36:31 +00:00
tron
a400582d61 (svn r6259) Extract the axis directly, don't use a trinary operator 2006-08-31 08:16:28 +00:00
tron
5c1ba39472 (svn r6258) Reduce the number of induction variables and inner scopes for clarity 2006-08-31 08:11:08 +00:00
tron
413f4cbbf0 (svn r6257) Use memcmp() to check the MD5 sum instead of using a home brewed loop 2006-08-31 07:52:20 +00:00
tron
7a3231f867 (svn r6256) if () cascades -> switch () 2006-08-31 07:49:34 +00:00
tron
f1a9bda2d5 (svn r6255) Simplify drawing of catenary in depots 2006-08-31 07:29:19 +00:00
tron
a398ba8b59 (svn r6254) if () cascade -> switch () 2006-08-31 07:13:36 +00:00
tron
55d5fdb978 (svn r6253) Comment out code with #if 0, not //. Join statements which needlessly span many lines into fewer lines 2006-08-31 07:09:13 +00:00
tron
0a638fbeab (svn r6252) Replace a comglomerate of ifs for animated station tiles by a small table and a loop iterating over it 2006-08-31 07:01:26 +00:00
tron
d0a0786ef1 (svn r6251) Replace 2 bool variables by a simple switch 2006-08-31 06:46:52 +00:00
bjarni
e2f8ef4f72 (svn r6249) -Fix: fixed assert when pressing goto depot in an empty list (forgot to disable the button in this condition)
-Code cleanup r6246: simplified SendAllVehiclesToDepot() and moved an { in PlayerVehWndProc()
2006-08-30 23:01:45 +00:00
glx
65c03f32ee (svn r6247) -Fix(r6244): invalid arguments caused infinite loop 2006-08-30 22:32:25 +00:00
bjarni
1d011b57d2 (svn r6246) -Feature: added the many times requested "send all vehicle to depot" button
it's located in the vehicle list screen and does the same as in the shared orders window (send all vehicles in list to a depot)
	it will still not inform the player if a vehicle failed to find a depot, so don't take for granted that all of them go
2006-08-30 21:39:01 +00:00
KUDr
d5ebb2b359 (svn r6245) -Add: added comments for all YAPF C interface functions (yapf.h) used by other modules, added FollowTrackInit() into YAPF track followers. 2006-08-30 21:10:25 +00:00
glx
513b2f8cd9 (svn r6244) -Fix: allow any order for strgen parameters 2006-08-30 20:08:58 +00:00
bjarni
ba3cc51d5b (svn r6243) -Codechange: made SortVehicleList() static as well since that one is not used in any other files either (Thanks Tron for pointing this out) 2006-08-30 19:49:46 +00:00
bjarni
118409fb8c (svn r6242) -Codechange: made BuildVehicleList static as it is not used in any other files anymore
added window_type to arguments and used it to replace an if cascade with a switch case
2006-08-30 19:42:20 +00:00
bjarni
76dd9bf928 (svn r6241) -Fix r6240: missed altering one line in last commit 2006-08-30 19:10:12 +00:00
bjarni
9e42d2c51b (svn r6240) -Code cleanup: in PlayerVehWndProc: replaced size_of_row with w->resize.step_height
it was only used twice, so there was no reason to calculate it for each event
2006-08-30 18:35:02 +00:00
bjarni
ce24a73673 (svn r6239) -Code cleanup: cleaned up PlayerVehWndProc
code to delete an empty shared orders list is now much simpler
	cleaned up the code to handle button clicks
	fixed an assert if widget 9 was pressed on a list with vehicles for another company
2006-08-30 16:32:00 +00:00
tron
a0416e2690 (svn r6238) Use the colour stored in _colour_gradient[] instead of explicitly retrieving it with GetNonSprite() 2006-08-30 14:30:26 +00:00
bjarni
97b692937a (svn r6237) -Fix r6165: fixed wrong hangar name in heading for hangar strings
also fixed inconsistent Danish translation and a typo in Dutch in the same strings
2006-08-30 13:41:53 +00:00
rubidium
7afa35a37e (svn r6236) -Fix (FS#313): TGP generation seed edit box only accepted seeds up to 2^31-1, instead of up to 2^32-2. 2006-08-30 12:37:04 +00:00
Darkvater
c0539634a2 (svn r6235) -Cleanup: Make SVN ignore everything not under version control in the data/ folder 2006-08-30 09:29:20 +00:00
bjarni
386468dc72 (svn r6229) -Feature: Shared order lists now got a "goto depot" button
this will try to send all vehicles in the list to depots/hangars
	currently if one fails to find a depot, it will not tell the player
2006-08-29 23:39:57 +00:00
bjarni
1305b2365f (svn r6228) -Fix: redrawing an empty list of shared vehicles will now close the window
Since the order is no more, the player will not need that particular window anymore
	this could happen if the player opened the window and then sold all the vehicles (or crashed them)
	A crash could happen if a new order gets the same (now freed) OrderID and the vehicle using it is not of the same type as the window expect
2006-08-29 22:47:38 +00:00
bjarni
c820704f11 (svn r6227) -Codechange: added window type flags to use with PlayerVehWndProc
this makes the list type detection much easier and allowed an if cascade to be turned into a switch case
	this also makes it easier to add more list types
2006-08-29 21:36:39 +00:00
glx
9247868696 (svn r6226) -Fix(r5864): an assertion was triggered when drawing catenary on steep slopes (TrueLight) 2006-08-29 21:34:02 +00:00
Darkvater
fd57cba7e5 (svn r6225) -Codechange: change the warning/error format of strgen to show up
in MSVC 'Task List' as well.
2006-08-29 20:55:25 +00:00
miham
9b39b43914 (svn r6224) WebTranslator2 update to 2006-08-29 22:34:42
dutch      - 10 fixed, 14 changed by habell (24)
estonian   - 1 fixed, 3 changed by t2t2 (4)
portuguese - 6 fixed, 4 changed by izhirahider (10)
2006-08-29 20:35:07 +00:00
KUDr
01048caeb0 (svn r6223) -Fix: RVs with empty order list were able to enter the depot or road stop from the back. I introduced this bug when I "improved" GetTileTrackStatus(). (thanks glx for the report and fix). 2006-08-29 19:46:31 +00:00
tron
dae76ce67e (svn r6222) Remove struct ColorList, because the names of its attributes are plain confusing
All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear
Also add the names of colour the gradients as enum
2006-08-29 19:26:13 +00:00
bjarni
7ea68d68a6 (svn r6220) -Fix: added missing space in a string for Catalan town names (Arnau) 2006-08-29 18:50:15 +00:00
bjarni
ecf8edf033 (svn r6215) -Codechange: [vehicle list windows] unified Player(vehicle)WndProc into PlayerVehWndProc
Those 4 unified functions were really much alike, so there was no reason to have so much dublicated code
2006-08-29 17:41:13 +00:00
bjarni
a9501bef85 (svn r6213) -Fix: Calatan town names was only prefix OR the rest of the string, never both (nars) 2006-08-29 14:45:39 +00:00
tron
bcb516aa19 (svn r6212) Remove dependency on window.h from station.h 2006-08-29 06:50:47 +00:00
tron
c969fc001e (svn r6211) Commit file forgotten in r6210 2006-08-29 06:43:22 +00:00
tron
5d1c1def4b (svn r6210) Remove FR_NOBORDER, because it is exclusivly used in conjunction with FR_TRANSPARENT 2006-08-29 06:39:00 +00:00
tron
c0bf201984 (svn r6209) Move DrawFrameRect() out of gfx.[ch], because it uses data (_color_list) which the renderer shouldn't have know about 2006-08-29 06:07:57 +00:00
tron
38d34d3def (svn r6208) Reduce the number of induction variables for clarity 2006-08-29 06:03:26 +00:00
belugas
1f660a8175 (svn r6205) -CodeChange : use a switch case instead of a cascade of if
-CodeChange : rename var Engine *e to Engine *eng, since we have WindowEvent *e in same fnct
-CodeChange : fix a broken tabulation on a switch case. SOme breathing spaces too
2006-08-29 00:17:47 +00:00