Commit Graph

1944 Commits (948d9f518fba83c2dd222015c7526d30170fc302)
 

Author SHA1 Message Date
matthijs 948d9f518f (svn r2449) * Added an extra warning to the stopall command, "For debugging only!". 19 years ago
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.
19 years ago
matthijs 65de40f547 (svn r2447) * Add: [NPF] Penalty for road vehicles making turns. 19 years ago
matthijs 9d61f5efe8 (svn r2446) * Made os/debian/rules executable. 19 years ago
matthijs a4550b02b0 (svn r2445) * Add: "stopall" console command, which forcibly stops all vehicles (useful for debugging). 19 years ago
hackykid 90900802b9 (svn r2444) - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_) 19 years ago
celestar fd95f78dfc (svn r2443) -Fix: somehow I delete one line too many :( 19 years ago
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
19 years ago
celestar c7de834059 (svn r2441) -Feature: You can now give transfer order to set up feeder systems 19 years ago
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.
19 years ago
miham bae01fd636 (svn r2439) [Translations] Updated to 2005-06-15 (6 strs / 3 lang) 19 years ago
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) 19 years ago
miham 8097af80e1 (svn r2437) [Translations] Updated to 2005-06-10 (28 strs / 5 lang) 19 years ago
Darkvater 6e052ccca2 (svn r2436) - Fix: Deleting canals under bridges removes bridges first in certain configurations (peter1138) 19 years ago
miham 5f46f6bd25 (svn r2435) [Translations] Updated to 2005-06-08 (11 strs / 1 lang) 19 years ago
tron aab5561c55 (svn r2434) Fix some defects in r2433 19 years ago
Darkvater c37cf285ce (svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138) 19 years ago
tron d2364f1d51 (svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[] 19 years ago
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) 19 years ago
miham 82964a13f0 (svn r2430) [Translations] Updated to 2005-06-07 (118 strs / 8 langs) 19 years ago
hackykid dc75e1d58b (svn r2429) - Fix: Oops, forgot to increase the size of the autoreplace window to fit the extra info from powered wagons. 19 years ago
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)
19 years ago
hackykid 5e8b14df3e (svn r2427) - Fix: CmdMoveRailVehice; Prevent possible assertion failure when moving vehicles within one chain. 19 years ago
miham 134e689aff (svn r2426) [Translations] Updated to 2005-06-06 #2. (133 strs / 12 langs) 19 years ago
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
19 years ago
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. 19 years ago
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.
19 years ago
Darkvater 871e21e991 (svn r2422) - Codechange: magic number fix in network window (anonymous) 19 years ago
Darkvater 095cdb9df1 (svn r2421) - how come you didn't get committed you evil file? Be gone! 19 years ago
Darkvater c3c69ff5cb (svn r2420) - Codechange: magic number elminitation of cursorsprites. 19 years ago
Darkvater f87df93a70 (svn r2419) - Fix: saving no longer changes your cursor if it is in a non-mouse state.
- Fix: autosaving/loading; it no longer returns a fail code when saving is already in progress. In the case of a load, the game pauses to wait for the save to finish. (glx)
- Fix (regression): fix a bug in the 'buggy load' code where a wrong offset was used for the LZO format.
19 years ago
Darkvater b3779d63ae (svn r2418) - Fix: typo 19 years ago
Darkvater a6f2b8ae74 (svn r2417) - Fix: threads on morphos are apparently unexistent, so implement stubs for them (tokai) 19 years ago
miham 8d3ad041e0 (svn r2416) [Translations] Updated to 2005-06-06 (lots of strings has changed in english, therefore further changes ahead..) 19 years ago
hackykid f847736b5d (svn r2415) - Fix: [newgrf] Powered Wagons - Don't assume an undefined callback will fail. 19 years ago
hackykid 26e87892e2 (svn r2414) - Feature: [newgrf] Implement powered wagons, and the callback that goes with it. 19 years ago
hackykid eebe82c983 (svn r2413) - Codechange: Rewrite the displaying of purchase details a bit, make it easyer to add lines later.
- Add: In the purchase details for trains display "(refittable)" after the capacity if the vehicle is refittable.
19 years ago
hackykid c4b426ef8c (svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch) 19 years ago
hackykid e878e4d815 (svn r2411) - Codechange: Have trains cache stuff like consist power/weight/max speed instead of recalculating it each time.
- Fix: Station ratings now depends on the max speed of a consist, without being affected by other speed limits from realistic acceleration.
19 years ago
hackykid b30a413cfe (svn r2410) - Fix: [newgrf] When resolving callbacks, dont ignore wagon overrides. 19 years ago
tron 24fd817420 (svn r2409) Missed one _map_owner -> IsTileOwner() 19 years ago
tron ff0030936e (svn r2408) Introduce SetTileOwner() and use it 19 years ago
tron a9b95b3cbb (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner 19 years ago
miham 6b3d3a0f8a (svn r2406) [Translations] Updated to 2005-06-04 (42 strs / 11 langs) 19 years ago
tron 1273f21ff5 (svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing 19 years ago
tron 793eba3a3a (svn r2404) assert that GetTileOwner() isn't called for tiles, which don't store owner information 19 years ago
tron 80aa6af8e3 (svn r2403) if cascade -> switch 19 years ago
miham 92b79ecf95 (svn r2402) [Translations] Updated to 2005-06-03 (10 strs / 5 langs) 19 years ago
hackykid 52ebf02f2f (svn r2401) - Fix: [newgrf] Finish up callback mechanism, implement 'refit capacity' callback slightly more correct. 19 years ago
hackykid 6849e086f5 (svn r2400) - Fix: [newgrf] Load power for dual-headed engines correctly 19 years ago