Commit Graph

111 Commits

Author SHA1 Message Date
rubidium 6fe325ae7f (svn r11367) -Fix [FS#1258]: non-articulated road vehicles should be able to overtake (not-too-long) articulated vehicles, i.e. overtaking of articulated vehicles that are several (3+) tiles long is not supported. 2007-10-31 22:15:19 +00:00
rubidium 3a7c8cc88d (svn r11366) -Fix [FS#1258]: road vehicles must not drive through eachother on bridges/in tunnels. 2007-10-31 22:13:41 +00:00
rubidium 4bb210614b (svn r11332) -Fix: vehicles getting a value of 0 on construction.
-Fix: assertion when selling vehicles.
2007-10-21 16:45:00 +00:00
rubidium 28bcf5bb46 (svn r11317) -Fix [FS#1355]: don't read a variable of a destroyed vehicle as the value will be reset to 0. 2007-10-20 20:15:34 +00:00
rubidium b6c9bc80cf (svn r11229) -Fix [FS#1307]: one could sell vehicles that were crashed in a depot, which would still yield money. 2007-10-08 20:06:37 +00:00
rubidium 07f8b91a18 (svn r11200) -Fix [FS#1291]: road vehicles could not overtake on one way roads going to the east. 2007-10-04 20:16:35 +00:00
rubidium 127c7c9b0f (svn r11173) -Codechange: rename some callback enums so they are more uniform. 2007-09-26 17:33:32 +00:00
rubidium 257fdb38e6 (svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes. 2007-09-17 04:23:03 +00:00
rubidium 9da9e77641 (svn r11120) -Codechange: remove the arbitrary limit of 10 articulated parts for a vehicle. 2007-09-16 20:48:00 +00:00
rubidium 38ff181ebf (svn r11072) -Fix [FS#1045]: when a vehicle had a service order, the goto-depot button did not make it possible to stop the vehicle at that depot. 2007-09-09 17:42:59 +00:00
rubidium 56ab253307 (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 2c8e50f20c (svn r11017) -Codechange: unify determining whether a vehicle needs/can be service a little more. 2007-08-31 17:13:39 +00:00
rubidium aba867d78d (svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30 21:11:12 +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 a407d53d1b (svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot. 2007-08-29 21:49:08 +00:00
rubidium a83ccad6bd (svn r10983) -Codechange: use vehstatus & VS_CRASHED instead of some other "methods" custom to each vehicle to determine whether the vehicle is crashed. 2007-08-26 20:16:02 +00:00
rubidium 8a86526d05 (svn r10974) -Fix [FS#1144, FS#1155]: road vehicles that could not (properly) use a road stop still tried to go to that road stop. 2007-08-24 19:19:18 +00:00
maedhros e4d318addc (svn r10924) -Fix [FS#1120]: VS_STOPPED is only set for the front part of an articulated
road vehicle, so don't check any other parts when testing if the vehicle is
stopped inside a depot.
2007-08-16 18:01:27 +00:00
bjarni a973c893fb (svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count didn't always update correctly) (Matthias) 2007-08-07 23:07:10 +00:00
rubidium a7e37d8592 (svn r10814) -Fix [FS#1103]/Codechange: allow trams to be reverse manually, even though there is no track to do so. 2007-08-06 15:00:32 +00:00
maedhros e0e361c890 (svn r10812) -Fix (r10097) [FS#1093]: Make RoadVehicle::MarkDirty() mark all parts of articulated vehicles as dirty, not just the front. 2007-08-06 13:44:50 +00:00
maedhros 8c4a4baac1 (svn r10811) -Fix (r10097): Refit all the parts of an articulated road vehicle, not just the first part. 2007-08-06 13:05:45 +00:00
maedhros 68abeed9b8 (svn r10809) -Fix (r10097): When reversing, articulated parts of road vehicles should not attempt to do their own pathfinding. 2007-08-06 12:46:49 +00:00
rubidium 836105864c (svn r10770) -Codechange: use the pool item class as super class for the vehicle struct.
-Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
2007-08-03 19:36:00 +00:00
rubidium 7fb3f54584 (svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type. 2007-07-29 23:42:59 +00:00
rubidium 5bd241eb5b (svn r10697) -Codechange: give a more sensible names to some of the unkX variables. 2007-07-26 15:37:19 +00:00
rubidium 0d9a51de6d (svn r10672) -Codechange: typify some parameters/variables. 2007-07-24 13:03:24 +00:00
rubidium efc7fdf2fd (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 2007-07-16 09:16:58 +00:00
rubidium b876be0064 (svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments. 2007-07-09 19:38:12 +00:00
rubidium 90f85c957a (svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class. 2007-07-01 19:24:54 +00:00
rubidium 83a880c882 (svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image. 2007-07-01 19:11:47 +00:00
peter1138 de357c74c1 (svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take account of vehicle group (Matthias Wolf) 2007-06-27 20:40:20 +00:00
matthijs a0a9a7f3cd (svn r10345) -Fix [FS#290]: Make OPF handle coming out of a tunnel as well as going into a tunnel, to support road vehicles looking back when finding a depot while in a tunnel.
-Fix [FS#290]: Make NPF look back when finding a depot for road vehicles.
2007-06-26 20:15:33 +00:00
maedhros fb284a9264 (svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable. 2007-06-25 23:14:13 +00:00
rubidium 117368a5a9 (svn r10287) -Fix (r10266): some surprises from that (almost always) complaining compiler... 2007-06-22 22:28:15 +00:00
rubidium e5c352818d (svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it. 2007-06-22 11:58:59 +00:00
maedhros cf0118ee63 (svn r10236) -Feature: Introduce a form of timetabling for vehicles. 2007-06-20 19:17:22 +00:00
rubidium 2ee73b50b8 (svn r10208) -Codechange: replace int32 with Money where appropriate. 2007-06-18 21:44:47 +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 12be876131 (svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops. 2007-06-12 22:13:49 +00:00
peter1138 78d797a6b7 (svn r10111) -Codechange: Add new vehicle hash table for collision detection and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003') 2007-06-12 11:22:32 +00:00
maedhros 3e326085fa (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
2007-06-11 14:00:16 +00:00
rubidium a752c73469 (svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks. 2007-06-02 21:07:03 +00:00
glx 9f60f2ecbb (svn r10012) -Fix (r9999): crash when forcing road vehicles to turn 2007-06-01 16:06:23 +00:00
rubidium b2cd8f3631 (svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge. 2007-05-31 18:11:39 +00:00
rubidium 59c51f9fce (svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot... 2007-05-31 16:47:32 +00:00
rubidium 253aa1b0b0 (svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road. 2007-05-31 15:15:00 +00:00
rubidium 2bfc36c1ba (svn r9989) -Fix [FS#817]: trams/road vehicles did go to the closest road stop regardless whether they could actually "drive" on there. 2007-05-30 18:22:56 +00:00
bjarni c346cc430a (svn r9941) -Fix: trams could be cloned to appear in normal road depots and vice versa (spotted by Desolator) 2007-05-26 20:30:55 +00:00