Commit Graph

3971 Commits

Author SHA1 Message Date
tron
30651e8bcb (svn r5135) Forgotten Id tag 2006-06-05 18:00:37 +00:00
tron
790362c342 (svn r5132) s/?/³/ 2006-06-05 16:31:29 +00:00
tron
dccfb89766 (svn r5131) s/STRING[1-5]/STRING/g 2006-06-05 16:08:06 +00:00
miham
94a45ffa70 (svn r5130) WebTranslator2 update to 2006-06-05 17:56:46
american   - 12 changed by WhiteRabbit (12)
galician   - 62 fixed, 10 changed by Condex (72)
italian    - 3 changed by sidew (3)
2006-06-05 15:56:59 +00:00
tron
5fdc69194e (svn r5129) Accommodate the default AI for the new railtype: It used hard coded numbers instead of enums to calculate prices 2006-06-05 15:47:08 +00:00
tron
32bf3c7c1c (svn r5128) Remove the global variable _cur_ai_player 2006-06-05 15:29:47 +00:00
tron
6b37bda997 (svn r5127) Use IsRoadVehInDepotStopped() and IsAircraftInHangarStopped() 2006-06-05 14:54:23 +00:00
tron
00aa407edd (svn r5124) Add IsAircraftInHangar{Stopped,}(), which supersedes CheckStoppedInHangar()
-Fix: Be more strict what it means for an aircraft to be in a hangar: It's not just being stopped on a hangar tile
2006-06-05 12:43:41 +00:00
tron
3c4a5d6192 (svn r5121) Add forgotten file in r5120 2006-06-05 11:28:31 +00:00
tron
cb13a1e43d (svn r5120) Add IsShipInDepot{Stopped,}() and remove some redundant checks 2006-06-05 11:28:00 +00:00
tron
b0801e4e63 (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 2006-06-05 10:26:38 +00:00
tron
eeeb8172e8 (svn r5118) Add IsRoadVehInDepot{Stopped,}() 2006-06-05 10:23:18 +00:00
tron
ddbcd9007c (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 2006-06-05 09:54:58 +00:00
tron
4f5c84e720 (svn r5116) Move the overly generic GetDepotDirection() from a header to its only consumer 2006-06-05 08:34:39 +00:00
peter1138
5e3dd8dd78 (svn r5105) - NewGRF: Move callbackmask from *VehicleInfo to EngineInfo. This simplifies code that works with more than one vehicle type. 2006-06-04 18:22:32 +00:00
peter1138
0a623bc333 (svn r5104) - When refitting a vehicle to its existing cargo type, don't lose the cargo onboard (useful when adding wagons to a train) 2006-06-04 17:49:16 +00:00
peter1138
f00c3e7e25 (svn r5103) - Add cargo subtype parameter to refit commands (mart3p) 2006-06-04 17:38:48 +00:00
tron
fa74002356 (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 2006-06-04 16:04:15 +00:00
tron
479317b1eb (svn r5098) Do some manual CSE and replace a few magic numbers to improve the readability of the trolly AI 2006-06-04 13:39:38 +00:00
tron
a87004e453 (svn r5097) -Fix: The trolly AI used information from the wrong industry when calculating the amount of to be transported goods 2006-06-04 13:22:18 +00:00
tron
9b89d3b8cd (svn r5096) Avoid unnecessary copying of _cmd_text 2006-06-04 13:03:48 +00:00
KUDr
3e0902ff14 (svn r5095) -CodeChange: {} added around returns 2006-06-04 09:31:20 +00:00
tron
a0caafeb50 (svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough. 2006-06-04 09:28:33 +00:00
KUDr
9cf3badfcf (svn r5093) -CodeChange: [YAPF] min. debug level changed from 1 to 3 and 4 for frequent debug messages (performance stats) 2006-06-04 09:13:59 +00:00
tron
877c7e34a5 (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 2006-06-04 09:10:24 +00:00
tron
7dff47b7f0 (svn r5091) Remove duplicate code (same check twice) 2006-06-04 09:04:40 +00:00
KUDr
a0b53c1b65 (svn r5090) -Fix: [NPF] broken by me - r4366 (thanks Tron) 2006-06-04 00:28:24 +00:00
peter1138
91de9b7105 (svn r5088) - Add another set of parentheses, missed in r5085, somehow... (thanks ASM) 2006-06-03 19:23:14 +00:00
peter1138
ce90b70a41 (svn r5087) - NewGRF: Fix thinko in returning a calculated callback result 2006-06-03 19:17:34 +00:00
peter1138
4565989d54 (svn r5085) - Fix (FS#198): add parentheses to CHANCE16*() (and GENERAL_SPRITE_COLOR) macro parameters (thanks to ASM) 2006-06-03 15:14:41 +00:00
peter1138
59d5ed821f (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. 2006-06-03 15:10:39 +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
KUDr
47bf194723 (svn r5080) -Fix: RVs can enter other player's depot or roadstop (introduced by YAPF related change of GetTileTrackStatus() - r4419) 2006-06-02 19:29:11 +00:00
miham
b2eb885ab4 (svn r5078) WebTranslator2 update to 2006-06-02 19:18:56
american   - 15 fixed by WhiteRabbit (15)
2006-06-02 17:19:05 +00:00
KUDr
03f8994114 (svn r5076) CodeChange: [YAPF] Platform selection feature related settings added into regular savegames (breaks savegame compatibility only with r5070 and 5071). 2006-06-02 16:31:35 +00:00
peter1138
fbe7303c3a (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. 2006-06-02 13:15:50 +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
KUDr
d680fcec77 (svn r5067) -Codechange: [YAPF] Platform selection feature now applies penalty per platform instead of per tile (should give better results) 2006-06-01 22:20:40 +00:00
KUDr
bd25f49d3f (svn r5066) -Feature: [YAPF] Train selects the best station platform by length 2006-06-01 21:39:35 +00:00
KUDr
76a8f036df (svn r5065) -CodeChange: [YAPF] Added PfDetectDestination(tile, trackdir) for trains (to be used by platform selection feature) 2006-06-01 21:00:59 +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
KUDr
f8982917ea (svn r5062) -Fix: town extends road beyond depot or roadstop (introduced by YAPF related change of GetTileTrackStatus() - r4419) 2006-05-31 20:08:55 +00:00
peter1138
76b29862c0 (svn r5061) - NewGRF: always use visual effect callback if it is defined, not just for powered wagons. 2006-05-31 18:00:08 +00:00
peter1138
82bb84d6cc (svn r5060) - NewGRF: add support for variable 7F (retrieve GRF parameter) for vehicles 2006-05-31 17:40:48 +00:00
peter1138
4aa2054b1a (svn r5059) - NewGRF: store a GRFFile pointer reference for each pointer, instead of just the GRF ID. 2006-05-31 17:31:08 +00:00
KUDr
ef211c35ce (svn r5057) -Fix: [YAPF] trains can't find depot for servicing (thanks Smoky555) 2006-05-31 06:51:56 +00:00
celestar
c1983c3d02 (svn r5055) -Fix: Correct some errors in the bridge sprite numbers 2006-05-31 06:43:05 +00:00
peter1138
57146a3417 (svn r5048) - NewStations: Set up clipping areas to draw the station preview graphics in. This prevents larger station graphics from overflowing onto the list. 2006-05-30 21:27:51 +00:00