matthijs
bf761af163
(svn r2471) - Fix: [ 1221249 ] [NPF] Vehicles try to drive into a tunnel entrance from above.
2005-06-22 01:06:04 +00:00
hackykid
b9cca2988c
(svn r2470) - Fix: Display station signs correctly in smallest zoom level in transparent buildings or tranparant station signs mode. (Peter1138)
2005-06-21 21:13:10 +00:00
hackykid
a1d81b3558
(svn r2469) - Add: When removing tracks with the 'remove' tool, have it automatically remove signals on the tracks.
2005-06-21 19:45:05 +00:00
celestar
354058341b
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
2005-06-21 16:28:17 +00:00
hackykid
09f92807fc
(svn r2467) - Fix: [newgrf] Prevent trains with shorter wagons breaking apart when reversing in some cases. (Therax)
2005-06-21 14:50:08 +00:00
miham
6002a73c1b
(svn r2466) [Translations] Updated to 2005-06-21 (37 strs / 2 langs)
2005-06-21 07:30:01 +00:00
tron
255609f2d6
(svn r2465) Remove some unreachable code
2005-06-20 20:09:46 +00:00
tron
7ea9ddacbb
(svn r2464) Move definition of _inclined_tileh out of variables.h
2005-06-20 20:08:10 +00:00
Darkvater
0052c1de84
(svn r2463) - Fix: partly revert the strncat madness and update nightly script (invisible) to correctly insert date.
2005-06-20 19:39:49 +00:00
miham
a32bfcb5ae
(svn r2462) [Translations] Updated to 2005-06-20 (202 strs / 5 langs)
2005-06-20 09:33:43 +00:00
bjarni
83943cd246
(svn r2461) -Feature [Makefile] libpng-config can now be called something else in Makefile.config
...
useful if you for some reason got a libpng-config, which is called something else
2005-06-19 17:05:24 +00:00
hackykid
c6845d2f38
(svn r2460) - Fix: Prevent assertion failure when trying to drag signals starting from a non-rail tile.
...
- CodeChange: Remove unused variable in CmdSignalTrackHelper.
2005-06-19 11:56:07 +00:00
Darkvater
e480038d19
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
2005-06-18 20:23:35 +00:00
truelight
fc2f5b79ef
(svn r2458) -Fix: Quickfix to make dedicated-server compile again. We need a more ellegant way to fix this...
2005-06-18 15:08:35 +00:00
truelight
d6cd0bdcac
(svn r2457) -Fix: typo in Makefile for OSX builds
2005-06-18 10:02:47 +00:00
matthijs
84655ddb15
(svn r2456) * Prettyfied npf.c using enums and wrappers from rail.h.
...
* Moved GetTileRailType() from npf.c to rail.[ch].
2005-06-17 17:11:05 +00:00
miham
6f6153fcf6
(svn r2455) [Translations] Updated to 2005-06-17 (100+ strs / 10+ langs)
2005-06-17 13:39:59 +00:00
matthijs
ee4d9dbf0d
(svn r2454) * Codechange: Move #include "stdafx.h" and "openttd.h" from rail.h to rail.c
...
* Codechange: Move declaration of lookup arrays into the functions that need them. This doesn't pollute the global namespace with the array names.
* Add: rail.h to the openttd.vcproj and openttd.dsp for MSVC.
2005-06-17 11:30:50 +00:00
matthijs
17750a66f3
(svn r2453) * CodeChange: Declared the lookup arrays in rail.h as extern, so the linker will complain if they are not defined (ie when rail.c is not included).
2005-06-17 09:53:22 +00:00
tron
663e45eb57
(svn r2452) Fix defect in r2448 which caused building tracks unexpectedly fail or succeed
2005-06-17 07:35:10 +00:00
matthijs
13b7f222f3
(svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected.
2005-06-17 00:46:33 +00:00
matthijs
a63a84ef5d
(svn r2450) * Codechange: Replaced all uses of the arrays in tile.h with calls to the associated wrapper functions.
...
* Codechange: Made npf.c use some map array accessing wrappers instead of direct access.
* Codechange/Fix: Named every enum in tile.h. Fixes a nasty bug on MSVC where arrays would be initialised with zeroes (tnx Asterix_)
* Removed magic numbers from tables in tile.c.
* Added some explicit casts in tile.h.
2005-06-17 00:22:46 +00:00
matthijs
948d9f518f
(svn r2449) * Added an extra warning to the stopall command, "For debugging only!".
2005-06-16 20:54:37 +00:00
matthijs
1876744744
(svn r2448) General cleanup of rail related code, more to follow.
...
* Add: rail.[ch] for rail-related enums and wrapper functions.
* Codechange: Removed dozens of magic numbers with below enums.
* Codechange: Rewrote CheckTrackCombination().
* Add: TILE_SIZE, TILE_PIXELS and TILE_HEIGHT constants.
* Add: enums RailTileType, RailTileSubtype, SignalType to mask against the map arrays.
* Add: enums Track, TrackBits, Trackdir, TrackdirBits for railway track data. (Note that the old RAIL_BIT constants are replaced by TRACK_BIT ones).
* Add: enums Direction and DiagDirection
* Codechange: Moved a bunch of track(dir) related lookup arrays from npf.[ch] to rail.[ch].
* Codechange: move RailType enum from tile.h to rail.h.
* Add: Wrapper functions for masking signal status in the map arrays: SignalAlongTrackdir, SignalAgainstTrackdir and SignalOnTrack.
* Add: Wrapper functions to access rail tiles, using above enums
* Add: Wrapper functions to modify tracks, trackdirs, directions, etc.
* Add: Wrapper functions for all lookup arrays in rail.[ch] (Arrays are still used in parts of the code)
* Codechange: Renamed some variables and arguments to better represent what they contain (railbit -> track, bits -> trackdirbits, etc.).
* Codechange: Don't use FindLandscapeHeight() in CmdRemoveSingleRail(), since it returns way too much info. Use GetTileSlope() instead.
* Codechange: [NPF] Removed some unused globals and code from npf.c.
2005-06-16 18:04:02 +00:00
matthijs
65de40f547
(svn r2447) * Add: [NPF] Penalty for road vehicles making turns.
2005-06-16 17:53:40 +00:00
matthijs
9d61f5efe8
(svn r2446) * Made os/debian/rules executable.
2005-06-16 01:25:01 +00:00
matthijs
a4550b02b0
(svn r2445) * Add: "stopall" console command, which forcibly stops all vehicles (useful for debugging).
2005-06-16 00:54:19 +00:00
hackykid
90900802b9
(svn r2444) - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_)
2005-06-15 17:27:14 +00:00
celestar
fd95f78dfc
(svn r2443) -Fix: somehow I delete one line too many :(
2005-06-15 17:18:32 +00:00
miham
870edc7d19
(svn r2442) [Translations] Updated to 2005-06-15 #2 . (27+X strs / all lang)
...
[Translations] 10 strings got added, 8 strings got changed in english.txt, lots of work ahead
2005-06-15 17:09:24 +00:00
celestar
c7de834059
(svn r2441) -Feature: You can now give transfer order to set up feeder systems
2005-06-15 16:58:15 +00:00
hackykid
15b0c3b469
(svn r2440) - Fix: [newgrf] Fix the spritesorter to handle overlapping sprites properly, this fixes display problems with really short wagons. (algorithm by patchman, ported by therax)
...
- Fix: [newgrf] Too short wagons could break the 'follow next vehicle' code used in the traincontroller. Clamp better to prevent this.
2005-06-15 14:04:48 +00:00
miham
bae01fd636
(svn r2439) [Translations] Updated to 2005-06-15 (6 strs / 3 lang)
2005-06-15 09:28:02 +00:00
hackykid
7afe5fc5a9
(svn r2438) - Feature: New display option, 'transparent station signs', makes station signs transparent instead of using a solid bar to draw text on (peter1138)
2005-06-14 10:59:05 +00:00
miham
8097af80e1
(svn r2437) [Translations] Updated to 2005-06-10 (28 strs / 5 lang)
2005-06-10 07:41:26 +00:00
Darkvater
6e052ccca2
(svn r2436) - Fix: Deleting canals under bridges removes bridges first in certain configurations (peter1138)
2005-06-09 13:54:08 +00:00
miham
5f46f6bd25
(svn r2435) [Translations] Updated to 2005-06-08 (11 strs / 1 lang)
2005-06-08 15:13:50 +00:00
tron
aab5561c55
(svn r2434) Fix some defects in r2433
2005-06-08 09:03:29 +00:00
Darkvater
c37cf285ce
(svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
2005-06-07 21:37:00 +00:00
tron
d2364f1d51
(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
2005-06-07 18:13:49 +00:00
hackykid
f723540fbb
(svn r2431) - Fix: [newgrf] clamp() instead of assert() on the result of the vehicle length calculation, as it can depend on external input. (thanks tron)
2005-06-07 16:44:54 +00:00
miham
82964a13f0
(svn r2430) [Translations] Updated to 2005-06-07 (118 strs / 8 langs)
2005-06-07 16:11:19 +00:00
hackykid
dc75e1d58b
(svn r2429) - Fix: Oops, forgot to increase the size of the autoreplace window to fit the extra info from powered wagons.
2005-06-07 01:21:56 +00:00
hackykid
daae0d315a
(svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.
...
- Codechange: Remove some magic numbers (PALETTE_CRASH)
2005-06-06 22:44:11 +00:00
hackykid
5e8b14df3e
(svn r2427) - Fix: CmdMoveRailVehice; Prevent possible assertion failure when moving vehicles within one chain.
2005-06-06 21:32:04 +00:00
miham
134e689aff
(svn r2426) [Translations] Updated to 2005-06-06 #2 . (133 strs / 12 langs)
2005-06-06 19:18:40 +00:00
Darkvater
ab7bf18d23
(svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron)
...
- CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code
2005-06-06 17:30:52 +00:00
Darkvater
4198418d77
(svn r2424) - Fix: backport the smallmap_gui.c changes from the map/ branch into trunk. This also implicitely fixes the bug where the game would crash in certain resolutions with certain minimap masks when dragged partly outside the game-area.
2005-06-06 15:58:58 +00:00
hackykid
16ab34615f
(svn r2423) - CodeChange: Include first_engine in the train cache, instead of calculating it all over the place.
...
- Fix: Also recalculate the train cache values for 'wagon chains' (in the depot without an engine), to avoid possible desyncs later.
- Fix: Make CmdMoveRailVehicle update the caches of the correct trains in all cases.
2005-06-06 14:26:15 +00:00
Darkvater
871e21e991
(svn r2422) - Codechange: magic number fix in network window (anonymous)
2005-06-06 14:11:15 +00:00