Darkvater
68138d6a31
(svn r2162) - Fix: Tooltips of horizontal scrollbars were wrong; they now say left/right instead of up/down
2005-04-07 01:02:15 +00:00
tron
eab8b9a116
(svn r1989) -Feature: Resizable vehicle view windows; this is based on a patch by tmesisbob
2005-03-11 13:17:39 +00:00
Darkvater
0ddbc1304b
(svn r1906) - Fix: [ 1117327 ] Assertion error on kick. When a company is cleaned all its windows need to be closed. For global vehicle lists, the no-staiton index of -1 was not taken into account
2005-02-22 20:32:26 +00:00
celestar
d06f52a7f0
(svn r1891) -Fix: [ 1143587 ] carriages of newgrfs can be refitted again
2005-02-20 07:47:42 +00:00
matthijs
c5c5c9b17c
(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.
2005-02-06 22:36:08 +00:00
tron
2fb453a4a5
(svn r1827) Next iteration of the byte -> char transition: some string drawing functions and buffers
2005-02-06 18:30:45 +00:00
truelight
e9c93f9c0c
(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)
2005-02-06 10:18:47 +00:00
tron
f0f85a7ef3
(svn r1803) Move debugging stuff into files of it's own
2005-02-05 15:58:59 +00:00
tron
4b71f9126e
(svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter
2005-02-04 20:40:04 +00:00
darkvater
b64c375f2f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
2005-01-31 11:03:23 +00:00
celestar
efcd72a2ef
(svn r1681) -Feature: New realistic acceleration.
...
This will make things more difficult as narrow curves
and depots impose rather strict speed limits. Feedback welcome
For those who don't like low-speed curves: Switch it off
2005-01-26 12:51:04 +00:00
bjarni
e006f89aa3
(svn r1652) Fix: train and road vehicle lists are now redrawn when vehicles enters/leaves a depot (Hackykid)
...
fix: the ship status bar was not updated properly after a breakdown if show_speed was off (Hackykid)
2005-01-24 22:24:47 +00:00
bjarni
2fd3553d78
(svn r1568) made an enum of train subtypes to make the code more readable
2005-01-19 19:15:03 +00:00
tron
3279a7c9a2
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
2005-01-15 08:58:31 +00:00
darkvater
f9b5f704b1
(svn r1518) -Fix: server issue where some company names were wrong
...
-Fix: Highscore troubles; accessing members of deleted window
2005-01-15 01:52:23 +00:00
celestar
314a4245a9
(svn r1505) -Fix: Refit engine button is now disabled when cargo capacity equals zero
2005-01-14 09:36:29 +00:00
celestar
7dddb6cf7a
(svn r1500) -Feature: Train window shows now the number of vehicles per row (mpetrov)
2005-01-13 17:23:24 +00:00
darkvater
085563653f
(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.
2005-01-11 00:24:27 +00:00
darkvater
1261a44cec
(svn r1463) -Fix: [1099451] Game crashes after the click on Rename (see also Bug 10992). There was no check for non-selected engine
2005-01-10 14:24:40 +00:00
truelight
63e97754fb
(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 *.
2005-01-06 22:31:58 +00:00
truelight
2c9cd8f68c
(svn r1401) -Fix: glitches in train-depot GUI (tnx to Hackykid)
...
-Fix: glitch in Company Overview GUI (Hackykid)
2005-01-06 17:40:57 +00:00
darkvater
c4b682f996
(svn r1380) -Fix: missed widget fixes; thanks Jango and TestMan57
2005-01-04 21:45:38 +00:00
darkvater
4c5f6fe360
(svn r1379) -Fix: various GUI glitches. Added default sizes to various widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
2005-01-04 21:28:09 +00:00
truelight
27df6c86fc
(svn r1372) -Fix: fixed some GUI glitches introduced with resize-buttons
2005-01-04 15:49:30 +00:00
tron
39bb863024
(svn r1359) Fix typos in last commit
2005-01-03 22:12:36 +00:00
tron
2f2688b829
(svn r1358) Assert bounds of depot list when searching for a depot
2005-01-03 22:07:40 +00:00
truelight
a94fe04a9a
(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
2005-01-03 19:45:18 +00:00
bjarni
29d8c5bb50
(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()
2005-01-02 17:23:04 +00:00
tron
51cbbd0438
(svn r1232) Plug memory leak
2004-12-22 19:16:56 +00:00
darkvater
f55303b0a8
(svn r1213) -Feature: Stickified vehicle lists
2004-12-22 00:45:05 +00:00
darkvater
160a0a5ee1
(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized
2004-12-21 23:27:58 +00:00
dominik
110b410af4
(svn r1179) Fix: Tooltips for vehicle list sorting
...
This has gotta be the greatest kick for Moriarty!
2004-12-19 22:23:32 +00:00
tron
765ecfed84
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
2004-12-15 22:18:54 +00:00
truelight
5221f35182
(svn r1025) -Fix: [Network] [ 1083687 ] Sending to depot caused desync because the
...
new pathfinder uses a random, and the goto_depot uses the new pathfinder
(if enabled)
2004-12-12 15:43:55 +00:00
tron
5b0915e677
(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.
2004-12-10 18:16:08 +00:00
truelight
22951f5523
(svn r984) -Fix: deleted a debug level 0 line that was introduced in revision 978
2004-12-08 18:18:20 +00:00
Celestar
6fd3fc10e3
(svn r978) Fixed an endianess issue with the new Order system. Thanks to Bjarni, Oskar and Tron
2004-12-08 15:26:57 +00:00
tron
7c2448ecea
(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.
2004-12-05 12:43:04 +00:00
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00
tron
d036559e0e
(svn r924) Use RailVehInfo() instead of &_rail_vehicle_info[]
2004-12-04 07:41:37 +00:00
tron
aa183e35d8
(svn r923) Forgot s/rail_vehinfo/RailVehInfo/
2004-12-04 00:34:20 +00:00
tron
56dd31f33b
(svn r920) Replace vehicle info macros with inline functions and add asserts to check limits
2004-12-03 21:57:05 +00:00
tron
fdb447ac55
(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
2004-12-02 22:53:07 +00:00
darkvater
ccd731a2ce
(svn r854) -Fix [1070274] Invisible trains. Weird macros and MSVC optimizing don't always mix. (Tron)
2004-11-29 19:26:24 +00:00
tron
12d6d679b0
(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
2004-11-27 19:53:53 +00:00
tron
acbd1801c7
(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.
2004-11-25 10:47:30 +00:00
darkvater
249438be88
(svn r677) -newgrf: Fix some custom electric trains appearing in maglev depots (pasky).
2004-11-19 19:13:32 +00:00
darkvater
4852474343
(svn r617) -newgrf: Support for parameter 0x8E (train Y-pitch in info windows) both setting and testing. This should fix displaced wagons in DBSetXL as reported by DarkVater. (pasky)
2004-11-14 23:36:19 +00:00
darkvater
397cc50f61
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
2004-11-14 13:07:07 +00:00
darkvater
1f12dee3a0
(svn r572) -newgrf: Support for custom (newGRF-yielded) refit masks for trains and aircrafts (pasky).
2004-11-13 21:42:35 +00:00
tron
0a422b06a5
(svn r514) -Fix: [1053397] Refit Train Window Stays Open
2004-11-06 09:24:28 +00:00
darkvater
c79e8ad626
(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.
2004-09-14 14:19:53 +00:00
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
2004-09-10 19:02:27 +00:00
darkvater
56435c8775
(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
2004-09-07 21:48:09 +00:00
darkvater
bf9c8068be
(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.
2004-09-07 19:01:06 +00:00
darkvater
78b64ed192
(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)
2004-09-06 21:20:01 +00:00
darkvater
bf0652d3fc
(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.
2004-09-06 18:15:13 +00:00
darkvater
85628544ee
(svn r157) -Feature: [1009708] Percent-based service intervals. Send a vehicle to depot after it has lost X% of its reliability (mivlad)
2004-09-04 13:06:09 +00:00
darkvater
f422014960
(svn r23) -Some omments on the code (blathijs)
2004-08-11 22:07:08 +00:00
dominik
ee4511a836
(svn r11) Feature: Copy/share orders now works from ship depot window for ships and hangar window for aircraft
2004-08-10 16:54:34 +00:00
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
2004-08-09 17:04:08 +00:00