Patric Stout
a3cfd23cf9
Codechange: rename byte to uint8_t ( #12308 )
2024-03-16 23:59:32 +01:00
Tyler Trahan
32b0fb9f6e
Fix #12010 : Use economy timer for vehicle stats minimum age, not calendar ( #12142 )
2024-03-09 09:38:52 -05:00
Peter Nelson
df691eb31e
Codechange: Don't scan vehicle pool to find targeting disaster vehicle when deleting any vehicle. ( #12064 )
...
* Codechange: Don't scan vehicle pool to find targeting disaster vehicle when deleting any vehicle.
When deleting a vehicle, the vehicle pool is scanned to find a targetting disaster vehicle. With lots of vehicles this can take some time, especially when deleting multiple consecutive vehicles.
Disasters vehicles can actually only target road vehicles. Store the DisasterVehicle index in the road vehicle, so that no pool scan is necessary.
* Change: Small UFOs no longer target a vehicle which is already a target.
2024-02-11 23:04:29 +00:00
Tyler Trahan
735abfe111
Codechange: Split dates and timers into Economy and Calendar time ( #10700 )
2024-01-22 09:04:34 -05:00
Rubidium
3a676a5af0
Codechange: replace static inline with static for non-class functions
2024-01-06 13:37:33 +01:00
Tyler Trahan
701a61c9af
Codechange: Delete date_type.h
2023-09-10 08:40:25 -04:00
Tyler Trahan
77173a6a10
Codechange: Move date consts and functions to CalendarTime and TimerGameCalendar classes
2023-09-10 08:40:25 -04:00
Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
2023-07-19 19:30:14 +02:00
PeterN
2097719f26
Fix: Don't restore backed up vehicle name if it's no longer unique. ( #10979 )
2023-06-09 21:18:55 +00:00
Peter Nelson
4a5e413a6c
Cleanup: Remove unnecessary VehicleRandomBits()
...
Simple Random() assignment to byte does the same.
2023-05-04 21:42:28 +01:00
Tyler Trahan
930f0a16d8
Codechange: Define Date/Year/Month/Day within TimerGameCalendar class
2023-04-26 07:14:03 -04:00
Tyler Trahan
3719f60de0
Add: Use specific error message when vehicle cannot go to station/waypoint
2023-03-03 17:11:14 -05:00
Bernard Teo
8a78fa7121
Feature: Contextual actions for vehicles grouped by shared orders ( #8425 )
2022-11-26 18:03:21 +01:00
Michael Lutz
41fa16f325
Codechange: Don't use globals for return values from vehicle command procs.
2021-12-16 22:28:32 +01:00
Michael Lutz
a38bbefe1b
Codechange: Untangle command code, flags and error string for DoCommand*.
2021-12-16 22:28:32 +01:00
glx
b50d77b831
Fix #8064 : Incorrect display of refit capacity
2020-04-06 16:21:30 +01:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
peter1138
c02ef3e456
Feature: Add NotRoadTypes (NRT)
2019-05-01 21:36:27 +02:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Henry Wilson
c01a2e2a81
Codechange: Removed SmallVector completely
2019-03-26 20:15:57 +00:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
rubidium
6c2abf0930
(svn r26863) -Codechange: move a number of Vehicle* functions into the Vehicle class
2014-09-20 15:31:26 +00:00
rubidium
d2ba772f6a
(svn r26130) -Codechange: add some guards against using invalid image indices
2013-11-26 16:08:58 +00:00
rubidium
ef8d491d8f
(svn r24996) -Change: Apply default service interval changes to vehicles without custom interval (peter1138)
2013-02-14 17:08:56 +00:00
rubidium
369a6f9d1b
(svn r24995) -Codechange: Add flags to vehicle service interval for custom & ispercent (peter1138)
2013-02-14 17:06:49 +00:00
rubidium
e40eb8177a
(svn r23735) -Codechange: remove ~50 includes from headers that weren't needed
2012-01-03 20:26:05 +00:00
truebrain
0d929e877f
(svn r23713) -Codechange: split VehicleMove() into two functions, to minimalize the work done where possible
2012-01-02 13:44:30 +00:00
truebrain
19004a77f8
(svn r23712) -Codechange: rename the two vehicle hashes we have to names that make clear where they differ in
2012-01-02 12:07:50 +00:00
rubidium
8d125a60ce
(svn r23683) -Fix [FS#4912]-ish: when fitting another engine the cargo capacity of wagons could become lower, causing them to contain more than they should. This caused the cargo transfer from the replaced parts to put even more stuff in the already full wagon. Prevent this from happening by reducing the amount of cargo in the vehicle to the capacity when moving vehicles/wagons around, or when autoreplacing
2011-12-28 19:48:04 +00:00
frosch
2fe8e89a45
(svn r23487) -Change/Fix: Make autoreplace, autorenew, cloning and autorefit check all articulated parts of a vehicle to find a shared cargo subtype.
2011-12-10 21:09:21 +00:00
frosch
026317bb44
(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().
2011-11-09 16:38:50 +00:00
michi_cc
a3e6e113fe
(svn r23112) -Codechange: Check if vehicle chain lengths stays constant when auto-refitting.
2011-11-04 15:04:29 +00:00
michi_cc
ad2fdd8d6f
(svn r23111) -Fix: Keep subtype when automatically choosing the cargo for auto-refitting.
2011-11-04 15:04:24 +00:00
frosch
23a2f23eb3
(svn r22984) -Feature: Display profit icons for groups in the group GUI.
2011-10-03 17:25:44 +00:00
frosch
1a12008fcf
(svn r22982) -Cleanup: Remove CountCompanyVehicles() and use ALL_GROUP statistics instead.
2011-10-03 17:24:31 +00:00
michi_cc
08b7981f37
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
d89095b3ec
(svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z].
2011-01-18 21:58:22 +00:00
smatz
0ab078158e
(svn r21804) -Remove [FS#4409]: the 'stopall' console command, as its functionality was broken. Group start/stop commands can be used instead
2011-01-15 15:51:16 +00:00
smatz
2709454040
(svn r21802) -Cleanup (r2600): remove unused _vehicle_id_ctr_day
2011-01-15 14:20:34 +00:00
terkhen
a1ff6859c5
(svn r21561) -Change: Allow to specify the number of vehicles to refit in the refit vehicle command.
2010-12-21 13:52:10 +00:00
terkhen
c96cb9ce37
(svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers.
2010-11-16 20:56:04 +00:00
alberth
fa13971337
(svn r21088) -Doc: Additions/corrections of doxygen comments.
2010-11-05 16:34:22 +00:00
frosch
611e986226
(svn r20847) -Codechange: Split most of GetEngineLivery() into a separate GetEngineLiveryScheme() function.
2010-09-25 21:57:52 +00:00
rubidium
9badab6454
(svn r20768) -Codechange: unify send-to-depot commands
2010-09-08 18:55:58 +00:00
smatz
fd54943c7a
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
2010-09-06 14:14:09 +00:00
rubidium
9d1145e50c
(svn r20605) -Fix [FS#4063]: let NewGRFs var43 var (information about liveries) for vehicles not be influenced by the local setting determining whether to show liveries or not.
2010-08-23 22:28:35 +00:00
rubidium
8118cab6ba
(svn r20537) -Codechange: make RefitVehicle a static (local) function
2010-08-18 00:48:22 +00:00
alberth
e0e66b6ed0
(svn r20390) -Codechange: Move company vehicle counting to vehicle.cpp.
2010-08-06 19:56:14 +00:00
alberth
55f8d5d802
(svn r19369) -Codechange: EnsureNoTrainOnTrackBits() returns a CommandCost now.
2010-03-07 18:24:41 +00:00