Commit Graph

3470 Commits (b47a151bcec9fe3f41ca8fad313aa2e155476cfe)

Author SHA1 Message Date
peter1138 a00371c8db (svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist. 16 years ago
rubidium 1d01390fa6 (svn r12921) -Codechange: coding style fixes and documentation updates. 16 years ago
smatz a870a66877 (svn r12920) -Fix (r12859): town rating was affected even after the test run 16 years ago
smatz fc60ef874d (svn r12919) -Fix [FS#1965]: flood road tiles even when there are road works in progress 16 years ago
rubidium 9f3351fed4 (svn r12918) -Fix [FS#1963] (r12679): last airport would always be shown as buildable even when it was not. 16 years ago
peter1138 5ca6fd67fc (svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE 16 years ago
smatz 868c17a175 (svn r12916) -Fix: let ThreadObject_pthread::IsRunning() behave the same way as ThreadObject_Win32::IsRunning() does 16 years ago
smatz dd00683a46 (svn r12915) -Fix [FS#1960](r12857): don't initialize Station struct with tile=0, buoys will never change that value 16 years ago
peter1138 a37ee93f8d (svn r12914) -Fix: Game crash when a spectator/server tried to show an engine with no owner when a NewGRF requested a specific variable. 16 years ago
bjarni 757de2bdf5 (svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
Autoreplace uses this with the following benefits:
  -Mass autoreplace (the button in the depot window) will now estimate costs correctly
  -Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
  Thanks to Ammler for testing this
16 years ago
bjarni 9f5f4e59cd (svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID 16 years ago
peter1138 3f2513b5ac (svn r12910) -Fix: Report reverse sprite status (FD/FE) to NewGRF for manually toggled vehicles. 16 years ago
smatz 9e1b8b69e3 (svn r12906) -Fix: vehicle groups, engine replacement rules and player/company names were not properly reset/freed after bankrupt (before new player start) 16 years ago
smatz 805e1db332 (svn r12904) -Fix [FS#1953]: remove trams from savegames saved in OTTD without tram support, it is better than to simply crash 16 years ago
rubidium 4e80f3f3b1 (svn r12898) -Codechange: coding style in unmovable_cmd.cpp. 16 years ago
rubidium 1aa7d9faff (svn r12897) -Codechange: some coding style in station_cmd.cpp. 16 years ago
glx 9d7181abd7 (svn r12895) -Fix: restored Icelandic plural form and removed cases from Brazilian Portuguese (again) 16 years ago
rubidium f1679bcbb7 (svn r12892) -Fix: too many items in the vehicle toolbars were greyed out. 16 years ago
belugas bf702602c1 (svn r12875) -Codechange: Use defined const instead of cast magic 16 years ago
belugas fbeaf0389d (svn r12874) -Codechange: The closest town is already known. Do not search for it again. 16 years ago
rubidium 91fa34ea11 (svn r12873) -Fix [FS#1946]: MSVC is whining because it doesn't understand that bytes should be cast to ints. 16 years ago
peter1138 f8612ad5b9 (svn r12872) -Codechange: Remove obsolete unused engine list order function 16 years ago
smatz 345f160978 (svn r12870) -Codechange: remove some magic numbers from u.ship.state handling 16 years ago
rubidium 5ac07a2c34 (svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable. 16 years ago
smatz 9fc355fca5 (svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup 16 years ago
miham 48eda2b6ef (svn r12861) -Update: WebTranslator2 update to 2008-04-24 10:49:17
brazilian_portuguese - 74 fixed, 2 changed by fukumori (38), tucalipe (38)
bulgarian  - 59 fixed by thetitan (59)
catalan    - 75 fixed by arnaullv (75)
czech      - 70 fixed, 42 changed by Hadez (112)
danish     - 46 fixed by MiR (46)
dutch      - 75 fixed by habell (75)
estonian   - 91 fixed, 33 changed by kristjans (124)
french     - 74 fixed, 2 changed by glx (76)
italian    - 76 fixed, 9 changed by lorenzodv (85)
latvian    - 24 fixed, 39 changed by stripe4 (63)
russian    - 86 fixed by Smoky555 (86)
slovak     - 3 fixed by lengyel (3)
slovenian  - 75 fixed by Necrolyte (75)
spanish    - 91 fixed, 2 changed by eusebio (93)
swedish    - 72 fixed by ChrillDeVille (72)
traditional_chinese - 82 fixed, 4 changed by xbddc (86)
ukrainian  - 76 fixed, 36 changed by mad (112)
16 years ago
peter1138 60eb3c034f (svn r12860) -Fix [FS#1947]: Train depart animation trigger was not called in some cases. 16 years ago
rubidium 9c675afb91 (svn r12859) -Fix: make the town rating tests use less memory and much quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs. 16 years ago
rubidium 739cb53fff (svn r12858) -Add: small piece of code that can help hunting desyncs. Has to be enabled by --enable-desync-debug=1 though. 16 years ago
rubidium dce1b33196 (svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code. 16 years ago
peter1138 10ab24a5f1 (svn r12856) -Fix: Taking r12377 further, ensure that prop 25 is set for all vehicles in the consist before other properties. 16 years ago
rubidium 6939569362 (svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though. 16 years ago
smatz 1ba6e3deeb (svn r12854) -Codechange: make drawing of rail catenary a bit faster 16 years ago
smatz 459259aeec (svn r12853) -Fix: catenary on tunnel entrances and middle bridge pieces was drawn twice in some cases 16 years ago
smatz ccfe024a2a (svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles 16 years ago
glx e3ca91dc15 (svn r12850) -Fix (r12848): compilation was broken for some platforms 16 years ago
peter1138 24cccc8333 (svn r12848) -Cleanup/Codechange: Use correct variable types, don't prefix with _ for non-globals, and use implicit enum numbering. 16 years ago
peter1138 fff763b5ce (svn r12847) -Cleanup: Identing and variable scope 16 years ago
rubidium 39a715f1f3 (svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced. 16 years ago
rubidium 2d860049a7 (svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway. 16 years ago
bjarni 501b89b8de (svn r12843) -Feature [FS#1945]: The autoreplace window is now resizable in both directions
The code to open this window is also unified for all vehicle types
16 years ago
glx 46bd824b3e (svn r12842) -Codechange [FS#1604]: scale message history by map size 16 years ago
peter1138 c5211354a6 (svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically. 16 years ago
belugas da134d5a39 (svn r12837) -Codechange: Alignment of widget array 16 years ago
rubidium 845b827fbc (svn r12836) -Fix: SunOS non-dedicated server compilation. 16 years ago
peter1138 5dcd689f56 (svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication. 16 years ago
frosch 173ac52da5 (svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'. 16 years ago
rubidium 5ef8c01ce7 (svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits. 16 years ago
rubidium 22140d82c6 (svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey. 16 years ago
rubidium a40bba8bac (svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations. 16 years ago
rubidium 2a779a5e10 (svn r12816) -Fix: the cargo count in the performance rating window could be wrong. 16 years ago
rubidium cea98ea0e6 (svn r12815) -Codechange: reshuffle some variables in the CargoPacket struct saving 4 of 36 bytes with a 32 bit compiler and 8 of 48 bytes on 64 bit compiler per cargo packets. There are generally more cargopackets in game than vehicles. 16 years ago
rubidium dea4738382 (svn r12814) -Codechange: reshuffle some variables in the Vehicle struct saving 20 bytes with a 32 bit compiler and 32 bytes on 64 bit compiler per vehicle. 16 years ago
rubidium c332c68170 (svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often. 16 years ago
glx 4395bda7b5 (svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace() 16 years ago
peter1138 b418ee5a4c (svn r12809) -Fix (r1704): Possible out of bounds array access. 16 years ago
glx f7d3d879c5 (svn r12808) -Fix: enforce autorenew values range in command
-Fix: typo in english.txt
16 years ago
rubidium fccfcd093b (svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan. 16 years ago
rubidium b139756e2b (svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp 16 years ago
rubidium f55ffd14bd (svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a uniform naming of the thing instead of using both names for the same thing. 16 years ago
rubidium 181b36ca0b (svn r12801) -Codechange: remove the dependency of function.h in town_map.h 16 years ago
rubidium 15680e477a (svn r12800) -Codechange: move the animated tile related functions out of texteff.cpp (it isn't a text effect after all). Also remove a few more functions from functions. 16 years ago
peter1138 4f8409daf6 (svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+ 16 years ago
peter1138 210d757499 (svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes) 16 years ago
bjarni de015fbf90 (svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own 16 years ago
rubidium c884d82e46 (svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did. 16 years ago
rubidium 0e624275ee (svn r12795) -Fix [FS#1938]: vehicles could break down during loading and keep loading. The intention of the break down code is not to break down when having zero speed, therefor break downs now do not happen when loading. 16 years ago
bjarni c360e71e3c (svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp 16 years ago
peter1138 4f2c2656e7 (svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln) 16 years ago
bjarni 01549e1574 (svn r12792) -Codechange: [autoreplace] added a function to figure out if a replacement is needed and if so, to which EngineID
It's designed to save a bit of CPU time, specially if the replacement isn't buildable (think autorenew of old vehicle)
16 years ago
bjarni ad3ef0fb26 (svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
This allowed cleaning up the code in MaybeReplaceVehicle()
16 years ago
rubidium 752c8d8f2e (svn r12790) -Codechange: code style fixes. Patch by Alberth. 16 years ago
rubidium 24b5c91039 (svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth. 16 years ago
rubidium 1dcf912f06 (svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth. 16 years ago
rubidium c84fe27ca9 (svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth. 16 years ago
rubidium 118a680fd3 (svn r12786) -Change: remove more function from functions.h. 16 years ago
rubidium 222988603f (svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan. 16 years ago
rubidium 161b588631 (svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp. 16 years ago
rubidium e0722751c6 (svn r12783) -Codechange: do not statically allocate the 'temporary map3 array' in the oldloader. 16 years ago
rubidium 49cfba55bb (svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore. 16 years ago
rubidium 15242b1784 (svn r12780) -Fix: the null blitter did segfault. 16 years ago
rubidium dde68e922a (svn r12779) -Codechange: remove a few constants from openttd.h. 16 years ago
smatz 14dc60c8a1 (svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions 16 years ago
smatz f32ecbcadb (svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute 16 years ago
egladil 8e49daf3e1 (svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion. 16 years ago
rubidium e5eac05c6e (svn r12773) -Codechange: replace some magic numbers with enums. 16 years ago
rubidium fb466f4db2 (svn r12772) -Codechange: some vehicle.cpp coding style. 16 years ago
rubidium 7edc9b65c6 (svn r12771) -Codechange: remove more from variables.h. 16 years ago
rubidium 0cecc4af20 (svn r12769) -Codechange: some coding style cleanups. 16 years ago
rubidium 8c2c7c27ea (svn r12768) -Codechange: move the statusbar GUI to it's own file. 16 years ago
rubidium dc16b4f2b4 (svn r12767) -Codechange: merge all main toolbar related functions into a single file instead of scattering the functionality over several files. 16 years ago
rubidium 31411d4755 (svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob. 16 years ago
rubidium 1b2773445d (svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h. 16 years ago
rubidium acafc26426 (svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs). 16 years ago
rubidium 9d8fa486af (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 16 years ago
belugas 6daaf0fc55 (svn r12760) -Fix(r12759): Remove a now useless comment 16 years ago
belugas 8e4b259352 (svn r12759) -Fix(r12358): There is no need to mask callback result for pre-version7 since CBID_INDTILE_SHAPE_CHECK (cb2F) is really 15 bits. 16 years ago
belugas 184ffbb976 (svn r12758) -Fix(r4712, r12745): Use a bool when it's about boolean evaluation. a TileIndex is hardly a bool, of course of course. Thanks for good old MSVC warnings. 16 years ago
rubidium b1d1a4ac66 (svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location. 16 years ago
smatz 5050ba84fb (svn r12756) -Cleanup: variable scope and coding style in station* 16 years ago
glx a2884f0a3c (svn r12755) -Fix (r12706): aborting map generation was not properly handled 16 years ago
rubidium 02cdf01507 (svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h. 16 years ago
smatz 059e94e355 (svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used 16 years ago
rubidium e098b50379 (svn r12752) -Codechange: replace some magic constants in player_gui.cpp. Patch by Yexo. 16 years ago
rubidium 00f0bf98ee (svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory. 16 years ago
rubidium 5796fb3b34 (svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly. 16 years ago
rubidium c31287206d (svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport. 16 years ago
peter1138 0cd14f9ebb (svn r12747) -Codechange: Add varaction retrieval of station animation frame 16 years ago
peter1138 b2095f37ac (svn r12746) -Codechange: Add map storage for station animation frame 16 years ago
smatz 9488db56d4 (svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile() 16 years ago
rubidium 1367c90161 (svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this. 16 years ago
rubidium 4703eb2036 (svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw. 16 years ago
rubidium 5254131d9c (svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw. 16 years ago
smatz 1f22f47b3b (svn r12738) -Fix (r12736): some sprites could be left unsorted 16 years ago
peter1138 7957bdde13 (svn r12737) -Codechange: Replace vector with a cut down class to allocate space as necessary. This avoids copying data around for vector's push_back() function. 16 years ago
rubidium 208dd15c91 (svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp. 16 years ago
rubidium 6ab158f9d9 (svn r12735) -Codechange: use a vector instead of allocating memory in a byte array for TileSpriteToDraw. 16 years ago
rubidium 0c9120a882 (svn r12734) -Codechange: use a vector instead of allocating memory in a big byte array for StringSpriteToDraw. 16 years ago
belugas 8a669f04cd (svn r12733) -Codechange: Merge two more Widgets arrays (town views ) into one. 16 years ago
smatz dccf5b4509 (svn r12731) -Fix (r12726): copying a 16bit array into 32bit wouldn't work 16 years ago
rubidium 9d3a08523a (svn r12726) -Fix [FS#1877]: overflow causing strange building behaviour in towns. 16 years ago
frosch 9346e067f3 (svn r12717) -Fix (r11107): Check the TILE_NOT_SLOPED flag of the _north_ tile of multi-tile houses to decide if autoslope is allowed. 16 years ago
frosch 7ba1d9076f (svn r12716) -Fix: Do not compare StationIDs with DepotIDs or WaypointIDs. 16 years ago
rubidium fd38b3f850 (svn r12714) -Fix [FS#1904]: do not move windows below the toolbar on resizes unless they would go behind the toolbar. 16 years ago
rubidium 2152e1c420 (svn r12713) -Fix: misleading comment. Patch by Yexo. 16 years ago
glx 3a84a74f4d (svn r12711) -Codechange: remove unneeded loops 16 years ago
rubidium 172237e326 (svn r12709) -Feature: show the last joined server. Heavily based on a patch by Yexo. 16 years ago
glx 62c178f326 (svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista 16 years ago
rubidium be7e36e0b9 (svn r12707) -Fix: do not crash very hard on unrecognised savegames, just go back to the intro menu instead. 16 years ago
rubidium 12188e7a5d (svn r12706) -Merge: the thread rewrite from NoAI. The rewrite makes the threading we have better extendable. 16 years ago
belugas a8008db23d (svn r12705) -Codechange: enumification of some more widgets 16 years ago
belugas 8418bc5050 (svn r12704) -Codechange: code style cleanup, mostly switch case alignment 16 years ago
rubidium fc1f32a693 (svn r12701) -Codechange: do not explicitly number a widget enum because that causes a big diff when adding something. 16 years ago
maedhros c0fbfd03ac (svn r12700) -Cleanup (r12699): Remove an unused string. 16 years ago
maedhros 1f59821020 (svn r12699) -Codechange: Unify the order drawing code for orders and timetables. 16 years ago
rubidium 14b307a621 (svn r12698) -Codechange: skip orders to stations that do not have a train part anymore, just like is done for road vehicles and ships. 16 years ago
rubidium 304cb0e1e2 (svn r12697) -Codechange: give signs_gui.cpp a touch of coding style. 16 years ago
rubidium 4f0bfa91ab (svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems. 16 years ago
rubidium 9a73b698d4 (svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth. 16 years ago
rubidium 04138ddffc (svn r12694) -Fix: do not call the mouse over callback on already deleted windows. 16 years ago
rubidium 2310557716 (svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert. 16 years ago
rubidium 87ddcb0d5a (svn r12692) -Codechange: swap to functions to remove a function declaration. 16 years ago
glx 668e218600 (svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message 16 years ago
smatz a5c456e75e (svn r12690) -Cleanup: remove unused table from tgp.cpp 16 years ago
rubidium e8ee93b593 (svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles. 16 years ago
rubidium 145ea54474 (svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations. 16 years ago
rubidium af3723e217 (svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading. 16 years ago
glx 5e2a5953a4 (svn r12686) -Fix: MSVC signed/unsigned warning 16 years ago
smatz 305dc1001b (svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead 16 years ago
rubidium e1ab9c2eea (svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'. 16 years ago