Commit Graph

8591 Commits (b76e328898de77a3770ed32943a2919174c68e83)
 

Author SHA1 Message Date
smatz b76e328898 (svn r12171) -Fix [FS#609]: return correct bridge price for AI when DC_QUERY_COST is set (patch by Raimar Falke)
It never happens in current code, but it is better to be ready for it
17 years ago
smatz b389425dda (svn r12170) -Fix: do not draw trees along road and street lights under low bridges (spotted by _minime_) 17 years ago
smatz f003a25785 (svn r12169) -Change [FS#1696]: play sounds when there is only small part of tile/vehicle visible too (original idea by Dominik)
It improves the game appearance when playing with very small screen resolution
17 years ago
smatz 3d5462f103 (svn r12168) -Fix: behave a bit better when 'R' is pressed during rail station dragging 17 years ago
smatz d3d126f999 (svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed 17 years ago
smatz d7a72c7002 (svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC) 17 years ago
glx 19710f6fd0 (svn r12165) -Fix [FS#1652, FS#1773]: buffer overflow when drawing scrolling news 17 years ago
peter1138 89e0b522e2 (svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in 17 years ago
smatz 1aa5237461 (svn r12163) -Fix [FS#1705]: if a train is 'stopping' when entering a depot, do not let it leave again 17 years ago
smatz 68fda40e4f (svn r12162) -Fix [FS#1757]: towns shouldn't build over houses owned by another town 17 years ago
smatz 423864a101 (svn r12161) -Fix: towns will no longer build houses > 1x1 there where should be road (with 2x2, 3x3 grid town layouts) 17 years ago
smatz 84d0081ebd (svn r12160) -Fix [FS#1744]: remove the arbitrary limit of 64 waypoints per town, so weird things won't happen anymore 17 years ago
belugas 738491992a (svn r12159) -Codechange: Enumify some widget magical numbers
-Cleanup: apply a bit of code style.  Mostly re-indenting switch cases
17 years ago
belugas a6fbbf92fc (svn r12158) -Codechange: merge all the sprite recolouring mapping under a single function
-Fix: Handle the bridge recolouring mapping as the other features.  Although not specified by the specs, it seems to be implicit.
17 years ago
belugas 6ff5a8a29f (svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
-Codechange: Replace two magic numbers with according sprite names
17 years ago
smatz 7d45415b3d (svn r12156) -Fix (r11454): Chance16I was now biased towards zero - round to nearest now 17 years ago
glx d7924424ac (svn r12155) -Fix (r12154): some warnings (always compile before commit) 17 years ago
glx a148985087 (svn r12154) -Codechange: removed a magic number 17 years ago
smatz 55b0146498 (svn r12150) -Fix (r12143): compiler warnings - possible use of uninitialised variable 17 years ago
frosch a13899ee8e (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID 17 years ago
frosch ae996a270b (svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID 17 years ago
frosch 03315e88e3 (svn r12147) -Codechange: Use macros to build DrawTileSprites-tables in station_land and unmovable_land. 17 years ago
frosch 4f394c19e2 (svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land. 17 years ago
belugas f3adf67a7b (svn r12145) -Codechange: includes should be at the top of the source file
-Codechange: undefine a defined macro once work is finished, just in case
17 years ago
peter1138 a141442ff7 (svn r12144) -Codechange: Adjust aircraft slowing algorithm so that very fast
aircraft slow down more rapidly than slower aircraft. This prevents them 
from reaching the end of the runway at high speed, and also stops slow 
aircraft from slowing down too much at the start of the runway.
17 years ago
peter1138 359771c406 (svn r12143) -Fix (r8038): Engine::preview_player does not contain a Player ID. Rename this to preview_player_rank and change back to a uint8 to avoid confusion. 17 years ago
frosch 7c528a6ab7 (svn r12142) -Fix [FS#1766]: Callback 0x3D always gets a cargobit in var 0x18, independent of grf version. 17 years ago
frosch 514df81e27 (svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them. 17 years ago
belugas 6c93216641 (svn r12140) -Codechange: A bit of code style fixes(Geektoo). 17 years ago
peter1138 be47b47507 (svn r12139) -Fix (r12124): The global variable value should be returned, not the variable. 17 years ago
smatz e081e0712f (svn r12138) -Fix: do not allow adding tram to rail-road crossing when there is a vehicle on it 17 years ago
peter1138 6d333e5d3e (svn r12137) -Fix [FS#1769]: Show cargo capacity for articulated vehicles correctly in the purchase list. Multiple cargo types can also now been shown. 17 years ago
belugas a36e666ca5 (svn r12136) -Fix(r12135): Code style compliance and... code style as such 17 years ago
belugas 81b47a628f (svn r12135) -Codechange: Road and rail bridge selection windows were identical apart the caption. So remove one window definition and set manually the caption accordingly.
-Codechange: prepare the "type" of bridge parameter only once, at the beginning of the selection process.  Makes less magic around.
17 years ago
smatz fe48d0be21 (svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
17 years ago
peter1138 833a00def9 (svn r12133) -Fix: Vehicle sorting by max speed did not work properly for trains. Instead of trying to work it out again, just use the cached values... 17 years ago
smatz 391898b47a (svn r12132) -Cleanup: convert pathfinder selection from if/else to switch/case at many places 17 years ago
smatz 4c5dde140b (svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9 17 years ago
smatz 81067ddfdf (svn r12130) -Cleanup (r12129): remove now unused strings from all language files 17 years ago
smatz a3e3cd7d46 (svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick) 17 years ago
peter1138 3abf3e3fa4 (svn r12128) -Codechange: Replace last use of TrainPlayLeaveStationSound(v) with v->PlayLeaveStationSound(), and remove wrapper function. 17 years ago
belugas f24e231e9a (svn r12127) -Codechange: Use a variable instead of calling the same function a few times. Again. Just a different value. 17 years ago
belugas d4fd1120d1 (svn r12126) -Codechange: Use a variable instead of calling the same function a few times 17 years ago
peter1138 32691590fb (svn r12125) -Codechange: Remove redundant signal lookup table, and document why normal electric signals are handled specially. 17 years ago
frosch 0aece5ed6b (svn r12124) -Codechange: Move newgrf-variables that are common to VarAction2 and Action7/9/D to their own function.
-Fix: Add some variables that were missing in one or both cases.
17 years ago
glx ccfae56690 (svn r12123) -Add: generate.vbs script to allow project files generation for users unable to run generate bash script 17 years ago
peter1138 d6670eed6b (svn r12122) -Codechange: Add framework for generic feature callbacks, along with some parts for AI use. 17 years ago
peter1138 25f0a890ae (svn r12121) -Fix [FS#1764]: Drop down item indexes are now an int instead of a byte (Yexo) 17 years ago
peter1138 aefb78fcdf (svn r12120) -Cleanup: const-ify parameters when checking for same cargopacket source. 17 years ago
peter1138 57aacb50c8 (svn r12119) -Codechange: Rename grfspec_feature to match code style, and expose in header for use elsewhere. 17 years ago