Commit Graph

4162 Commits (a5a780c12a51d1f97ba0f02dfd0d5468424a1308)
 

Author SHA1 Message Date
tron ce9639c6bc (svn r5120) Add IsShipInDepot{Stopped,}() and remove some redundant checks 18 years ago
tron a458faa37e (svn r5119) -Fix: If a road vehicle is on a road depot tile and stopped doesn't mean it's in the depot. Use the proper test for this 18 years ago
tron d26e40ca7e (svn r5118) Add IsRoadVehInDepot{Stopped,}() 18 years ago
tron 5dd68173c8 (svn r5117) Remove a redundant check: If a road vehicle is in the state 'in depot', don't test if it's a road depot 18 years ago
tron cfdbb53a82 (svn r5116) Move the overly generic GetDepotDirection() from a header to its only consumer 18 years ago
peter1138 20cdd71c9f (svn r5105) - NewGRF: Move callbackmask from *VehicleInfo to EngineInfo. This simplifies code that works with more than one vehicle type. 18 years ago
peter1138 18b0ea5473 (svn r5104) - When refitting a vehicle to its existing cargo type, don't lose the cargo onboard (useful when adding wagons to a train) 18 years ago
peter1138 2802c4b9c6 (svn r5103) - Add cargo subtype parameter to refit commands (mart3p) 18 years ago
tron 3cb526d0d9 (svn r5101) Add a function to convert an axis and a flag for north/south into a DiagDirection. Use it for bridge ramps and ship depots 18 years ago
tron f1be69c47b (svn r5098) Do some manual CSE and replace a few magic numbers to improve the readability of the trolly AI 18 years ago
tron 864b0ede8b (svn r5097) -Fix: The trolly AI used information from the wrong industry when calculating the amount of to be transported goods 18 years ago
tron 354dc83459 (svn r5096) Avoid unnecessary copying of _cmd_text 18 years ago
KUDr eb975d6fda (svn r5095) -CodeChange: {} added around returns 18 years ago
tron 9ee944cabb (svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough. 18 years ago
KUDr 6b1f0d610c (svn r5093) -CodeChange: [YAPF] min. debug level changed from 1 to 3 and 4 for frequent debug messages (performance stats) 18 years ago
tron 36e31fa41f (svn r5092) -Fix: There was a gross race condition in the AI code which made it pretty random if the AI could give a new vehicle its orders 18 years ago
tron 3e5ef7319e (svn r5091) Remove duplicate code (same check twice) 18 years ago
KUDr 42c7bc6507 (svn r5090) -Fix: [NPF] broken by me - r4366 (thanks Tron) 18 years ago
peter1138 40197e244c (svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM) 18 years ago
peter1138 70c6a0e4c4 (svn r5087) - NewGRF: Fix thinko in returning a calculated callback result 18 years ago
peter1138 8c17ef7afa (svn r5085) - Fix (FS#198): add parentheses to CHANCE16*() (and GENERAL_SPRITE_COLOR) macro parameters (thanks to ASM) 18 years ago
peter1138 ec1117869c (svn r5084) - Add owner attribute to canals and locks. This makes them more useful in multiplayer games, as before, anyone could delete any canal or lock tile. This doesn't affect whose ships can use whose canals or locks. 18 years ago
celestar f84edec772 (svn r5083) -Fix: Assert when trying to build a lock on a tile with trees. (Thanks anboni for reporting) 18 years ago
celestar e530e53564 (svn r5081) -Fix: Could not build bridges over crossings (but crossings under bridges were possible), noticed by WhiteRabbit 18 years ago
KUDr 01aecb8416 (svn r5080) -Fix: RVs can enter other player's depot or roadstop (introduced by YAPF related change of GetTileTrackStatus() - r4419) 18 years ago
miham 2e1c489e54 (svn r5078) WebTranslator2 update to 2006-06-02 19:18:56
american   - 15 fixed by WhiteRabbit (15)
18 years ago
KUDr ba25c1e222 (svn r5076) CodeChange: [YAPF] Platform selection feature related settings added into regular savegames (breaks savegame compatibility only with r5070 and 5071). 18 years ago
peter1138 c1df13f299 (svn r5071) - Fix (FS#184): "Erroneous train reversal on waypoints". When processing the next train order, do not even consider reversing the train if the last order was to a waypoint. 18 years ago
celestar b618b75c9b (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.
18 years ago
KUDr 7e6d84a34e (svn r5067) -Codechange: [YAPF] Platform selection feature now applies penalty per platform instead of per tile (should give better results) 18 years ago
KUDr 10185f6c11 (svn r5066) -Feature: [YAPF] Train selects the best station platform by length 18 years ago
KUDr 60957de409 (svn r5065) -CodeChange: [YAPF] Added PfDetectDestination(tile, trackdir) for trains (to be used by platform selection feature) 18 years ago
celestar 53cc2673ab (svn r5064) -Fix: Remove stay debug stuff from lat commit. (thanks peter1138) 18 years ago
celestar 0b72bcdcaa (svn r5063) -Codechange: Add a function to determine the length of a platform (request by KUDr) 18 years ago
KUDr 81f48c78a7 (svn r5062) -Fix: town extends road beyond depot or roadstop (introduced by YAPF related change of GetTileTrackStatus() - r4419) 18 years ago
peter1138 17d774517b (svn r5061) - NewGRF: always use visual effect callback if it is defined, not just for powered wagons. 18 years ago
peter1138 40008b8270 (svn r5060) - NewGRF: add support for variable 7F (retrieve GRF parameter) for vehicles 18 years ago
peter1138 bdfcc8008f (svn r5059) - NewGRF: store a GRFFile pointer reference for each pointer, instead of just the GRF ID. 18 years ago
KUDr c514f84a16 (svn r5057) -Fix: [YAPF] trains can't find depot for servicing (thanks Smoky555) 18 years ago
celestar f227b9b77c (svn r5055) -Fix: Correct some errors in the bridge sprite numbers 18 years ago
peter1138 2e796941f0 (svn r5048) - NewStations: Set up clipping areas to draw the station preview graphics in. This prevents larger station graphics from overflowing onto the list. 18 years ago
peter1138 3f0fb3139d (svn r5047) - NewGRF: fix typo of AIRPORT in enum 18 years ago
peter1138 e859b54250 (svn r5046) - Implement smooth horizontal depot scrolling by setting up a clipping area to draw the train image. This fixes a couple of usability issues when shorter wagons are used in the depot; shorter wagons scrolled at a different speed, and not all wagons were visible sometimes. 18 years ago
KUDr 325a1d88f7 (svn r5037) -Fix: assert when GetVehicleTrackdir() returns wrong trackdir - introduced by r5033 (thanks yanek) 18 years ago
miham 55fb73394d (svn r5036) WebTranslator2 update to 2006-05-30 15:45:43
american   - 129 changed by WhiteRabbit (129)
czech      - 3 changed by Hadez (3)
18 years ago
miham f7301a9066 (svn r5035) WebTranslator2 update to 2006-05-30 15:32:01
american   - 44 fixed, 167 changed by WhiteRabbit (211)
czech      - 3 fixed, 1 changed by Hadez (4)
estonian   - 3 fixed by vermon (3)
finnish    - 7 changed by lauri.kajan (7)
french     - 3 fixed by glx (3)
18 years ago
KUDr af1b942906 (svn r5033) -CodeChange: [YAPF] RoadFindPathToStop() can now use YAPF for multistop handling. 18 years ago
KUDr af9f81b6a8 (svn r5018) [YAPF] Added some comments to YAPF implementation. 18 years ago
miham a025ab5524 (svn r5017) WebTranslator2 update to 2006-05-29 19:33:27
dutch      - 3 fixed by webfreakz (3)
italian    - 3 fixed by sidew (3)
turkish    - 4 fixed by jnmbk (4)
18 years ago
KUDr fe2d631b66 (svn r5013) -Fix: [YAPF] RVs trying to plan route through railway.
Should fix assert("(GetTileTrackStatus(m_old_tile, TT()) & TrackdirToTrackdirBits(m_old_td)) != 0")
Thanks Celestar for the reproducible case.
18 years ago