celestar
5f1791bfb1
(svn r10141) -Fix (FS#848, r8973): Set the newgrf bit for realistic plane speeds (bulb)
2007-06-13 15:24:40 +00:00
celestar
191ea4b1ba
(svn r9541) -Codechange: Safeguard the company-buying routines so that the buying player and the bought player need to be two different entities
2007-04-01 10:55:31 +00:00
celestar
e3f1914de0
(svn r9540) -Fix (r1): Bankrupt AIs no longer buy themselves (usage of wrong variable)
2007-04-01 10:54:31 +00:00
celestar
a1ab0d29fe
(svn r9524) -Fix(FS#640,r8755): Implemented a "dummy" State Machine for stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts)
2007-03-29 13:52:34 +00:00
celestar
49ff7cb938
(svn r9425) -Codechange/Fix (FS#689): Housekeeping in the convert rail functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations
2007-03-24 09:12:03 +00:00
celestar
693c2f12cb
(svn r9275) -Fix(r8973, FS#686): Faulty display of aircraft maximum velocity in the news item for new vehicles
2007-03-18 10:37:22 +00:00
celestar
124725d863
(svn r9251) -Fix(r6057, FS#644): Use a less CPU-intensive algorithm to find a random industry for the AI to prevent it slowing down the game. The AI now sucks a even a bit more than before (if that's even possible).
2007-03-16 10:11:16 +00:00
celestar
0fd907e0ec
(svn r9062) -Fix (r4822, FS#595): The station list, sorted by cargo rating, now takes stations into account that have no cargo waiting (KeeperOfTheSoul). While at it, doxygen the function
2007-03-08 12:26:31 +00:00
celestar
f8e7d08885
(svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
...
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10)
Note: With this commit, building and running on Solaris 10 works, thus
we officially support this OS now :)
2007-03-05 09:35:45 +00:00
celestar
f621608f7d
(svn r8973) -Feature/Codechange: Changed the internal unit for aircraft velocities to from 8mph to 1km/h (peter1138), also give aircraft realsitic velocities (so that 1km/h is 1km/h independent of vehicle type) (peter1138). Introduce a flag to reduce aircraft speed in holding patterns to some realistic velocity. Use this flag for the city airport for the time being and make use of the different entry points for this airport type.
2007-03-02 12:01:24 +00:00
celestar
0ed4b64e64
(svn r8857) -Documentation: Added some doxygen @file tags, repaired others (the @file tag MUST be found before any line of code, that includes preprocessor directives).
2007-02-23 08:37:33 +00:00
celestar
a8e88ae7cc
(svn r8759) -Feature: Allow airports to have up to 4 entry points depending on approach direction. Note: they're not yet used, but will be soon
2007-02-16 12:10:19 +00:00
celestar
6abbf15a8e
(svn r8744) -Fix(r654/2105): Call GetFirstVehicleInChain only for trains, and assert the vehicle type in that function. Not a critical error, but it does increase game performance by up to 10% when playing a large game (many vehicles) with aircraft/road vehicle newgrfs loaded.
2007-02-15 10:21:00 +00:00
celestar
39b73119ca
(svn r8733) -Fix(r8705): Forgot to change some more places where airport blocks are stored
2007-02-14 12:00:43 +00:00
celestar
59a814c6d3
(svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into template functions. Fixes a problem with MSVC and 64-bit shifts.
2007-02-14 11:53:39 +00:00
celestar
d9385f2798
(svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed.
2007-02-13 16:36:38 +00:00
celestar
5e880a6a75
(svn r8708) -Codechange(r8514): No need to use "this->" in methods
2007-02-13 15:44:37 +00:00
celestar
8eab3964b4
(svn r8707) -Codechange: Turn IsValidStation into a method of Station
2007-02-13 15:42:52 +00:00
celestar
6f68ac46b8
(svn r8705) -Codechange: Increased the number of airport blocks to 64. This involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums
2007-02-13 12:34:54 +00:00
celestar
7299a42729
(svn r8648) -Codechange: Renamed os/linux to os/mandrake because that's what is is about. Added another spec file for suse (early version) which will be used to create rpms
2007-02-09 08:58:25 +00:00
celestar
3dc645ce0a
(svn r8611) -Fix: Moved the aircraft speed limiting into UpdateAircraftSpeed and enummed some speed limits. This should give a more steady display in the status bar during taxiing
2007-02-06 15:38:23 +00:00
celestar
22dc618582
(svn r8536) -Fix (FS#577): Road Vehicles now can obtain a slot even if the station is very spread out
2007-02-02 16:51:10 +00:00
celestar
6f01ba5ad9
(svn r8534) -Feature/Codechange: Provide aircraft with vertical separation depending on their altitude and velocity
2007-02-02 15:04:59 +00:00
celestar
90528dc78e
(svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming conflict no longer exists.
2007-02-02 07:48:06 +00:00
celestar
5678febfe2
(svn r8514) -Codechange: Turn IsBuoy into a method of stations
2007-02-01 16:48:38 +00:00
celestar
113fa175a4
(svn r8403) -Fix (r8402): Forgot to remove an enum
2007-01-25 11:11:43 +00:00
celestar
b0a0086e7c
(svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
2007-01-25 10:06:58 +00:00
celestar
600cb8a314
(svn r8401) -Codechange: Make 'IsValidRoadStop' a method of RoadStop and rename it to 'IsValid'
...
-Codechange: While I'm at it, put 'RoadStop::AllocateRaw' into the protected section
2007-01-25 08:58:09 +00:00
celestar
8c54793068
(svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
2007-01-17 11:15:51 +00:00
celestar
0fbdae2828
(svn r8146) -Fix (FS#552, r8038): a C/C++ linkage problem on some very few incarnations of gcc
2007-01-15 17:32:01 +00:00
celestar
05b783e551
(svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get excessive payment any longer, as the origin TILE is now stored as long as the origin STATION for the transported cargos. Basically this is only a temporary fix until cargopackets are implemented, but it fixes one of the oldest known bugs (Special Thanks to Darkvater for lots of testing)
2007-01-15 14:42:24 +00:00
celestar
91ff746410
(svn r8065) -Feature: The station list does now remember the sort settings
2007-01-11 15:30:35 +00:00
celestar
8694ad9e0d
(svn r8058) -Codechange: Replaced an occurence of (uint32)-1 by UINT_MAX
2007-01-11 12:47:42 +00:00
celestar
6a256ff2df
(svn r8057) -Codechange: Declare the "new" max template as static line.
2007-01-11 12:38:04 +00:00
celestar
1691b2da61
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
2007-01-11 12:32:10 +00:00
celestar
2ac0410767
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
2007-01-11 11:05:01 +00:00
celestar
f3b4cf10b6
(svn r8027) -Fix (FS#486) If a pause command is issues, it will now pause the game even if shift is pressed instead of giving a cost estimate of 0. This fixes a problem where the server does not pause_on_join when the player on the interactive server has the shift button pressed. (Thanks to pvz for the report and the fix)
2007-01-10 14:52:10 +00:00
celestar
52d14b3dd0
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
2007-01-10 14:22:49 +00:00
celestar
ecef824f93
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
2007-01-08 10:36:45 +00:00
celestar
3a1d7ccdac
(svn r7579) -Fix: upon merging the bridge branch, I accidently reverted 7571. Re-revert it. Sorry.
2006-12-27 14:51:55 +00:00
celestar
091cc1cc4b
(svn r7575) -Codechange: Allow the AI to build signals under bridges (revert r4911)
2006-12-27 13:48:57 +00:00
celestar
d95e2c2dd1
(svn r7573) -Merged the bridge branch. Allows to build bridges of arbitrary rail/road combinations (including signals)
2006-12-27 12:38:02 +00:00
celestar
d7261da206
(svn r5083) -Fix: Assert when trying to build a lock on a tile with trees. (Thanks anboni for reporting)
2006-06-03 12:53:29 +00:00
celestar
8c01bf711d
(svn r5081) -Fix: Could not build bridges over crossings (but crossings under bridges were possible), noticed by WhiteRabbit
2006-06-02 21:03:59 +00:00
celestar
25a63ec7af
(svn r5070) Merged the bridge branch
...
-Feature: Bridges can now be placed above:
Any railway track combination (excluding depots and waypoints)
Any road combination (excluding depots)
Clear tiles (duh), including fields
Tunnel entrances
Bridge heads
Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing
There are still a number of visual problems remaining, especially when electric railways are on or under the bridge.
DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
2006-06-02 13:05:41 +00:00
celestar
bf2fb59bf9
(svn r5064) -Fix: Remove stay debug stuff from lat commit. (thanks peter1138)
2006-06-01 09:43:39 +00:00
celestar
65a6286345
(svn r5063) -Codechange: Add a function to determine the length of a platform (request by KUDr)
2006-06-01 09:41:35 +00:00
celestar
c1983c3d02
(svn r5055) -Fix: Correct some errors in the bridge sprite numbers
2006-05-31 06:43:05 +00:00
celestar
979b640f19
(svn r4946) "Feature": Add a cheat that allows running electric engines on normal rail
2006-05-22 14:41:20 +00:00
celestar
e693290ed1
(svn r4934) -Fix: Correct a misleading comment, and remove an unneeded condition from the corresponding if (thans Tron for pointing it out)
2006-05-20 21:04:43 +00:00
celestar
94ef21bd2d
(svn r4914) -Fix (FS#180) Aircraft can now serve as feeders
2006-05-19 13:44:32 +00:00
celestar
486e207ea0
(svn r4911) -Fix (FS#156): The Ai no longer attempts to build signals under bridges.
...
NOTE 1: Remove/revert this for the bridge branch
NOTE 2: Bug displays fundamental flaw in command system:
If two commands, where command 2 depends on command 1, have
to be checked, all those checks need to be manual.
(like in this example, first build rail then build signal.
BuildSignal cannot be checked without DC_EXEC as the rail
isn't there yet)
2006-05-19 12:08:01 +00:00
celestar
cbf4e1e159
(svn r4882) -Fix: Forgot a change in previous commit
2006-05-16 12:31:15 +00:00
celestar
476ad49ac0
(svn r4881) -Codechange: Be a little more strict about types and remove some null-operations
2006-05-16 12:04:53 +00:00
celestar
30bc705e48
(svn r4828) -Feature (FS#150) Add a new console command "players" that lists current players along with basic stats (ledow)
2006-05-11 14:08:03 +00:00
celestar
c764bc35f5
(svn r4827) -Fix (FS#160) In the terraform toolbar, don't treat the plant tree button as place-push-button, because it isn't
2006-05-11 14:05:23 +00:00
celestar
c6fd0c3a46
(svn r4823) -Fix: Improved tooltips for sortable station lists.
...
-Credit: Chrishuebsch for initial idea and implementation of station filters
2006-05-11 11:24:09 +00:00
celestar
48d991b819
(svn r4822) -Feature: Station List View can now be sorted and filtered (by waiting cargo type and facilities)
2006-05-11 10:33:58 +00:00
celestar
26f17e3e01
(svn r4819) -Debug: When clicking on a vehicle in the viewport, the index and address of the vehicle get dumped for "misc" debug levels >= 2
2006-05-11 05:32:26 +00:00
celestar
3c6c3895cf
(svn r4812) -Fix (FS#161) NTP properly checks for railtypes on non-plain-rail-tiles (Rubidium)
2006-05-10 09:38:29 +00:00
celestar
5c677d49f4
(svn r4639) -Feature: Turkish town names (jnmbk)
2006-05-01 09:25:23 +00:00
celestar
d3edede498
(svn r4619) -Codechange: Rename FindRoadStationSpot into FindRoadStopSpot and try to document it a little.
...
if anyone comes up with an idea on how to simplify this thing a bit, I'd be grateful
2006-04-29 09:47:43 +00:00
celestar
1d606e7392
(svn r4591) -Fix (FS#122) Game no longer errors out when "Many random towns" is selected in the scenario editor.
...
-Side effects:
- Removed one global variable from variables.h
- Remove an ugly hack for the "many random towns" function
2006-04-27 11:19:12 +00:00
celestar
084acbf23c
(svn r4520) -Fix: Did last commit in the wrong branch. Repair and shame on me.
2006-04-22 09:25:36 +00:00
celestar
a732a0daee
(svn r4516) -Fix: Committed one file too much. Thanks egladil for immidiate spotting
2006-04-22 05:42:54 +00:00
celestar
a18e9ccf27
(svn r4515) -Codechange: TPFMode2 is currently only used for TRANSPORT_WATER. So remove all stuff that deals with other transport types and assert TRANSPORT_WATER
2006-04-22 05:36:22 +00:00
celestar
f8b6525765
(svn r4508) -Fix: (FS#125) Fixed a problem that caused DeliverGoodsToIndustry to not work as intended. Note: write something better for this entire function
2006-04-21 20:25:34 +00:00
celestar
1e574a6afc
(svn r4507) Just a comment
2006-04-21 20:10:53 +00:00
celestar
de0607fb80
(svn r4506) -Fix: (FS#95) Use the tile hash when pathfinding to a depot. Eats a tiny bit of performance, but the likelihood that the depot is found is greatly increased
2006-04-21 20:08:25 +00:00
celestar
76e2d2939a
(svn r4505) -Fix (FS#94) Ships can now be used to set up feeders as well.
2006-04-21 19:47:52 +00:00
celestar
caea7f845c
(svn r4502) -Cleanup: Remove code unused since rev1. (Rubidium)
2006-04-21 17:51:01 +00:00
celestar
a7b2ec60b3
(svn r4501) -Fix: (FS#129) When, in a train that head multiple engines in front, the _first_ of those engines is sold, all the orders are copied to the second engine (to ensure "seamless" operation). However, during this operation, it was forgotten to update the prev_shared and next_shared pointers of the new head engine AND the next_shared and prev_shared of the share partners.
2006-04-21 17:15:05 +00:00
celestar
ccdf322799
(svn r4479) -Fix (FS#90) electric engines (or rather their pantographs) no longer emit sparks when engine is pulled on convrail (MeusH)
...
P.S. Credit for previous commit goes to the bug reporter, nycom, who submitted the fix as well.
2006-04-19 16:10:17 +00:00
celestar
1b1e519b76
(svn r4478) -Fix (FS#107) In the cheat menu, don't hard-code the player icon, but compute its position from the length of the string.
2006-04-19 16:02:07 +00:00
celestar
35a21d80fc
(svn r4468) -Fix: (FS#45) correct declaration of NORETURN for gcc (egladil)
2006-04-18 13:55:11 +00:00
celestar
4287cfb640
(svn r4467) -Fix: New plantations now cause the correct ".. being planted .." news item (MeusH)
2006-04-18 13:16:00 +00:00
celestar
e75e4e8f74
(svn r4466) -Fix: (FS#71) Game no longer crashes when the last vehicle serving a station has been deleted.
...
-Negative side effect: upon loading old games, stations whose last vehicle was a station have (temporarily) lower ratings.
-Positive side effect: station.h no longer includes vehicle.h (breaks the station.h->vehicle.h->rail.h chain)
2006-04-18 08:50:17 +00:00
celestar
62f7907d3a
(svn r4465) -Codechange (FS#60): Remove a variable no one really needs. (DaleStan)
2006-04-18 07:20:37 +00:00
celestar
e7edba56fb
(svn r4464) -Codechange: Oops, forgot one file in last commit
2006-04-18 06:42:14 +00:00
celestar
22f82bba2e
(svn r4463) -Codechange. Include vehicle.h directly instead of implicitly via station.h in a number of source files
2006-04-18 05:16:13 +00:00
celestar
6935fb6455
(svn r4461) -Codechange: Add and make use of map accessor functions for signal drawing. Includes some basic cleanup of the drawing functions
2006-04-17 19:09:30 +00:00
celestar
a588d816ff
(svn r4398) -Fix: Quick and Dirty solution for FS#116. Just for the nightlies
2006-04-12 17:58:58 +00:00
celestar
5c3c4d190e
(svn r4392) -Codechange: Use water map accessors in bridge code
2006-04-12 15:23:32 +00:00
celestar
75f978626a
(svn r4391) -Fix: faulty ")" in previous commit
2006-04-12 15:21:33 +00:00
celestar
17da0bb976
(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...
2006-04-12 15:08:48 +00:00
celestar
3c13420b82
(svn r4387) -Codechange: Use map accessors even for debugging purposes (npf).
...
-Codechange: Removed unused code from NPF
2006-04-12 14:17:07 +00:00
celestar
b03bd97b47
(svn r4386) -Codechange: Add and make use of IsCustomWaypoint
2006-04-12 13:25:32 +00:00
celestar
5d94951496
(svn r4385) -Codechange: remove map5 from the TileInfo struct as it is now unused. This effort is starting to pay off ...
2006-04-12 12:58:53 +00:00
celestar
bdcb4bbf1d
(svn r4384) -Codechange: rail drawing code
...
-Added a function to obtain the axis of a waypoint
-Moved the waypoint layout tables from the depot layout tables into an own one
-Use GetRailTileSubtype
2006-04-12 12:50:40 +00:00
celestar
5b33383f65
(svn r4382) -Codechange: Make use of SetSignalType where appropriate
2006-04-12 12:24:39 +00:00
celestar
0b16a2d41b
(svn r4381) -Codechange: Forgot an occurence for rail ground types
2006-04-12 12:22:43 +00:00
celestar
c08ed855f3
(svn r4380) -Codechange: Make use of GetTrackBits where appropriate
2006-04-12 12:12:51 +00:00
celestar
ee7eaef29d
(svn r4379) -Codechange: Add and make use of map accessor functions concerning rail ground types
2006-04-12 11:58:07 +00:00
celestar
923a0e60d6
(svn r4378) -Add and make use of an accessor function two-way => one-way => one-way => two-way signal cycling
2006-04-12 09:36:27 +00:00
celestar
5ae9a03a1f
(svn r4377) -Add and make use of a function that finds out whether a signal is an entry or and exit signal to a presignal block (as combos act as both)
2006-04-12 09:12:33 +00:00
celestar
e79c36bf8c
(svn r4376) -Codechange Renamed GetSignalState to GetSignalStateByTrackdir
2006-04-12 08:28:03 +00:00
celestar
a8d4285ec2
(svn r4375) -Codechange: Move the signal drawing bit to an own function and rename DrawSignalHelper to DrawSingleSignal
2006-04-12 08:06:08 +00:00
celestar
24fcd110b2
(svn r4358) -Codechange: Don't use a TileInfo where a TileIndex will do
2006-04-11 13:19:05 +00:00
celestar
dfad91e317
(svn r4357) -Codechange: Moved global _signal_base_sprites into the only function where it is used and use a better array arrangement for it
2006-04-11 13:10:16 +00:00
celestar
da428dca70
(svn r4353) Codechange: Move global _signal_position into the only function that uses it and convert the bit-hacking into a struct
2006-04-11 10:19:50 +00:00