smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
glx
c1cf3934fa
(svn r15263) -Codechange: added Engine::GetCost() to remove some code duplication.
2009-01-25 00:57:03 +00:00
glx
e8b5f49861
(svn r15261) -Add: added Engine::GetRunningCost() to remove some code duplication. Also stops AIs decrementing vehicle counter of first company
2009-01-24 20:14:15 +00:00
peter1138
3d404c2927
(svn r15236) -Codechange: Rename realistic_acceleration patch option to train_acceleration_model, and change from boolean to value. Don't forget to update your settings.
2009-01-23 20:53:43 +00:00
rubidium
c8f3630e64
(svn r14953) -Fix (r14952): the "available aircraft" list caused a crash
2009-01-10 10:41:22 +00:00
rubidium
3d6c09b38d
(svn r14952) -Codechange: unify the "can vehicle go to station" tests
2009-01-10 09:51:14 +00:00
smatz
254e19da91
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
2009-01-03 16:06:58 +00:00
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
2008-12-28 14:37:19 +00:00
rubidium
c7c65cf5bc
(svn r14683) -Change: only say a engine/vehicle is refittable when it can be refitted to at least two cargo type or when it has subcargos.
...
NOTE: it is still possible that a vehicle is marked refittable when there is nothing to refit to, e.g. when only one subcargo is available but that cannot be determined without a vehicle chain.
2008-12-16 22:02:12 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
smatz
1266b1a73f
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15 19:02:50 +00:00
smatz
606f4defdc
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
2008-09-15 16:29:40 +00:00
frosch
e6688ab190
(svn r14239) -Fix [FS#2267]: The engine-purchase-list-sorter doubled running-cost and halfed capacity of double-headed engines.
2008-09-03 18:05:02 +00:00
peter1138
ff07598ce2
(svn r14157) -Codechange: Add and use string properties for rail types instead of relying on consecutive string IDs.
2008-08-24 21:31:24 +00:00
peter1138
9d0e1b635a
(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, indicating what it actually is.
2008-08-15 17:54:43 +00:00
rubidium
97c184f8f8
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
2008-08-13 06:05:01 +00:00
belugas
1737ce45e3
(svn r13887) -Codechange: Replace numbers with Colours enum on autoreplace, build_vehicle, cheat, depot and dock guis.
...
The fact that it goes alphabetically is pure coincidence.
2008-07-31 02:36:01 +00:00
peter1138
49769dffba
(svn r13784) -Codechange: Truncate vehicle names in purchase list to width of window.
2008-07-22 16:13:42 +00:00
peter1138
00e052ad39
(svn r13760) -Codechange: With multiple NewGRF engine sets, engine IDs may not be allocated in the order expected by GRF authors, so sort by 'list position' instead of engine ID for all vehicle types.
2008-07-20 21:21:51 +00:00
belugas
f666fd5a9b
(svn r13696) -Fix[GUI]: The Build button of the vehicle list is now hidden, instead of just disabled. It will be only visible when called from the Depot Building Window.
...
Less confusion, hopefully. Suggested by Eddi.
2008-07-13 02:43:46 +00:00
rubidium
e74743227b
(svn r13694) -Change: make it more explicit that you've opened the available train/ship/etc. list instead of the one where you can actually build vehicles by setting the appropriate title for the window.
2008-07-12 22:28:34 +00:00
rubidium
923e21129c
(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
f954a93ee0
(svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
2008-05-28 17:29:27 +00:00
peter1138
bb00206736
(svn r13306) -Fix (r8362): Pass engine list by pointer instead of making a copy of it.
2008-05-28 10:29:48 +00:00
peter1138
f7a9c4f522
(svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
2008-05-27 12:24:23 +00:00
rubidium
4625695653
(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
smatz
5cedf77a9a
(svn r13190) -Cleanup: remove unused variable
2008-05-19 16:44:50 +00:00
rubidium
27c38052b7
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
2008-05-19 09:48:47 +00:00
rubidium
87015f5b63
(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
8b54212900
(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
eb112946a7
(svn r13074) -Fix: For multiheaded engines, halve power and running cost when used instead of when loading, to allow callback values to work properly.
2008-05-13 20:39:57 +00:00
rubidium
dddfaaac7d
(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
rubidium
db69f81fe7
(svn r13068) -Codechange: make a class of the BuildVehicleWindow.
2008-05-13 14:28:27 +00:00
rubidium
f23026cce8
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
2008-05-10 08:58:52 +00:00
glx
0b37b81956
(svn r13019) -Fix [FS#1997]: silence some more MSVC x64 warnings (michi_cc)
2008-05-08 20:05:32 +00:00
rubidium
23fc96c3e8
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
smatz
3445b8054c
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
2008-05-07 18:31:29 +00:00
rubidium
9bf519f26b
(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
d03994098b
(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
peter1138
a00371c8db
(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-29 21:31:29 +00:00
bjarni
501b89b8de
(svn r12843) -Feature [FS#1945]: The autoreplace window is now resizable in both directions
...
The code to open this window is also unified for all vehicle types
2008-04-22 23:16:36 +00:00
rubidium
02cdf01507
(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
ef2be7d0fc
(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
2edd403656
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
peter1138
dda6cab17a
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
2008-02-21 19:09:10 +00:00
peter1138
79b6b9cb66
(svn r12205) -Codechange: rename RailVehicleInfo::running_cost_base to running_cost, inline with other vehicle types (It is the factor, not the base)
2008-02-20 20:56:54 +00:00
peter1138
7394b9d030
(svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in
2008-02-16 23:09:33 +00:00
peter1138
3371d02449
(svn r12137) -Fix [FS#1769]: Show cargo capacity for articulated vehicles correctly in the purchase list. Multiple cargo types can also now been shown.
2008-02-14 07:25:24 +00:00
peter1138
a528dc89c7
(svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types...
2008-02-04 11:28:12 +00:00