belugas
d096431936
(svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
...
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
2008-08-20 01:29:05 +00:00
rubidium
141001d031
(svn r14097) -Fix [FS#2085]: one couldn't get a list of vehicles sharing an order when the number of orders was 0; you could see that the vehicles had a shared order though.
2008-08-17 21:07:09 +00:00
frosch
c8e699cc35
(svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE.
2008-08-15 13:57:43 +00:00
rubidium
c816cc37fd
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
2008-08-13 06:05:01 +00:00
rubidium
7f5ef3da45
(svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime)
2008-08-12 22:14:57 +00:00
frosch
3064767d69
(svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside.
2008-08-06 19:00:31 +00:00
frosch
84cbf2c755
(svn r14006) -Codechange: Deduplicate some code.
2008-08-06 18:57:37 +00:00
rubidium
a31e86c778
(svn r13950) -Add [YAPP]: Trains can now also be in a 'stuck' state when waiting on a path reservation. (michi_cc)
2008-08-02 22:53:21 +00:00
belugas
7ef5369306
(svn r13919) -Codechange: Replace numbers with Colours enum on osk(forgot 2 assignations), statusbar, subsidy, terraform, timetable, toolbar, town, tree and vehicle guis.
2008-08-02 02:28:17 +00:00
rubidium
c1594e45c5
(svn r13720) -Fix (r13715): string wasn't correctly passed to draw function.
2008-07-17 21:15:57 +00:00
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
2008-07-17 20:13:01 +00:00
rubidium
5a94972c2d
(svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
...
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
2008-07-17 13:47:04 +00:00
rubidium
6002e3d643
(svn r13623) -Codechange: only show the 'load' of articulated RV parts that have a capacity instead of showing 'empty' parts when a vehicle is completely full.
2008-06-24 13:49:13 +00:00
rubidium
c81e4e3d7e
(svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos.
2008-06-24 13:47:15 +00:00
smatz
3d56c07440
(svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken
2008-06-20 20:40:47 +00:00
skidd13
ec261a6456
(svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
...
-Cleanup: some small things referring the change
2008-06-19 19:58:30 +00:00
skidd13
d85c5f020b
(svn r13534) -Codechange: Replace the main part of VehiclesListBase sorting with GUIList function calls
2008-06-16 17:09:52 +00:00
skidd13
5e956bf57f
(svn r13524) -Codechange: use the typesafe QSort for vehicle sortings
...
-Prepare: vehicles sorting for convsersion to GUIList
2008-06-15 22:10:22 +00:00
rubidium
e7a501100a
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-29 15:13:28 +00:00
peter1138
f731b31eda
(svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h
2008-05-28 11:56:21 +00:00
peter1138
44dd8955d1
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
2008-05-27 15:30:51 +00:00
peter1138
0434e83e91
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
2008-05-26 18:25:27 +00:00
peter1138
781b90ac91
(svn r13266) -Codechange: Use SmallVector in GUIList
2008-05-26 16:23:23 +00:00
rubidium
dc77647ea4
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
peter1138
6d65ce0c8b
(svn r13248) -Codechange: Use VehicleList for depot GUI.
2008-05-25 17:22:49 +00:00
peter1138
cfc45e97ab
(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
...
of windows causing 'two stage' opening effect.
2008-05-23 23:02:13 +00:00
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
2008-05-19 09:48:47 +00:00
rubidium
df6446c07c
(svn r13183) -Codechange: make a window class of the VehicleViewWindow.
2008-05-19 09:39:05 +00:00
rubidium
3ee2556585
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
2008-05-18 16:51:44 +00:00
rubidium
ad6e52080c
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
2008-05-17 13:01:30 +00:00
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
2008-05-17 12:48:06 +00:00
peter1138
e03193f9d7
(svn r13128) -Codechange: Make a class of the refit window
2008-05-16 23:23:38 +00:00
rubidium
a7c7067c4f
(svn r13120) -Codechange: make a class of the VehicleDetailsWindow.
2008-05-16 17:33:09 +00:00
rubidium
a7db265bb6
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
2008-05-13 14:43:33 +00:00
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
2008-05-11 15:08:44 +00:00
rubidium
ee3c14b344
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
2008-05-11 15:00:11 +00:00
rubidium
89a60ce249
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
2008-05-11 14:23:45 +00:00
rubidium
0f7d925121
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
2008-05-09 09:29:27 +00:00
rubidium
11d36d5e46
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
2008-05-08 14:14:16 +00:00
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
c27f3cfa62
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
9db77e3808
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
2008-05-06 22:08:18 +00:00
rubidium
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
bjarni
d6c971fd9b
(svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID
2008-04-27 18:05:48 +00:00
rubidium
51c7ba39a4
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
2008-04-19 13:17:19 +00:00
rubidium
99733b2b3e
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
2008-04-19 13:07:37 +00:00
rubidium
8857f5057f
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
2008-04-18 10:58:11 +00:00
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
rubidium
6d063c3ad6
(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
2008-04-17 19:10:30 +00:00
rubidium
22353393cd
(svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading.
2008-04-13 16:48:28 +00:00
rubidium
cf250390c5
(svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness.
2008-04-07 19:18:56 +00:00
rubidium
53d101cc99
(svn r12593) -Codechange: hide Order's flags in most of the code.
2008-04-06 15:09:45 +00:00
rubidium
935b562074
(svn r12588) -Codechange: do not access the destination of an order directly.
2008-04-06 07:48:51 +00:00
rubidium
3b0e3d8d30
(svn r12584) -Codechange: do not access the order type directly.
2008-04-05 23:36:54 +00:00
rubidium
df1d9bd880
(svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-03-31 00:17:39 +00:00
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
rubidium
b84b16cfcd
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
2008-03-30 23:24:18 +00:00
rubidium
492d132831
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
2008-03-28 16:36:32 +00:00
rubidium
105b95e94c
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
2008-03-27 14:34:29 +00:00
smatz
d28cc5be80
(svn r12324) -Fix (r6789): vehicles could be sorted in a wrong order when a vehicle name changed - cached name was not invalidated
2008-03-02 00:25:54 +00:00
smatz
4a395562f2
(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
2008-03-01 23:53:58 +00:00
glx
6f55c7e0e8
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
2008-02-25 23:12:55 +00:00
smatz
9bdb194b2a
(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
...
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-20 17:06:58 +00:00
smatz
fe48d0be21
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
...
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-02-13 19:24:40 +00:00
peter1138
833a00def9
(svn r12133) -Fix: Vehicle sorting by max speed did not work properly for trains. Instead of trying to work it out again, just use the cached values...
2008-02-13 18:11:19 +00:00
maedhros
f95fb570ad
(svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs.
2008-01-27 17:32:12 +00:00
smatz
dfb91c26ec
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
...
-Fix: refit button widget was not correctly updated
2008-01-18 13:02:47 +00:00
peter1138
04da1e1d45
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
2008-01-18 10:36:55 +00:00
peter1138
1182a940cf
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
2008-01-17 21:57:20 +00:00
frosch
3ae0c5316c
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
2008-01-17 17:35:59 +00:00
rubidium
736640fd87
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
2008-01-15 18:44:22 +00:00
peter1138
1fa2285327
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
2008-01-14 16:10:58 +00:00
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
2008-01-13 14:37:30 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
peter1138
0f7392bd61
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
...
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
2008-01-12 19:58:06 +00:00
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
2008-01-09 09:45:45 +00:00
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
2008-01-07 14:23:25 +00:00
rubidium
71d4004a85
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
2008-01-07 14:02:26 +00:00
rubidium
e2f7ec1d3e
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
2008-01-07 09:19:53 +00:00
peter1138
890296c125
(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
2008-01-01 22:34:00 +00:00
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
2007-12-27 13:35:39 +00:00
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
c201bc35f0
(svn r11672) -Codechange: refactor some stuff out of gui.h.
2007-12-21 07:38:36 +00:00
rubidium
2cf7d5b2cb
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
2007-12-19 20:45:46 +00:00
rubidium
8bfbfd0031
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
2007-12-19 19:44:29 +00:00
smatz
189771541e
(svn r11601) -Codechange: more strict break conditions for _userstring, assert when it overflows anyway (eg. code change without proper check change)
2007-12-08 18:50:39 +00:00
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
2007-12-02 14:29:48 +00:00
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
truelight
42180a8f4e
(svn r11396) -Fix: GCC 3.3 doesn't like 'static bool inline', should of course be 'static inline bool' (SmatZ)
2007-11-09 11:22:17 +00:00
truelight
f1df43ec21
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
2007-11-04 22:47:34 +00:00
belugas
e2c0f1faf7
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
...
Patch heavily based on BiBB's work (FS#1383)
2007-11-04 00:08:57 +00:00
bjarni
5c3b19ec89
(svn r11348) -Fix (r11049): [OSX] killed a warning (don't ask why only OSX showed this one)
2007-10-26 21:32:24 +00:00
belugas
202b4de279
(svn r11304) -Feature: Control-Clicking the Center Main View button on the vehicle window allows the main viewport to follow the chosen vehicle.(stevenh)
2007-10-20 00:09:39 +00:00
rubidium
a28b307c95
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
2007-09-26 17:33:32 +00:00
glx
ccf13f3ccc
(svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of type 'bool' in operation
2007-09-11 17:42:46 +00:00
rubidium
1f1ce4ac5b
(svn r11067) -Codechange: also make it possible to use the advanced vehicle list for other players. Patch by SmatZ.
2007-09-09 10:34:32 +00:00
rubidium
305bdb70fd
(svn r11060) -Codechange: replace some magic numbers with the right enumified constants.
2007-09-08 10:10:31 +00:00
rubidium
07c67183bd
(svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
2007-09-05 23:26:45 +00:00
rubidium
6f76bc2449
(svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas.
2007-09-01 08:31:36 +00:00
rubidium
235ad4ab6b
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-30 13:03:56 +00:00
rubidium
c2dcccae16
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
2007-08-29 21:49:08 +00:00
rubidium
a6a9968d16
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
2007-08-29 20:50:58 +00:00
rubidium
13ab17bca8
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
2007-07-27 12:49:04 +00:00
peter1138
b60434eb0d
(svn r10337) -Fix [FS#880]: Autoreplace is only valid for the standard vehicle list, not station or shared order lists.
2007-06-26 08:11:11 +00:00
peter1138
8ee9e8bf1e
(svn r10323) -Codechange: reference company name, number and player (president) name
...
by index
2007-06-25 13:30:38 +00:00
peter1138
3878c55f34
(svn r10314) -Codechange: Refer to vehicle names by index
2007-06-24 22:42:11 +00:00
rubidium
d0fa4eb9de
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
...
-Fix: some displays of money were wrong.
2007-06-21 17:25:17 +00:00
rubidium
1b27095c83
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
2007-06-21 14:54:51 +00:00
rubidium
0d8e82b7d7
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
2007-06-21 14:32:27 +00:00
rubidium
773a7c9cb6
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
2007-06-18 19:53:50 +00:00
rubidium
82e79b847e
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
2007-06-18 16:42:40 +00:00
rubidium
3ccc83e640
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
2007-06-18 10:48:15 +00:00
rubidium
8f0f090c51
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
2007-05-19 09:40:18 +00:00
rubidium
c8d05162c2
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
2007-05-18 17:31:41 +00:00
rubidium
08be68e0b4
(svn r9841) -Codechange: add a little more type strictness to the vehicle types.
2007-05-15 11:28:22 +00:00
rubidium
2ce514284c
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
2007-04-18 22:41:53 +00:00
rubidium
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
belugas
0eaa72e324
(svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections...
2007-04-18 00:41:09 +00:00
belugas
45b0c8042f
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
2007-04-04 04:08:47 +00:00
peter1138
93fe91cc8c
(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.
2007-03-21 13:19:01 +00:00
rubidium
36cea84b11
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
2007-03-08 16:27:54 +00:00
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
peter1138
6b7a4ba448
(svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo mapping is now dealt with only in NewGRF code, on load where possible.
2007-02-24 23:36:40 +00:00
peter1138
2306a02f75
(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions.
2007-02-22 22:09:51 +00:00
peter1138
3d581f4f89
(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels.
2007-02-20 22:09:21 +00:00
bjarni
d6cb254b96
(svn r8786) -Cleanup: replaced a switch-case to get the right refit command for a certain vehicle type. We have a function to do that
2007-02-17 17:12:19 +00:00
bjarni
d40886903d
(svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
...
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
Surprisingly this can be done without changing the savegame format
2007-02-07 19:10:19 +00:00
celestar
4d0d6864ee
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
2007-02-01 16:48:38 +00:00
rubidium
2a9851a3ad
(svn r8511) -Codechange: make WindowClass an enumerated value.
2007-02-01 15:49:12 +00:00
Darkvater
19b81c4faa
(svn r8421) -Codechange (r8420): rename STR_AVAILABLE_VEHICLES to STR_AVAILABLE_ROAD_VEHICLES for clarificaton (Tron)
2007-01-26 19:30:11 +00:00
Darkvater
15edd465ac
(svn r8420) -Codechange (r7418): Rename the 'New <vehtype>' button of the global vehicle lists to 'Available <vehtype>' as it is a view-only list, not one from which you can purchase (rolling) stock.
2007-01-26 19:24:02 +00:00
bjarni
10d6f066e4
(svn r8371) -Codechange: [autoreplace GUI] moved the autoreplace GUI to a file of it's own
...
Note: it's the same as r8363, only this time the svn history of autoreplace should be preserved
2007-01-23 13:26:12 +00:00
bjarni
751409fe83
(svn r8370) -Revert (r8363): the autoreplace GUI move cleared the file history
2007-01-23 13:10:43 +00:00
bjarni
a7edefb8d7
(svn r8363) -Codechange: [autoreplace GUI] moved the autoreplace GUI to a file of it's own
2007-01-23 00:04:17 +00:00
bjarni
89bf1d627b
(svn r8349) -Codechange: replaced CMD_REFIT_VEH() and similar defines with real static inline functions
2007-01-22 16:16:52 +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
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
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
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
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
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
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
KUDr
28e969924b
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00