|
Darkvater
|
r2113:600d6ea0d897
|
19 years ago
|
|
(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. Instead of giving center + width you give the coordinates of the bounding box (left, right) it has to fit in (ludde) - CodeChange: changed (back) maximum pixel length of truncated strings to a signed integer.
|
|
Darkvater
|
r2103:d4b2ab6a0279
|
19 years ago
|
|
(svn r2613) - Truncate savegames, and vehicle-texts in their window. - Hardcoded width 5 for saves-path...oops :O
|
|
ludde
|
r2084:845406eb98cd
|
19 years ago
|
|
(svn r2594) Fix: [strgen] Misc updates to the string system. - Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used) - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P} - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING} - Updated the swedish/english translation with P strings.
|
|
tron
|
r1986:40fe0be5bb1e
|
19 years ago
|
|
|
|
tron
|
r1977:1f8b99c96041
|
19 years ago
|
|
|
|
celestar
|
r1962:cc4c06e3f6b5
|
19 years ago
|
|
|
|
hackykid
|
r1938:bf28411019cf
|
19 years ago
|
|
|
|
tron
|
r1926:ff7c3132a421
|
19 years ago
|
|
|
|
hackykid
|
r1907:da80804490bd
|
19 years ago
|
|
(svn r2413) - Codechange: Rewrite the displaying of purchase details a bit, make it easyer to add lines later. - Add: In the purchase details for trains display "(refittable)" after the capacity if the vehicle is refittable.
|
|
hackykid
|
r1906:eba0f6945e49
|
19 years ago
|
|
|
|
tron
|
r1901:e806afa50723
|
19 years ago
|
|
|
|
Darkvater
|
r1891:c5c5466afa35
|
19 years ago
|
|
|
|
tron
|
r1820:335b057adac7
|
19 years ago
|
|
|
|
Darkvater
|
r1802:acc0f0bda113
|
19 years ago
|
|
|
|
Darkvater
|
r1790:aafbb2ff1ae7
|
19 years ago
|
|
|
|
matthijs
|
r1751:242d46045f3b
|
19 years ago
|
|
(svn r2255) - Fix: [ 9680363 ] [NPF] Broken buoy handling for ships Buoys will now try to get within 3 tiles of a buoy instead of a the actual buoy tile. This gets ships to got past buoys in a realistic (IMO) way instead of barging right through them. - Fix: [NPF] Trains get curves penalties sometimes even when the track is straight. - Add: [NPF] Ships get a penalty for going over buoys now, so they will try to go around. - Add: [NPF] Ships get a penalty for curves too, yay for straight lines. - Add: TrackdirToTrack(), TrackToTrackdir(), IsDiagonalTrack() and IsDiagonalTrackdir() helper functions. - Add: IsBuoy() and IsBuoyTile() helper functions. - Codechange: Rearranged part of the control flow of ShipController(), removing a goto.
|
|
tron
|
r1485:a9e66a254466
|
20 years ago
|
|
|
|
matthijs
|
r1330:62eaa061ec97
|
20 years ago
|
|
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO - Add: asserts to find the v->u.rail.track == 0 problem. - Add: IsValidDepot(), IsValidTown(), IsValidSign(), IsValidVehicle(), IsValidStation() - Add: GetTileOwner(), IsTileOwner() - Codechange: Replaced IsShipDepotTile(), IsTrainDepotTile(), IsRoadDepotTile() by IsTileDepotType(). - Codechange: typedeffed the MAP_OWNERS as Owner. Should be used as variable type. - Codechange: Replaced a few uint by TileIndex.
|
|
tron
|
r1323:29249e0649f7
|
20 years ago
|
|
|
|
truelight
|
r1313:da473558c9d7
|
20 years ago
|
|
(svn r1817) -Codechange: Moved depot-functions to depot.c -Codechange: Added wrappers around depot-access (GetDepot no exists) -Codechange: Made depot-functions a bit more logic (no longer GetDepotByTile crashes your game when you request it on a non-depot tile) -Add: made depots dynamic (yes, 64k depots are possible now)
|
|
tron
|
r1299:07d5483b3f76
|
20 years ago
|
|
|
|
tron
|
r1294:8792ed412267
|
20 years ago
|
|
|
|
darkvater
|
r1246:1fc4189e63a6
|
20 years ago
|
|
|
|
truelight
|
r1108:5ffe440bcfdc
|
20 years ago
|
|
|
|
Celestar
|
r1055:d8dd84883c6f
|
20 years ago
|
|
|
|
truelight
|
r1024:c7c4672d839e
|
20 years ago
|
|
(svn r1525) -Codechange: rewrote the _order_array, now it can be made dynamic. -Codechange: renamed all 'schedule' stuff to 'order(list)' -Codechange: moved all order-stuff to order_cmd.c / order.h -Codechange: vehicles that share orders are now linked to eachother with next_shared/prev_shared in Vehicle
Developers: please use AssignOrder to assign data to an order. If not, you _WILL_ make the save-routine to assert!
|
|
darkvater
|
r982:ae84d4003591
|
20 years ago
|
|
(svn r1478) -Fix: [1099195] mouse-wheel in train replace window. Scrollbar1 and Scrollbar2 now work independently. You can only scroll on list and scrollbar itself; scrollbar must be next widget of the list. -Fix: updated the few gui's that didn't have the scrollbar right after the listbox.
|
|
darkvater
|
r971:5f848a37c5ea
|
20 years ago
|
|
|
|
darkvater
|
r969:c6590ca560f5
|
20 years ago
|
|
|
|
darkvater
|
r968:cc00c557f4bf
|
20 years ago
|
|
|
|
truelight
|
r919:57ef81f1ba8e
|
20 years ago
|
|
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;))
Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
|
|
darkvater
|
r893:1d703a581761
|
20 years ago
|
|
|
|
truelight
|
r886:20dc750321ef
|
20 years ago
|
|
|
|
tron
|
r878:cc41d8c1c509
|
20 years ago
|
|
|
|
tron
|
r877:ba708319ec99
|
20 years ago
|
|
|
|
truelight
|
r867:c270355a1b34
|
20 years ago
|
|
(svn r1348) -Feature: resizable windows. Read the comment in window.h to find out how the system works. All useful windows are already made resizable. Enjoy :) -Fix: fixed some GUI-glitches and flaws along the way
|
|
bjarni
|
r842:96908cec3367
|
20 years ago
|
|
(svn r1323) Adding autoreplace feature This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the vehicle overview windows Note: autorenew is now autoreplace, but to the same engine type Nice new features, that was added to make this possible - windows can now have two independant vertical scrollbars - CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with estimated costs even if shift is pressed - fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
|
|
tron
|
r767:6078c5b2d80f
|
20 years ago
|
|
|
|
darkvater
|
r757:d408dd9b02c7
|
20 years ago
|
|
|
|
darkvater
|
r755:02ea8c27f87d
|
20 years ago
|
|
|
|
dominik
|
r727:c7ca8337a0b0
|
20 years ago
|
|
(svn r1179) Fix: Tooltips for vehicle list sorting This has gotta be the greatest kick for Moriarty!
|
|
tron
|
r679:3a7b08cc8504
|
20 years ago
|
|
|
|
tron
|
r588:c0748f0d2104
|
20 years ago
|
|
(svn r1009) -Feature: per-station vehicle lists This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule. As side effect this gets rid of some global variables.
|
|
tron
|
r555:cefc6ad212ed
|
20 years ago
|
|
(svn r955) Replace uint16 for orders with struct Order This adds no functionality, but is a stepping stone for future improvement (like 16bit order indices) and is easier to read. This changes preserves binary compatibility wrt savegames.
|
|
truelight
|
r543:efdb197f91ad
|
20 years ago
|
|
|
|
tron
|
r538:c4b9f109ad6c
|
20 years ago
|
|
|
|
tron
|
r534:46e9db8de483
|
20 years ago
|
|
(svn r901) Small step in the process to clean up the DPARAM mess: - reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
|
|
tron
|
r507:b1b0a0a3c313
|
20 years ago
|
|
(svn r815) Include strings.h only in the files which need it. This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
|
|
darkvater
|
r243:ca7c3d233c70
|
20 years ago
|
|
(svn r244) -Fix: Stations were not sorted for non-player-0 players -Fix: Correctly resorting vehicle list of player when the list of another player is open.
|
|
truelight
|
r193:6aa65dc5a4b4
|
20 years ago
|
|
|
|
darkvater
|
r176:7d9100f64c27
|
20 years ago
|
|
(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron) -Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
|
|
darkvater
|
r174:cd15d16e1367
|
20 years ago
|
|
(svn r175) -Fix: [1023771] inconsistent/missing stations in station list. Forgot to change owner-sort after changing function. -Codechange: some more asserts to vehicle-sorts to quickly find any possible problems.
|
|
darkvater
|
r168:a71deedc43fb
|
20 years ago
|
|
(svn r169) -Fix: move around sort-widgets a bit so it looks more natural -Fix: savegames are sorted with newest date first by default -Codechange: refine sorter functions -Fix: fixed linux warnings (tokai)
|
|
darkvater
|
r164:32c72e637930
|
20 years ago
|
|
(svn r165) -Feature: Option to sort vehicles in vehicle-list window by different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
|
|
darkvater
|
r156:dd00481b3251
|
20 years ago
|
|
|
|
dominik
|
r10:6cb1c9bf87be
|
20 years ago
|
|
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|