frosch
5be8f73204
(svn r22980) -Add: GroupStatistics for DEFAULT_GROUP.
2011-10-03 17:22:56 +00:00
frosch
fafa06e821
(svn r22979) -Codechange: Add GroupStatistics::CountEngine().
2011-10-03 17:22:09 +00:00
frosch
68f969282e
(svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle().
2011-10-03 17:21:41 +00:00
frosch
b78a459613
(svn r22977) -Codechange: Rename SetCachedEngineCounts() to GroupStatistics::UpdateAfterLoad().
2011-10-03 17:20:56 +00:00
frosch
b6766c2ed5
(svn r22976) -Codechange: Split group statistics into separate struct.
2011-10-03 17:20:26 +00:00
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
2011-02-19 23:05:47 +00:00
rubidium
7efd7e19ed
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
2011-01-18 22:31:06 +00:00
rubidium
768da4b48f
(svn r21411) -Codechange: limit group name by amount of characters, not bytes
2010-12-05 22:24:34 +00:00
rubidium
f5128695c5
(svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers
2010-09-08 21:37:13 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
646fbb628a
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
2010-08-19 20:42:00 +00:00
rubidium
38ca44594f
(svn r20539) -Codechange: make order backups more self-contained.
2010-08-18 15:15:59 +00:00
frosch
75d4bc947d
(svn r19654) -Codechange: Use Extract<> in more places.
2010-04-17 13:31:41 +00:00
frosch
e5cded6e36
(svn r19424) -Codechange: Call command procs only via DoCommand().
2010-03-14 20:53:31 +00:00
rubidium
c2ec2e2db3
(svn r18494) -Fix (r18474): crash when moving non-engine to new free wagon chain and group count was off when moving a front engine within the same train and the new front isn't an engine.
2009-12-13 22:17:12 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
2009-09-18 14:23:58 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
smatz
868c21cbcc
(svn r16813) -Codechange: make IsEngineCountable() member of Vehicle
2009-07-13 16:35:22 +00:00
smatz
ecfaa0564d
(svn r16718) -Codechange: make IsFreeWagon() member of Train
2009-07-01 23:49:13 +00:00
smatz
adc5363202
(svn r16717) -Codechange: make IsFrontEngine() member of Train
2009-07-01 22:22:01 +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
6afce484bb
(svn r16373) -Codechange: use () instead of (void) for functions without parameters
2009-05-21 22:43:25 +00:00
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
2009-05-18 16:21:28 +00:00
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
2009-05-17 01:00:56 +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
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
2009-02-09 21:20:05 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
truebrain
a3dd7506d3
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
smatz
0cd41d1dc6
(svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
...
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
2009-01-10 15:54:07 +00:00
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
2009-01-04 15:32:25 +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
frosch
a0327b375f
(svn r14643) -Fix: Invalidate autoreplace window when toggling 'replace protection'.
2008-11-29 21:27:15 +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
rubidium
abd9f74871
(svn r14096) -Codechange: merge the shared order's vehicle list management to a single location.
2008-08-17 19:56:17 +00:00
rubidium
2d94337e1a
(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client.
2008-08-13 06:22:04 +00:00
rubidium
1560fe3298
(svn r13807) -Fix: memory leak when loading groups.
2008-07-23 18:41:15 +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
smatz
9fc355fca5
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
2008-04-24 09:55:20 +00:00
rubidium
6939569362
(svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though.
2008-04-23 20:56:08 +00:00
rubidium
2152e1c420
(svn r12713) -Fix: misleading comment. Patch by Yexo.
2008-04-14 21:49:13 +00:00
smatz
6af1fb2bdd
(svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining
2008-04-06 23:49:45 +00:00
rubidium
4a1035ab95
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
2008-03-30 23:24:18 +00:00
glx
459fd42e1d
(svn r12296) -Fix [FS#1549]: restore timetable from backupped orders and add group ID to the backup
2008-02-27 21:46:57 +00:00
rubidium
d4e6a6bf57
(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
ab8382c0db
(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
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
peter1138
cbbc53e8f8
(svn r11817) -Codechange: Base vehicle group validity on owner, not name.
2008-01-12 13:36:22 +00:00
rubidium
6c954cad5f
(svn r11801) -Codechange: remove some unneeded includes from some header files.
2008-01-09 21:27:39 +00:00
rubidium
a3ccdcea36
(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
a8a3a7e3f2
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
2008-01-07 09:19:53 +00:00
rubidium
19f8990f64
(svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run.
2008-01-01 22:39:11 +00:00
rubidium
384503e7d3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
2007-12-27 13:35:39 +00:00
rubidium
429521a7d1
(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
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
8896bea306
(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
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
rubidium
40b871410b
(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
2007-09-09 11:23:49 +00:00
rubidium
1b9ea5468e
(svn r11019) -Fix [FS#1176]: Vehicles in a group must always have the same type when adding new vehicles to a group. Patch by SmatZ.
2007-08-31 17:31:54 +00:00
rubidium
cb7eaff353
(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
83e1fdcb01
(svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works.
2007-08-05 21:20:55 +00:00
rubidium
b15c0efaa9
(svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle).
2007-08-02 21:19:07 +00:00
rubidium
87ad3df284
(svn r10751) -Codechange: make the group struct use the pool item class as super class.
2007-08-02 12:51:57 +00:00
rubidium
640421fb79
(svn r10475) -Fix [FS#996]: some wrong comments for a few of the (vehicle) group related actions.
2007-07-08 09:35:39 +00:00
peter1138
c692d897cd
(svn r10364) -Fix [FS#706]: checking for duplicate custom names was inconsistent, and tested all 'namespaces'. now only check names of the same type.
2007-06-27 20:53:25 +00:00
peter1138
74e34ee729
(svn r10316) -Codechange: (consistently) use index to refer to group names. Also the group string_id is irrelevant unless it is a custom name, so don't 'waste' a savegame string id.
2007-06-25 07:33:40 +00:00
rubidium
49220cc6f1
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
2007-06-18 19:53:50 +00:00
rubidium
966e2738b9
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
2007-06-18 10:48:15 +00:00
maedhros
4acf3e4c3f
(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type.
2007-06-01 12:03:10 +00:00
peter1138
c46ac94ce2
(svn r9902) -Fix (r9898): Don't check group owner when adding a vehicle to the 'default' group.
2007-05-23 14:02:10 +00:00
peter1138
2125b96387
(svn r9898) -Fix (r9874): Many...
...
- Group protection status wasn't changed via a command.
- Group renaming didn't check group owner (and in fact changed the owner,
just like renaming a sign...).
- Added owner checks to other group commands.
- Invalidate window data after the command has been completed instead of after
the command has been sent. This fixes gui issues in network play.
2007-05-22 19:48:11 +00:00
rubidium
707bc97c03
(svn r9882) -Fix (r9874): the "default group" is also a valid group in some cases.
2007-05-19 21:47:14 +00:00
rubidium
7d4be11516
(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