Darkvater
9732c129c1
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
...
these are used intermixed often.
2006-10-14 22:22:48 +00:00
Darkvater
dad5d5dd72
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
...
put it into player.h where it belongs (instead of map.h)
2006-10-14 15:49:43 +00:00
peter1138
653e7fa548
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
2006-09-27 18:17:01 +00:00
Darkvater
80814dbb1d
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
...
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
2006-09-05 23:21:41 +00:00
rubidium
63687763e9
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
...
-Cleanup: whitespace alignment of a few tables.
2006-09-04 20:40:33 +00:00
rubidium
27cee58ab8
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
2006-08-28 18:53:03 +00:00
rubidium
480af9c917
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-22 14:38:37 +00:00
Darkvater
3c79725742
(svn r5951) - Codechange: GetVehicleOutOfTunnelTile() never did anything, and making it work properly only resulted in massive performance drops, and it not working properly also seemed to work, so make it not work properly once again.
2006-08-19 15:24:40 +00:00
rubidium
3cab5f30c0
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
...
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
2006-08-16 11:39:55 +00:00
tron
3f35ae1501
(svn r5924) Revert accidently commited files
2006-08-16 06:06:48 +00:00
tron
fa5564db13
(svn r5923) Fix 'make depend' which was broken in r3574 (it just did nothing)
2006-08-16 06:05:44 +00:00
rubidium
c54b71d4ce
(svn r5913) -Fix (r5906): GetVehicleOutOfTunnelTile did assert when the vehicles tile location is the exit of the tunnel.
2006-08-15 14:27:53 +00:00
Darkvater
d84a1dcf50
(svn r5906) -Fix [ 1203146 ]: GetVehicleOutOfTunnelTile always returned v->tile, now the exit-tile of the tunnel based on the vehicle's direction is correctly returned. Based on a patch by glx.
2006-08-15 01:28:07 +00:00
Darkvater
3801e890c0
(svn r5901) -Fix [FS#253]: Differing price calculation for tunnels depending on starting point
2006-08-15 00:14:57 +00:00
rubidium
243872b4fd
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-14 14:21:15 +00:00
tron
5f943a4ba7
(svn r5833) -Feature: Allow building of (certain) rails, roads and bridge ramps on steep sloped tiles
2006-08-10 14:44:32 +00:00
tron
f94a754c14
(svn r5809) Turn the tests for valid bridge ramp slopes into something comprehensible
2006-08-08 07:12:33 +00:00
tron
3254155930
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
2006-08-06 16:32:49 +00:00
tron
a46aa3153c
(svn r5641) -Fix: Adjust/correct some bounding boxes. This fixes some graphical glitches near bridges
2006-07-30 07:42:37 +00:00
tron
3d1720ca29
(svn r5611) Remove a stale comment
2006-07-26 05:58:34 +00:00
tron
ec109a8e8f
(svn r5610) Remove a pointless call to VehicleInTheWayErrMsg() - only trains can be on rail bridges
2006-07-26 05:57:30 +00:00
tron
81846cca24
(svn r5592) Merge two complementary cases
2006-07-22 14:31:56 +00:00
tron
7ec704564a
(svn r5582) Add and use AxisToTrack{Bits,}()
2006-07-22 08:59:52 +00:00
tron
af7fa1df24
(svn r5580) -Regression: Under certain circumstances it was possible to remove/convert bridges while a vehicle was on it. Fix this by properly calculating the height of a bridge
2006-07-22 07:28:04 +00:00
peter1138
a12c748f5b
(svn r5403) - Feature: Allow building canals at sea-level, using ctrl to toggle canal or plain water tile. This allows building of non-raisable sea-level water ways (useful in multiplayer) and dikes for low-level areas.
2006-06-28 17:33:04 +00:00
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
tron
20ee056b9f
(svn r5352) -Fix: Return accurate slope information for tunnels and bridges to fix several foundation graphics glitches
2006-06-24 22:52:24 +00:00
tron
431baba8fe
(svn r5315) -Fix: Prohibit altering a road tile while road works are in progress
...
This fixes some glitches like "turning" the excavation by adding/removing road bits or removing the road piece
2006-06-19 17:22:57 +00:00
tron
17c15fab3e
(svn r5260) -Fix: It was possible to convert the railtype of a bridge while a train was on it
2006-06-14 09:52:50 +00:00
tron
f5638395fe
(svn r5259) -Codechange: GetBridgeHeight{Ramp,}() now returns the height of the bridge, not one level lower
2006-06-14 09:01:21 +00:00
tron
0a72639c2d
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-10 08:37:41 +00:00
tron
901e2d02b1
(svn r5199) Make the control flow of GetTileTrackStatus_TunnelBridge() more comprehensible
2006-06-09 15:27:17 +00:00
tron
be88e269b9
(svn r5155) - Remove the bridge branch merge (revision r5070)
2006-06-07 19:35:21 +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
KUDr
5e73dce0e7
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
2006-05-27 16:12:16 +00:00
tron
1706164ff7
(svn r4937) Reduce the use of _error_message a bit
2006-05-21 11:34:08 +00:00
tron
1dc8b1a00e
(svn r4927) Replace 3 big ifs (which regard foundations) by a bit less confusing code
2006-05-20 18:03:22 +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
tron
c9defc0fea
(svn r4790) Remove slope magic from EnsureNoVehicleZ() and rename it to EnsureNoVehicleOnGround() to make more clear what it does
2006-05-09 09:56:09 +00:00
rubidium
e5bd292dab
(svn r4789) - Codechange: rename RoadType to RoadTileType and ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
2006-05-09 08:25:31 +00:00
rubidium
9b1bbf72ee
(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
2006-05-09 08:17:33 +00:00
tron
8bd664f81f
(svn r4771) -Regression: It was possible to remove a bridge while a vehicle was on it
2006-05-07 11:55:28 +00:00
tron
24854be59e
(svn r4766) -Fix: Vehicles on a sloped tile under a bridge were affected by the bridge speed limit
2006-05-07 08:18:12 +00:00
tron
5622ad4b5e
(svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places
2006-05-07 07:55:05 +00:00
tron
18ad0ae50e
(svn r4572) Remove vehicle_leave_tile_proc
...
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing)
It's a bit overkill, so just handle this one case where it can happen
2006-04-25 07:32:33 +00:00
tron
c1dc517dab
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
2006-04-23 19:35:36 +00:00
tron
0347fb2ab6
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
2006-04-23 13:48:16 +00:00
Darkvater
e21b7eebfa
(svn r4430) - NewGRF: Use the bridge's sprite layout for drawing high pillars. This fixes newgrf's high-bridge pillars drawing. Also remove the now obsolete _bridge_poles_table which was already integrated into the bridge sprite tables
2006-04-15 16:07:00 +00:00