Commit Graph

2040 Commits

Author SHA1 Message Date
miham
35e614b436 (svn r2495) [Translators] Updated translations to 20050628 (1 lang(s)) 2005-06-28 17:45:15 +00:00
hackykid
77d99eb807 (svn r2494) - Fix: [newgrf] Dont assume a spriteset can only have 4 or 8 sprites. 2005-06-27 21:34:31 +00:00
miham
f81766c3fd (svn r2493) [Translators] Updated translations to 20050627 (1 lang(s)) 2005-06-27 17:45:21 +00:00
tron
5cbd8b598c (svn r2492) Remove some pointless casts and fix some nearby indentation 2005-06-27 06:57:24 +00:00
celestar
48ff5e39dc (svn r2491) -Fix: Solved a performance problem introduced in r2467. While busy
committing, restore the sort order in the Makefile
2005-06-26 21:59:21 +00:00
miham
23314a0e3e (svn r2490) [Translators] Updated translations to 20050626 (2 lang(s)) 2005-06-26 17:45:13 +00:00
tron
7a372227ff (svn r2489) static, bracing style and use clamp() 2005-06-25 19:08:58 +00:00
miham
e8fedc90ec (svn r2488) [Translators] Updated translations to 20050625 (1 lang(s)) 2005-06-25 17:45:40 +00:00
tron
9617614b04 (svn r2487) Replace TILE_XY by TileXY/TileDiffXY 2005-06-25 16:44:57 +00:00
tron
2b73dec567 (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY 2005-06-25 06:15:43 +00:00
tron
80760b4f69 (svn r2485) Missed two uint -> TileIndex, thanks _Luca_ 2005-06-24 17:41:08 +00:00
orudge
b448b94fb2 (svn r2484) - Fix: Update Watcom project file (add rail.c) 2005-06-24 13:55:29 +00:00
tron
a733fede9b (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" 2005-06-24 12:38:35 +00:00
miham
6699ee79d3 (svn r2482) [Translators] Updated translations to 20050623 (1 lang(s)) 2005-06-23 18:32:41 +00:00
miham
333ef1569a (svn r2481) [Translators] Updated translations to 20050623 2005-06-23 18:07:17 +00:00
miham
4ac51d00a1 (svn r2480) [Test] Removed dummy file 2005-06-23 17:55:21 +00:00
miham
6fb05565cd (svn r2479) [Test of the new language-commiter system, please ignore it!] 2005-06-23 17:48:54 +00:00
miham
01f0e594f6 (svn r2478) [Translations] Updated to 2005-06-23 (?? str / 10 langs) 2005-06-23 13:35:41 +00:00
truelight
658271a65f (svn r2477) -Nothing: SVN Mirror Test 2/2 2005-06-23 13:21:10 +00:00
truelight
3f5e93f623 (svn r2476) -Nothing: SVNMirror Test File 2005-06-23 13:00:45 +00:00
celestar
cc6fe1263b (svn r2475) -Fix: [ 1214982 & 1217473 ] realistic acceleration problem. (glx) 2005-06-23 06:19:06 +00:00
hackykid
c1867e3fcc (svn r2474) - Fix: [newgrf] Some road vehicle action 0 properties were loaded as the wrong type (int8,int16,int32) causing undefined results. (like cargo types being wrong) 2005-06-23 01:26:54 +00:00
matthijs
c074f4e935 (svn r2473) - Add: VehicleMayEnterTile(), which checks if the tile owner of a tile is correct for a vehicle to enter it. Based upon glx's code.
- Fix: [ 1203769 ] [NPF] NPF tries to plan over bridges, through tunnels, over level crossings of other players. (glx)
- Codechange: Renamed TRANSPORT_MAX to TRANSPORT_END and added INVALID_TRANSPORT.
- Codechange: Moved IsLevelCrossing() from tile.h to rail.h
- Add: GetCrossingTransportType(), which returns the transport type (road, rail) of both tracks on a level crossing.
- Removed old TODO that was fulfilled already.
2005-06-22 22:38:18 +00:00
miham
7b8d39cd30 (svn r2472) [Translations] Updated to 2005-06-22 (1 str / 1 lang + 1 string modified in english.txt lately) 2005-06-22 18:00:48 +00:00
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