Commit Graph

3393 Commits

Author SHA1 Message Date
Darkvater
d4479fc1a2 (svn r3852) - Revert r3733 which fixed the default value loading for char, but broke loading a set value. Added a better fix which needs a char value to be a string (eg enclosed in double-quotes) 2006-03-13 23:10:02 +00:00
tron
8505f4ed41 (svn r3851) Rail depots only have an entrance at one side, therefore use UpdateSignalsOnSegment() instead of SetSignalsOnBothDir() 2006-03-13 20:12:35 +00:00
tron
23ae850484 (svn r3849) Fix bug in r3846 2006-03-13 15:38:52 +00:00
tron
26815f7405 (svn r3846) Add functions to set the type of stuff (clear, water, rail, road) under bridges 2006-03-13 12:55:20 +00:00
tron
3e932a0a4f (svn r3838) Demystify building bridge middle parts a bit by removing some magic numbers and generic names 2006-03-13 07:12:49 +00:00
tron
8259a29ead (svn r3837) Partially unmagicfy restoring the tiles when deleting a bridge
Existing bug: When restoring a road piece which belongs to a town the town index unconditionally gets set to 0
2006-03-12 20:59:56 +00:00
tron
00cf5c9acf (svn r3832) Replace some magic numbers by (Diag)Direction enums 2006-03-12 17:42:04 +00:00
tron
eeb5bf41a1 (svn r3831) Add and use GetRailDepotDirection() 2006-03-12 16:13:16 +00:00
tron
0100871412 (svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does 2006-03-12 15:04:03 +00:00
tron
7a0071cc53 (svn r3829) Reduce the use of _error_message by directly returning error codes instead of using this global variable 2006-03-12 12:19:25 +00:00
tron
367b09a1f9 (svn r3827) Remove the global variable _error_message_2, it's only used as local variable 2006-03-12 10:15:36 +00:00
tron
6c30c9ae4d (svn r3823) Remove dead code: A value for 'image' gets calculated and overwritten just a few lines later without being used in between 2006-03-12 08:47:18 +00:00
tron
86491ca257 (svn r3820) Be a bit more strict with types: use special types instead of generic byte and don't fill arbitrary data into inappropriate types 2006-03-11 17:06:16 +00:00
tron
25606a2e0b (svn r3816) Use existing accessors 2006-03-11 09:10:46 +00:00
tron
0e4ee1241f (svn r3814) Remove another call to FindLandscapeHeight() 2006-03-10 17:01:51 +00:00
tron
0a63715cc7 (svn r3813) Simplify strange control flow 2006-03-10 12:57:42 +00:00
tron
ec8f335e9d (svn r3812) Remove a pointless goto 2006-03-10 11:27:52 +00:00
bjarni
eac8e5e473 (svn r3811) -Fix: [autoreplace]: (FS#67) autoreplacing trains now keep their tile length instead of their pixel length 2006-03-10 10:01:56 +00:00
peter1138
9a09704d08 (svn r3809) - Add map accessor files to MS VS 2003 project file 2006-03-10 09:20:28 +00:00
peter1138
fca5823238 (svn r3805) - [FS#62] Fix doxygen comments to refer to the correct parameter. (sulai) 2006-03-09 20:37:51 +00:00
tron
ee03f15f27 (svn r3803) Change the second parameter of UpdateSignalsOnSegment() from Direction to DiagDirection as that's what it really operates on 2006-03-09 12:32:25 +00:00
matthijs
7f99d05a6c (svn r3802) * Add a dummy file in the scenario dir to make the makefile stop complaining on make install (temporary hack). 2006-03-08 23:21:32 +00:00
matthijs
13cadd18df (svn r3801) * Update debian packaging files to the ones used for releasing 0.4.5 (see os/debian/changelog for details).
* Fix a small debconf issue which was in the 0.4.5 release.
2006-03-08 23:12:38 +00:00
tron
7803f259e2 (svn r3798) Fix typo in r3795 2006-03-08 20:25:28 +00:00
tron
cf7b94254e (svn r3796) When unmagicfying code, do it Right(tm) and also give the variables sensible names. I flipped a 'b' and a 'd' in r3785 2006-03-08 19:47:18 +00:00
tron
86550c94bc (svn r3795) Add a function to request the orientation of a depot 2006-03-08 15:29:23 +00:00
tron
c3fffd07f2 (svn r3794) Use already available accessor functions instead of GB() 2006-03-08 15:28:38 +00:00
tron
000bb4de54 (svn r3792) -Fix: Mark the right tile as dirty. It's just a graphical glitch which happend in r1592 2006-03-08 13:03:29 +00:00
tron
b258c39922 (svn r3791) Replace home grown direction handling for placing lighthouses by standard DiagDir 2006-03-08 12:26:56 +00:00
tron
70f9516015 (svn r3789) Add an enum and function to handle DiagDirection changes 2006-03-08 08:51:26 +00:00
tron
80878a2c9b (svn r3788) Fix (harmless) typo in r3784 2006-03-08 08:36:00 +00:00
tron
ab9af3b05d (svn r3787) Use DirToDiagDir() instead of >> 1 2006-03-08 08:28:48 +00:00
tron
fa6632ec32 (svn r3786) More work for DirDiff 2006-03-08 08:16:31 +00:00
tron
f0d82204e0 (svn r3785) Replace some if-magic to determine the turning direction for road vehicles with the new DirDiff stuff 2006-03-08 07:50:26 +00:00
tron
9273d0d2b9 (svn r3784) Add a type and functions to handle direction changes 2006-03-08 07:48:56 +00:00
tron
8cfcdaa733 (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends 2006-03-08 06:55:33 +00:00
tron
3027b8673e (svn r3779) Move CheckTunnelInWay() to a more appropriate place, invert its result and give it a less ambiguous name (IsTunnelInWay) 2006-03-07 07:51:05 +00:00
peter1138
9c1856d8f1 (svn r3778) - Fix crash when resizing news history window. 2006-03-06 23:01:35 +00:00
tron
af42610321 (svn r3777) Add some functions to handle tunnels 2006-03-06 20:55:24 +00:00
tron
49cb8eb470 (svn r3776) Replace many ints and magic numbers by Direction, DiagDirection and friends 2006-03-06 20:28:28 +00:00
peter1138
995a4572ec (svn r3775) Fix loading of server_port from config file, introduced in Darkvater's unified configuration changes (r3719+) 2006-03-06 19:23:26 +00:00
tron
ce21353419 (svn r3774) Remove some more magic numbers and types 2006-03-06 13:29:27 +00:00
tron
03254940a4 (svn r3773) Shove some semantics down ottd's throat by replacing ints and magic numbers by enums and some related changes 2006-03-06 13:11:08 +00:00
tron
6fa5f041f8 (svn r3770) Remove the _road_special_gettrackstatus hack. Egladil and me deem it unnecessary 2006-03-05 17:24:04 +00:00
tron
f62a7480b7 (svn r3769) Add a cast to make KUDr's C++ compiler happy 2006-03-05 12:54:22 +00:00
tron
f6176a89f9 (svn r3767) Move all direction related enums and functions to a separate header 2006-03-05 12:34:55 +00:00
tron
4da99989b9 (svn r3766) Add a function to get the RoadBits from an arbitrary tile 2006-03-05 12:22:20 +00:00
tron
62abd9c1e2 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties 2006-03-05 11:18:34 +00:00
tron
4efa560ffc (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme 2006-03-05 10:19:33 +00:00
tron
6394725ae8 (svn r3761) Fix two bugs in r3757 2006-03-04 17:18:13 +00:00