Commit Graph

3160 Commits (cf250390c5bd2a4980197b1801630fac80944fd3)

Author SHA1 Message Date
belugas 2f8e2743d7 (svn r12272) -Codechange: A bit of code style fixes (tabs instead of spaces), one space too many before macro definition and rename marco MB (MakeBridge) for MBR(MakeBRidge) 17 years ago
belugas ed6bfe4964 (svn r12263) -Codechange: Give meaning to the concrete bridge sprites arrays.
Add macro MR (PALETTE_TO_STRUCT_RED) for easier viewing.
Still more to come.
17 years ago
belugas adb1507e4e (svn r12262) -Codechange: Give meaning to the wooden bridge sprites arrays.
Add macro MN for easier viewing.
More to come.
17 years ago
glx 6f55c7e0e8 (svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window 17 years ago
glx a857d32676 (svn r12258) -Fix: GetProductionAroundTiles() may fail if only the second production slot exists 17 years ago
KUDr ff7e789f83 (svn r12252) -Fix [FS#1801]: Broken FollowTrack_t related functions (thanks michi_cc).
-Fixed by removing FollowTrack_t structure and all related functions. Their purpose was to allow to call track followers from C code. They were:
  1. never used
  2. obsoleted by switching to C++
17 years ago
frosch bde573d1e9 (svn r12247) -Fix (r9315): Town variables 0x9E to 0xAD (company ratings) returned wrong values. 17 years ago
frosch e464cbcfd6 (svn r12246) -Fix (r10460): Proper usage of Clamp(). 17 years ago
smatz de8c95506b (svn r12244) -Fix (r12150): typo resulting in no players are given the engine preview offer 17 years ago
glx c78b1b388e (svn r12239) -Fix [FS#1800] (r9729): inverted comments for SetRailType() and GetTrackBits() (michi_cc) 17 years ago
bjarni 801bd045fe (svn r12231) -Cleanup (r12230): [autoreplace] moved Vehicle::NeedsAutorenewing() and added comments 17 years ago
bjarni 973d1fd6ad (svn r12230) -Codechange: [autoreplace] made a function to detect if a vehicle needs autorenewing
This will remove duplicated code and ensure that the check is consistent
17 years ago
miham 4e90a42f0c (svn r12218) -Update: WebTranslator2 update to 2008-02-23 12:39:10
brazilian_portuguese - 13 fixed, 51 changed by fukumori (64)
bulgarian  - 12 fixed by thetitan (12)
catalan    - 13 fixed by arnaullv (13)
czech      - 13 fixed, 8 changed by Hadez (21)
dutch      - 13 fixed by habell (13)
estonian   - 13 fixed, 3 changed by kristjans (16)
french     - 13 fixed, 20 changed by glx (33)
hungarian  - 13 fixed by miham (13)
italian    - 13 fixed, 8 changed by lorenzodv (21)
japanese   - 13 fixed by ickoonite (13)
korean     - 14 fixed by leejaeuk5 (14)
portuguese - 2 fixed by nars (2)
slovak     - 13 fixed by lengyel (13)
slovenian  - 1 fixed by Necrolyte (1)
spanish    - 13 fixed by eusebio (13)
swedish    - 1 fixed by ChrillDeVille (1)
ukrainian  - 13 fixed, 1 deleted, 124 changed by mad (138)
17 years ago
peter1138 f6e4dc4d8c (svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it. 17 years ago
belugas 67bf63ddff (svn r12208) -Codechange: Alignment of params makes the code easier to read. 17 years ago
peter1138 29e4c60348 (svn r12207) -Change: rail running costs are engine class, not rail type 17 years ago
belugas 35356c97e7 (svn r12206) -Fix: A comma is not a rare resource. Do not hesitate to use it when needed. 17 years ago
peter1138 0e997be11e (svn r12205) -Codechange: rename RailVehicleInfo::running_cost_base to running_cost, inline with other vehicle types (It is the factor, not the base) 17 years ago
smatz e0b0ecc5a7 (svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets 17 years ago
frosch 91297d4732 (svn r12203) -Fix (r12199): Make trains pay attention to signals again. 17 years ago
peter1138 ab1fa8b8fc (svn r12202) -Fix: When loading a savegame fails, don't start creating a new game, just go straight back to the intro screen. 17 years ago
smatz e5709f3ad8 (svn r12201) -Fix (r12060): compilation warnings - uninitialized variable when compiling with assert disabled 17 years ago
smatz 988b5a9111 (svn r12200) -Fix: force AI to build rail or road instead of bridges if possible, so it doesn't build bridges everywhere 17 years ago
frosch 7f3d56041b (svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus(). 17 years ago
peter1138 86eec55b8a (svn r12198) -Fix [FS#1789]: "Transparent buildings" now only toggles buildings, so show tick when buildings are transparent. 17 years ago
smatz 9bdb194b2a (svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
17 years ago
smatz 2657090b1f (svn r12195) -Fix [FS#1787](r12100): there can be oil rigs at map borders, do not set water class for them 17 years ago
smatz 7dbb21c69b (svn r12194) -Codechange: apply coding style on enum TrainSubtype 17 years ago
frosch 1d120c51b8 (svn r12193) -Codechange: Rename a magic variable, give it a decent type, and remove a 'goto'. 17 years ago
smatz 44a8293364 (svn r12192) -Fix: clamp various town variables to 16bit prior to returning the value 17 years ago
frosch ca2eb0676c (svn r12191) -Fix: Do not start overtaking if the RV reaches wrong-way one-way-road in the next tiles. 17 years ago
smatz 70b7bfe9c8 (svn r12190) -Fix [FS#1786](r8080): YAPF always shows 0ms PF time in debug for debug level 2 (patch by IguannaB) 17 years ago
smatz 0357c4306c (svn r12189) -Codechange: mark some functions in train_cmd.cpp inline (called once or very short) 17 years ago
smatz 32d8ac2073 (svn r12188) -Codechange [FS#1782]: do not check twice for correct rail owner (patch by Vikthor) 17 years ago
belugas 20035ca48d (svn r12187) -Add: frosch as dev. Last, but not least 17 years ago
smatz 6d6e44442d (svn r12186) -Fix [FS#1784](r12169): assert when trying to play tile sound at NW border of map (placing buyos, leveling land) 17 years ago
smatz 7a5855fec2 (svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc) 17 years ago
smatz a53594ebd4 (svn r12184) -Fix: take into account possible loan when AI is deciding which bridge to build, so it won't build wooden bridges everytime 17 years ago
smatz b2721c08fc (svn r12183) -Codechange: give a better error message when building road over existing road with vehicle on it, or do not fail at all 17 years ago
peter1138 1ba2ae69e6 (svn r12180) -Fix: Test purchase list loading/loaded sprites instead of unconditionally returning a possibly non-existant sprite. 17 years ago
smatz 4a329de942 (svn r12179) -Codechange: use GetCrossingRailTrack() and GetCrossingRailAxis() to improve code readability 17 years ago
smatz 97013cd8c4 (svn r12178) -Codechange: use the 'side' parameter in TrainController and TrainCheckIfLineEnds to simplify the code 17 years ago
smatz 9f619f91b3 (svn r12177) -Codechange: use 'side' parameter in GetTileTrackStatus so there can be less checks in pathfinders for depots/stations/tunnels/bridges 17 years ago
smatz ada241e279 (svn r12176) -Codechange: one division less when playing sounds (patch by Dominik) 17 years ago
peter1138 c05df5b051 (svn r12175) -Fix (r12174): Ensure the patches window is centred properly. 17 years ago
peter1138 d85484c637 (svn r12174) -Codechange: Make the patches window dynamically resize to the largest patch tab, so adding patch options is simply a case of adding to the lists. 17 years ago
peter1138 70aa24320e (svn r12173) -Cleanup: Minor codestyle fixes. 17 years ago
peter1138 e826a69e46 (svn r12172) -Codechange: Allow buttons to resize in NewGRF settings window 17 years ago
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
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
belugas d465b23ee2 (svn r12118) -Codechange: Put the two descriptions of bridges in an array instead of two single variables, following the transport type it represents 17 years ago
smatz 05169f53be (svn r12115) -Codechange: move malloc/realloc error messages to separate file to spare 4-8kB of binary size 17 years ago
peter1138 96525b3edd (svn r12114) -Fix (r12111): missed one Bridge -> BridgeSpec 17 years ago
belugas 6a717aa49b (svn r12111) -Codechange: Rename Bridge to BridgeSpec, out of consistensy with other Specs in used. 17 years ago
smatz a9ce2a7122 (svn r12109) -Fix [FS#1745](r8973): use tile index 0 for planes in the air, so it cannot have an invalid tile index 17 years ago
peter1138 0f3a5fc99d (svn r12108) -Fix [FS#1753]: X/Y axis swap for station tiles in GetNearbyTile() was wrong way around. 17 years ago
belugas c21787238c (svn r12107) -Codechange: Add and use the typedef BridgeType 17 years ago
belugas f54a21450a (svn r12106) -Fix(r12105): Kill warnings and raise an error when the transport type is not supported 17 years ago
belugas d2f6320d09 (svn r12105) -Codechange: Use TransportType instead of guessing what kind of bridge we are preparing to build 17 years ago
smatz 4223131cb4 (svn r12104) -Fix (r12103): remember loading indicators transparency settings and make in switchable by Ctrl+9 17 years ago
smatz 17d9c9bf2b (svn r12103) -Feature(tte): separate catenary transparency settings from building transparency settings 17 years ago
maedhros 56a5c2d7c2 (svn r12102) -Feature: Allow locking individual transparency settings so they will not be changed by pressing 'x'. (Roujin) 17 years ago
smatz 0fc6754832 (svn r12101) -Fix (r12100): there are void tiles at MapMaxX,Y - have to substract one to be on water border tiles 17 years ago
smatz b18f96d222 (svn r12100) -Fix (r12042): check for water class of surrounding tiles fails for buoys at map borders 17 years ago
smatz c82d1e3e46 (svn r12098) -Fix: make snow appear on rail tiles dependant on track height, not on height of the lowest part of the tile 17 years ago
glx 7a20968aaf (svn r12097) -Fix (r654, r1525): loading old, pre savegame version 2, savegames. 17 years ago
smatz 5bfcd657c3 (svn r12096) -Fix: remove leftover property when loading older savegames 17 years ago
smatz 98e81e95a5 (svn r12095) -Fix [FS#1703]: when a company bankrupts, remove drive-through road stops, ship depots and buoys too. Update owners of water and road. 17 years ago
smatz d00bf03012 (svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player property to allow further fixes 17 years ago
smatz a7b786f143 (svn r12093) -Fix: do not set station owner for buoys when merging company 17 years ago
belugas 83de4db1c0 (svn r12092) -Fix(r11532)[FS#1755]: Make sure the production level will not get out of delimited boundaries, while using var result 0D/0E and than multiplying/dividing it.
And use multiply/divide operations instead of shifting.  It does the same, just adds a bit more readability
17 years ago
belugas f26bd05b99 (svn r12091) -Codechange : remove all production level magic numbers and replace them by enums 17 years ago
belugas 57f4ed3edd (svn r12090) -Codechange : removed a magic number and code style application on enum ExpensesType 17 years ago
smatz 6edbe4a6e7 (svn r12088) -Fix: assert when loading savegame with wrong tiletype at south map borders 17 years ago
glx ec6a1776f3 (svn r12087) -Fix: MSVC warnings 17 years ago
glx 37e27a296e (svn r12086) -Fix [FS#1747] (r11425): check overrides only for industries when mapping newgrf entities to 'real' entities 17 years ago
frosch f476d861d2 (svn r12085) -Fix(r12058): Road vehicles could get stuck, when NPF told them to reverse on junction tiles. (spotted by SmatZ) 17 years ago
frosch 9e05e0ea01 (svn r12084) -Fix: 'Early retirement'-properties are signed. 17 years ago
belugas 70241f804b (svn r12081) -Codechange: Rename table/roadveh.h to table/roadveh_movment.h
It is more descriptive name and it will not upset the generate script anymore
17 years ago
glx dbab177422 (svn r12080) -Fix: update waypoint signs when changing language 17 years ago
peter1138 1b5f8df8b1 (svn r12079) -Fix: Use search paths when opening console scripts. 17 years ago
glx b169f89880 (svn r12076) -Fix: when reusing a renamed deleted waypoint, keep the new name 17 years ago
peter1138 b19704f661 (svn r12075) -Codechange: Remove explicit numbering on command enum, and remove blanks from command list where old commands have been removed. 17 years ago
smatz de489f338a (svn r12074) -Cleanup: use C++ variable scope and declaration in DrawTile_Trees() 17 years ago
smatz b1ffae96ce (svn r12073) -Codechange: stop drawing trees a bit earlier when they are invisible 17 years ago
frosch 4d41baba5b (svn r12072) -Fix: Make docks at sea flood neighboured tiles. 17 years ago
frosch 113525c40b (svn r12071) -Feature(ette): Draw river- and canal-edges under docks and shipdepots. 17 years ago
frosch 9b2ca61044 (svn r12070) -Cleanup(r12042): Water-owner of shipdepots is no longer needed. Removed. 17 years ago
belugas 831e678120 (svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge. 17 years ago
belugas e3ca12a411 (svn r12068) -Fix(r12067): forgot a return 17 years ago
peter1138 879cce2b8b (svn r12067) -Cleanup: Codestyle on loading object references 17 years ago
belugas 7f5f48281c (svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpec
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec
-Codechange: Rationalize the use of Bridge type pointer
17 years ago
belugas 23c8664593 (svn r12065) -Codechange : removed a now useless declaration ( orig_bridge ) 17 years ago
belugas 0ee48fc6d3 (svn r12064) -Codechange : Give grf bridges their own ResetBridges function, and put bridge spec in table/bridge_land.h, where it should be. 17 years ago
smatz 91456a93f0 (svn r12063) -Cleanup: use C++ indenting and variable scope/declaration in BuildTownHouse() 17 years ago
smatz 4f2f7f52a6 (svn r12062) -Fix: possible deadlock when there are no houses available to build at given tile
-Fix: houses with zero probability could be built
17 years ago
smatz 5dacd82903 (svn r12061) -Cleanup: since r12060, DC_FORCETEST is not used anymore 17 years ago
smatz e9b22d7c70 (svn r12060) -Fix: do not clear tiles when the town won't be able to build any buildings anyway
-Fix: allow building 2x2 building on slopes if not explicitly forbidden
-Fix: it was possible to build 2x1 and 1x2 buildings on slopes even if it was not allowed
17 years ago
glx b5055f73fe (svn r12059) -Fix (r12041): industries prop 24 is a word 17 years ago
frosch a62beb101b (svn r12058) -Fix: Teach NPF where road vehicles and trams can reverse.
-Fix: Ships can drive through opponents' ship depots. (Thanks SmatZ)
-Codechange: Split NPFFollowTrack() in smaller parts.
17 years ago
smatz ebba0d7c71 (svn r12057) -Fix: slowdown train when approaching 90deg turn when 90deg turns are forbidden 17 years ago
frosch 99817bd5f0 (svn r12056) -Fix [FS#1704]: Enable YAPF to start searching inside a wormhole. 17 years ago
smatz a783cb333b (svn r12055) -Fix: another way to fix AI trying to build road through depots 17 years ago
peter1138 71b0d5f091 (svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types... 17 years ago
maedhros 0cb2a7fa17 (svn r12052) -Fix [FS#1737] (r11494): The cargo translation table was loaded at the right time, but all the other global variables were now loaded too early. ;) 17 years ago
rubidium 4a4f4b7459 (svn r12050) -Fix: random_func broke for desync debug. 17 years ago
smatz 70a6179b3b (svn r12049) -Fix (r10496)(r10619): memset on multibyte array with wrong byte count 17 years ago
belugas 260b32e736 (svn r12048) -Cleanup: Move some strings in the original bridge array, adjust documentation a bit. 17 years ago
belugas e5de785e1d (svn r12045) -Feature-ette(newGRF): Add support for var 12, Variational Action 2 17 years ago
rubidium bdadefd0d2 (svn r12044) -Fix [FS#1741]: crash when centering on a vehicle (aircraft) that is outside of the map. 17 years ago
smatz 594d6b663c (svn r12043) -Fix [FS#1736]: allow building transmitters and lighthouses on tree tiles 17 years ago
peter1138 c05d10dd35 (svn r12042) -Fix [FS#1676]: Reimplement how rivers and canals are stored in the map, allowing the sea/river/canal status to also be
stored for buoys, docks, locks and depots. All these are now allowed on rivers and removal of them will revert to the 
original water type.
17 years ago
belugas 6e761a18d6 (svn r12041) -Codechange: Add the loader and the property for action 00 industries, prop 24, nearby station name.
No assignation yet, no real work either.
17 years ago
belugas 33e63a3adc (svn r12040) -Codechange: Change IsOrderListShared from a simple function to a class member(MagicBuzz). 17 years ago
peter1138 09ce7f76e9 (svn r12038) -Fix: Change ownership of or remove statues when merging/bankrupting companies. 17 years ago
glx 7ce12e50da (svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) with an OnNewDay method in the Vehicle class 17 years ago
peter1138 f725b795af (svn r12036) -Fix: For station tiles, only get road types for road stops. 17 years ago
frosch 781828c1b6 (svn r12035) -Fix [FS#1702]: Teach YAPF where trams can reverse, and where not. 17 years ago
belugas df30c7113a (svn r12034) -Codechange: A bit of code style cleaning, regarding comments.
Thanks to MagicBuzz who spotted yet another non-converted file
17 years ago
smatz cc59c5bd23 (svn r12033) -Fix: do not show train speed as zero after loading paused game 17 years ago
peter1138 7457d8807a (svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player. 17 years ago
peter1138 ef66b08784 (svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing. 17 years ago
miham b523464175 (svn r12030) -Update: WebTranslator2 update to 2008-01-31 19:43:58
brazilian_portuguese - 1 changed by tucalipe (1)
italian    - 2 changed by lorenzodv (2)
japanese   - 7 fixed by ickoonite (7)
17 years ago
frosch 23e6411fb7 (svn r12029) -Feature: Allow trees on shore. 17 years ago
frosch 90ee6a16ab (svn r12028) -Codechange: Split common part of station var 0x67, house var 0x62, indtile var 0x60 and industry var 0x62 to 'newgrf_commons.cpp'. 17 years ago
orudge d0aa5c4a3c (svn r12026) -Update: 'exit' is consistent with UK English in OpenTTD, 'quit' with US English 17 years ago
miham 6b016b95f9 (svn r12025) -Update: WebTranslator2 update to 2008-01-30 19:43:26
czech      - 1 fixed by Hadez (1)
estonian   - 11 changed by kristjans (11)
french     - 2 changed by belugas (2)
korean     - 1 changed by darkttd (1)
spanish    - 5 fixed by eusebio (5)
17 years ago
frosch f91c752d8b (svn r12024) -Codechange: Reduce code duplication inside tree_cmd.
-CodeChange: When rocks get removed while planting trees, barren the ground.
-Fix: In one case trees could spread under bridges.
17 years ago
frosch 9f482888b5 (svn r12023) -Fix [FS#1690]: Put a better suited text in the quit-dialog. 17 years ago
belugas e877189057 (svn r12022) -Revert(r12018): Invisible trees are now separate from the building concept.
So when you want invisible trees, just select the option of the same name in the Patch Options and toggle transparency of trees.
More to come on the saga of Invisibility. So stay tuned.
17 years ago
skidd13 bd1115e7ff (svn r12021) -Cleanup: Make some parts of the town growth a bit more descriptive
-Codechange: Remove some needless checks
17 years ago
frosch ccb13bdd52 (svn r12020) -Documentation: Correct description of TropicZone. 17 years ago
peter1138 1268a70466 (svn r12019) -Codechange: Add support for passenger engine designation for AI-use, NewGRF property 0x08 for trains. 17 years ago
belugas 6ee4ed8bf9 (svn r12018) -Fix(FS#1721,r9563): Restore initial intent on the invisible tree while transparent building patch setting 17 years ago
rubidium 3e90a16cfc (svn r12017) -Fix: when you have more than 9 network interfaces you'll enter the wonderfull world of overflows. 17 years ago
egladil dbe2c7582d (svn r12016) -Fix (r12003): os x compilation was broken again ;) 17 years ago
peter1138 3e017833b2 (svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings. 17 years ago
rubidium 9e7ad199b5 (svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope. 17 years ago
frosch ab70871734 (svn r12013) -Fix: When modifying watered tiles, mark neighboured canals and rivers dirty in more cases. 17 years ago
frosch addab235de (svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key. 17 years ago
frosch 31842d7b3e (svn r12011) -Fix [FS#1701]: Do not consider one-corner-raised-shores to be watered tiles from all sides. 17 years ago
smatz df629c7cf0 (svn r12010) -Fix (r11994): build tramway window should use STR_WHITE_TRAMWAY_CONSTRUCTION 17 years ago
peter1138 c4707760cf (svn r12009) -Fix [FS#1707]: Avoid loading sample.cat if it 'looks' incorrect, and avoid later null pointer dereferences by moving volume lookup deeper. 17 years ago
miham bfc1e5d88a (svn r12008) -Update: WebTranslator2 update to 2008-01-29 14:07:31
brazilian_portuguese - 5 fixed, 5 changed by fukumori (4), tucalipe (6)
bulgarian  - 7 fixed by thetitan (7)
catalan    - 1 fixed by arnaullv (1)
danish     - 9 fixed by ThomasA (9)
dutch      - 5 fixed by habell (5)
estonian   - 7 fixed, 12 changed by kristjans (19)
french     - 1 fixed by glx (1)
german     - 6 fixed by moewe2 (6)
italian    - 1 fixed by lorenzodv (1)
korean     - 6 fixed, 11 changed by leejaeuk5 (17)
russian    - 9 fixed by Smoky555 (9)
slovak     - 7 fixed by lengyel (7)
slovenian  - 7 fixed by Necrolyte (7)
swedish    - 6 fixed by ChrillDeVille (6)
ukrainian  - 7 fixed by mad (7)
17 years ago
glx fadeb9ca2e (svn r12007) -Fix (r12003): win32 compilation was broken again ;) 17 years ago
rubidium 3b20e4d09a (svn r12006) -Fix: implement FS#1697 without the nasty side effects as specified in FS#1712. 17 years ago
rubidium 7c310600ba (svn r12005) -Fix [FS#1717]: possible reading from an invalid pointer. Patch by PhilSophus. 17 years ago
rubidium 1b7051768c (svn r12004) -Codechange: refactor the random functions to reduce code duplication. 17 years ago
rubidium 3f104194d6 (svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places. 17 years ago
peter1138 af2429f8e0 (svn r12002) -Cleanup (r11981): Remove obsolete code to skip sprites from indexed GRFs. 17 years ago
frosch 5d9326ff03 (svn r12001) -Fix: When skipping Action 11 or 12, also skip belonging sprites. 17 years ago
frosch b7946e07a6 (svn r12000) -Fix (r11926): If no river NewGRF is loaded, use sloped water from locks. 17 years ago
frosch 02366bce29 (svn r11999) -Fix: Do entrance-slope-check for every tile of railstations. 17 years ago
smatz db50a6d231 (svn r11998) -Fix [FS#1692](r10053): possible remote assert by setting bit 6 of p1 for CMD_REMOVE_ROAD 17 years ago
belugas a1eb524b81 (svn r11997) -Fix(FS#1712, r11985): Remove the code temporary, until a better scheme is implemented. 17 years ago
smatz f22b0127af (svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero speed 17 years ago
maedhros 9aa240dbb6 (svn r11995) -Cleanup (r11994): Change the string names in all the other languages. 17 years ago
maedhros f95fb570ad (svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs. 17 years ago
peter1138 ec1d547889 (svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long. 17 years ago
bjarni f93943ebcf (svn r11992) -Fix (r9905): When building two rail stations close to each other (with control) so they looked like one long track trains would see them as one (spotted and fixed by eddi) 17 years ago
peter1138 f9f917f205 (svn r11991) -Cleanup: Remove strings removed in r11990 17 years ago
peter1138 befe9fb43f (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
cargo waiting list instead of just one. The station view window is now 
resizable to cope with the extra information.
17 years ago
peter1138 191954d8a7 (svn r11989) -Fix: Resize autoreplace window to fit purchase information text if it is too large. 17 years ago
peter1138 c5b749f983 (svn r11988) -Codechange: Add a generic way of changing a widget's size and adjust the widgets around it to suit. 17 years ago
belugas 2ff76007b0 (svn r11987) -Feature[newGRF]: Allow the industry view window to be resized only when callback 3A (Show additional text in industry window) is available for the current industry.
This now allows grf authors to specify longer than 3 lines of text.
17 years ago
belugas ad3c4a39f6 (svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility) 17 years ago
frosch 9d63fd232e (svn r11984) -Fix: Also draw corner shores under rail tracks. 17 years ago
frosch d4dc5e0775 (svn r11983) -Codechange: Add some helper functions for slopes and use them. 17 years ago
frosch d13311e710 (svn r11982) -Revert (r8738): Now we have shores in corners. No need to remove them from TTDP games. 17 years ago
peter1138 e37b88ebfc (svn r11981) -Fix [FS#1698]: Use unicode glyph mapping to fix up missing/shuffled sprites in original data files instead of shuffling or skipping
sprites directly. Some required glyphs were not loaded.
-Fix: Large capital U with grave (Ù) along with some other glyphs are broken in the original data files, so do no display them.
17 years ago
rubidium f037d98ef4 (svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken in such a manner that it triggers an internal compiler error without any clue what of the code is wrong. Even trying to bisect the problem does not give a single line of code that causes the trouble. 17 years ago
skidd13 99325b0553 (svn r11978) -Codechange: Replace some global variables with window owned ones 17 years ago
belugas 7c50416d64 (svn r11977) -Fix(r11976): not a typo, not a bug. Just a removal that should have been done.
Would help to compile first...
17 years ago
belugas e918b8d31b (svn r11976) -Fix: It seems that industries using results 0D/0E on callback cb29/35 were a bit too eager to close down. 17 years ago
frosch 51f03faf83 (svn r11974) -Fix [FS#1684]: Shore and sea tiles under bridges were converted to canals in old savegames. 17 years ago
frosch 4a1ad2c85f (svn r11973) -Fix (r11726, r11947)[FS#1683]: Use grass tiles for corner shores, if shores got replaced by ActionA. 17 years ago
smatz 773446df5e (svn r11972) -Fix: old AI shouldn't build fast planes with a small airport in orders 17 years ago
peter1138 f8255e10d5 (svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops 17 years ago
peter1138 7ef297187e (svn r11970) -Cleanup: Remove old comment 17 years ago
smatz c22723c643 (svn r11969) -Codechange: documentation update, there are no 'track bits under bridge' anymore 17 years ago
smatz 74af65e556 (svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead 17 years ago
smatz dbd4d7d6a8 (svn r11967) -Fix (r1400): MP_ROAD can have railbits too - OPF searching over rail of diffent owner behind crossing 17 years ago
smatz c19fd4fcde (svn r11966) -Fix: OPF was searching through depots and normal road stops
In effect, it also fixes old AI bugs like FS#1403 and FS#1506
17 years ago
smatz 75784655b7 (svn r11965) -Codechange: simplified tunnel/bridge code in TPFMode1 17 years ago
peter1138 18df5480ba (svn r11964) -Fix [FS#1685]: Tropic zone data was returned incorrectly. 17 years ago
belugas ba1f3b4834 (svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction 17 years ago
smatz 881b74e882 (svn r11962) -Cleanup: OPF is no longer used to update signals 17 years ago
belugas fa39916fe9 (svn r11961) -Feature[newGRF]: Add support for Action 0D, var 13: informations about current map size. 17 years ago
smatz 8be486c27e (svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions 17 years ago
peter1138 622f251197 (svn r11959) -Codechange: Use macro to loop for specific engine types instead of using specific indexes each time.
-Codechange: Minor scope changes in said loops.
17 years ago
smatz 51d7692aca (svn r11958) -Fix (r11204): NewAI couldn't build any road vehicles when there were any tram grfs loaded 17 years ago
peter1138 f8b5b6667f (svn r11957) -Codechange [FS#1678]: Minor simplification and optimisation when checking for available road/rail types (bilbo) 17 years ago
peter1138 a2d416b253 (svn r11956) -Fix [FS#1675]: Disallow building locks and docks on rapids. 17 years ago
peter1138 ae7689620c (svn r11955) -Fix (r11926): Prevent bridge and tunnel ends being placed on rivers. 17 years ago
smatz d89c5e945f (svn r11953) -Fix (r11172): do not allow modifying roadbits when other roadtypes would need different foundation 17 years ago
peter1138 b5534e42a0 (svn r11952) -Fix (r11926): Prevent industries from being built on rivers, unless they require water. 17 years ago
smatz 171e84cbad (svn r11951) -Fix (r11279): loading of very old savegames was broken 17 years ago
peter1138 d213987a13 (svn r11949) -Codechange: add river icon and cursor, drawn by skidd13. 17 years ago
frosch a242dadad2 (svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
Tiles which only consist of shore do not flood anymore, instead they get removed if they are no longer connected to flooding water.
17 years ago
frosch 8a72af3a13 (svn r11946) -Fix: slope detection of bridge ramps.
YAPF failed for steep slopes.
  Trolly failed for a lot.
17 years ago
glx 1d219ad7b6 (svn r11945) -Fix: FileExists() failed for non latin paths (win32) 17 years ago
smatz 22973fc2ce (svn r11944) -Fix: allow building drive-through road/tram stops at road/tram track that has no owner 17 years ago
rubidium 38d690acc8 (svn r11943) -Codechange: add and use a simple structure to support small stacks by allocating it on the heap or pushing a few kB of data onto the stack when there is a large stack. 17 years ago