Peter Nelson
|
bc2513975f
|
Codechange: Don't inherit EngineOverrideManager from std::vector.
Inheriting from std::vector means some operations are needlessly complex, and shouldn't really be done anyway.
|
2024-12-05 18:17:58 +00:00 |
|
Peter Nelson
|
a4b4095232
|
Codechange: Shuffle Engine members around to reduce size. (#13115)
Reduces overall size of Engine from 752 to 720 bytes.
|
2024-11-22 23:58:13 +00:00 |
|
Patric Stout
|
a3cfd23cf9
|
Codechange: rename byte to uint8_t (#12308)
|
2024-03-16 23:59:32 +01:00 |
|
Peter Nelson
|
952d111b94
|
Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO.
INVALID_CARGO is a CargoID and should be used for most purposes in game.
CT_INVALID is a CargoType used for defining default properties.
|
2024-01-09 18:56:05 +00:00 |
|
Rubidium
|
3a676a5af0
|
Codechange: replace static inline with static for non-class functions
|
2024-01-06 13:37:33 +01: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 |
|
Tyler Trahan
|
0fc21b5686
|
Fix: Engine age is in months, not days (#10773)
|
2023-05-06 11:54:38 -04:00 |
|
Tyler Trahan
|
930f0a16d8
|
Codechange: Define Date/Year/Month/Day within TimerGameCalendar class
|
2023-04-26 07:14:03 -04:00 |
|
PeterN
|
1697dff744
|
Change: Hide all variants from UI when (display) parent is hidden. (#10708)
|
2023-04-25 20:34:10 +01:00 |
|
peter1138
|
d7f561a400
|
Change: Add variant property to engines.
|
2022-12-25 16:41:58 +00:00 |
|
PeterN
|
3dbd6475fe
|
Codechange: Use C++ features for train wagon overrides. (#9141)
This removes the need for C-style array management and allows use of iterators to perform wagon override lookups.
|
2021-04-30 12:03:07 +01:00 |
|
TechGeekNZ
|
16e5f610f7
|
Cleanup: Correct typographic errors in code comments.
|
2020-05-28 08:26:41 +01:00 |
|
Michael Lutz
|
63ccb36ef3
|
Codechange: Use std::string for most of the user-settable custom names.
|
2020-05-21 20:02:34 +02:00 |
|
Jonathan G Rennison
|
150dfba95b
|
Codechange: Remove std::function from Pool iteration wrapper
Add a separate template wrapper for filtered iteration
|
2020-01-07 09:00:45 +00:00 |
|
glx
|
1f6b3a37f9
|
Codechange: Replace FOR_ALL_ENGINES with range-based for loops
|
2019-12-21 20:13:03 +01:00 |
|
S. D. Cloudt
|
13cc8a0cee
|
Cleanup: Removed SVN headers
|
2019-11-10 17:59:20 +00:00 |
|
Charles Pigott
|
5b34c8019f
|
Codechange: Remove Company/OwnerByte types
|
2019-04-29 17:40:22 +01:00 |
|
Charles Pigott
|
69a6c494bf
|
Codechange: Set VehicleType's base type to byte instead of using VehicleTypeByte
|
2019-04-29 17:40:22 +01: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 |
|
alberth
|
ad88588481
|
(svn r27797) -Add: Display aircraft type in its vehicle window (patch by Samu)
|
2017-03-18 20:43:43 +00:00 |
|
alberth
|
f72ad87540
|
(svn r26802) -Add: Command to set visibility of an engine for a company (based on patch by Juanjo).
|
2014-09-07 16:12:58 +00:00 |
|
planetmaker
|
c24374f99c
|
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
|
2013-01-08 22:46:42 +00:00 |
|
frosch
|
0e4b212c45
|
(svn r24810) -Fix: Make engine preview offers more robust wrt. changes in the company ranking.
|
2012-12-09 16:55:03 +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
|
1c9bec1999
|
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
|
2011-12-20 17:57:56 +00:00 |
|
michi_cc
|
def8e7215b
|
(svn r23504) -Feature: Aircraft range.
|
2011-12-13 00:43:35 +00:00 |
|
frosch
|
0fbad47371
|
(svn r23176) -Codechange: Deduplicate code between Engine::DetermineCapacity() and Engine::GetDisplayDefaultCapacity().
|
2011-11-09 16:41:36 +00:00 |
|
frosch
|
026317bb44
|
(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().
|
2011-11-09 16:38:50 +00:00 |
|
frosch
|
acc3c75951
|
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
|
2011-11-01 00:23:41 +00:00 |
|
alberth
|
bb4d832146
|
(svn r22239) -Doc: Further engine doxyment additions.
|
2011-03-13 16:43:00 +00:00 |
|
frosch
|
faa2a26ae1
|
(svn r21986) -Codechange: Add helper function to test whether an engine is still associated to a GRF.
|
2011-02-05 20:37:00 +00:00 |
|
frosch
|
915e339d0f
|
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
|
2011-02-05 16:07:23 +00:00 |
|
alberth
|
f65a9a5515
|
(svn r21593) -Codechange: endif comment correcttions.
|
2010-12-22 10:50:32 +00:00 |
|
terkhen
|
d6959dcc6b
|
(svn r21517) -Codechange: Add IsGroundVehicle function to the Engine class.
|
2010-12-14 21:27:30 +00:00 |
|
rubidium
|
29b489a055
|
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
|
2010-08-10 15:54:53 +00:00 |
|
rubidium
|
82fc28f77f
|
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
|
2010-01-15 16:41:15 +00:00 |
|
frosch
|
67cae40ec1
|
(svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail consistent. Now always the cargo class decides.
|
2009-10-31 17:48:09 +00:00 |
|
rubidium
|
7fbc33dae1
|
(svn r17248) -Fix: add GPL license notice where appropriate
|
2009-08-21 20:21:05 +00:00 |
|
frosch
|
8bd029015e
|
(svn r17209) -Codechange: Move cargo_type from (Rail|Road|Ship)VehicleInfo to EngineInfo.
|
2009-08-17 18:33:48 +00:00 |
|
rubidium
|
35aabc1d4c
|
(svn r16586) -Codechange: don't store lifelength in the savegame; it can easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect.
|
2009-06-17 17:13:30 +00:00 |
|
rubidium
|
512b021e26
|
(svn r16581) -Codechange: unify the access to Engine::lifelength.
|
2009-06-16 13:52:18 +00:00 |
|
rubidium
|
4b05617c42
|
(svn r16580) -Codechange: rename Engine::image_index to original_image_index to not confuse it with image_index from *VehInfo.
|
2009-06-16 13:31:06 +00:00 |
|
smatz
|
56a7b70591
|
(svn r16380) -Codechange: rename pool.hpp to pool_type.hpp
|
2009-05-22 15:39:22 +00:00 |
|
smatz
|
62a7948af0
|
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
|
2009-05-22 15:13:50 +00:00 |
|
smatz
|
04723b240e
|
(svn r16377) -Codechange: unify FOR_ALL_* macros, use separate index variable instead of var->index
|
2009-05-22 14:23:36 +00:00 |
|
smatz
|
70aab8bf04
|
(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too
|
2009-05-18 19:32:16 +00:00 |
|
smatz
|
ed1e54bd84
|
(svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize()
|
2009-05-16 23:44:36 +00:00 |
|
smatz
|
6221d74644
|
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
|
2009-05-16 23:34:14 +00:00 |
|
frosch
|
6dd04a9a78
|
(svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and use it everywhere, so CB 36 is also used everywhere.
|
2009-03-18 19:32:13 +00:00 |
|