Commit Graph

4380 Commits

Author SHA1 Message Date
frosch cffd5d17de (svn r14006) -Codechange: Deduplicate some code. 2008-08-06 18:57:37 +00:00
smatz 0eade71bde (svn r14005) -Codechange: minor coding style fix 2008-08-06 15:52:04 +00:00
peter1138 98d3d86004 (svn r14004) -Codechange: Clean of drop down lists.
Move empty item drawing to base ListItem Draw() function.
  Remove String() from base class.
  Pass correct width to Draw().
2008-08-06 07:10:40 +00:00
belugas 85c84c9d86 (svn r14003) -Codechange: Replace numbers with Colours enum opn some DrawArrowButtons calls 2008-08-06 04:01:07 +00:00
smatz 158d4acbba (svn r14001) -Fix (r13989): reading wrong variable, train crash on bridge crashes game 2008-08-05 13:25:49 +00:00
peter1138 ddd8b73f0a (svn r14000) -Codechange: Missing enum entries kind of defeat the point of the enum 2008-08-05 00:17:56 +00:00
rubidium fe6111d6f2 (svn r13999) -Fix [FS#2190]: crash when the AI tries to find the depot of an airport that doesn't have a depot. 2008-08-04 22:31:49 +00:00
rubidium 0ebcac669e (svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found. 2008-08-04 19:07:37 +00:00
frosch 96b9fba333 (svn r13996) -Fix (r13845): Oilrigs from pre r13838 save games can have unknown water class. 2008-08-04 18:54:19 +00:00
rubidium b1eaf763e1 (svn r13995) -Fix (r13988): some warnings of the compile farm. 2008-08-04 18:27:54 +00:00
belugas 5c3a18fa90 (svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values 2008-08-04 17:27:06 +00:00
belugas d21f73658c (svn r13993) -Codechange: Associate TextColour values with comments of related values in _string_colormap table 2008-08-04 17:12:23 +00:00
rubidium 6c5f703cf0 (svn r13992) -Fix [FS#2189]: the dedicated console removed any character that was not a printable ASCII character instead. Now it allows UTF8 formated strings too. 2008-08-04 15:07:17 +00:00
smatz 8fba4705f0 (svn r13991) -Codechange: draw text effects after all other signs 2008-08-04 14:40:50 +00:00
glx 0f10939029 (svn r13990) -Fix (r13988): win32 compilation failed 2008-08-04 13:54:10 +00:00
rubidium 7a50ae28d5 (svn r13989) -Fix [FS#2186] (r13953): YAPP track reservation for crashed trains was broken for depots and wormholes (michi_cc). 2008-08-04 13:15:15 +00:00
rubidium c88cb1daa0 (svn r13988) -Codechange: move the to IP resolving functions to a separate file. 2008-08-04 12:56:38 +00:00
peter1138 a822e259c5 (svn r13987) -Codechange: Resize small map legend dynamically on window resize and when switching small map types, so that the legend is taller only on the industry type and only when the legend will not fit in the available space. 2008-08-04 05:59:28 +00:00
smatz dcc10a3b8f (svn r13985) -Fix (r13944): gcc 2.95 compilation 2008-08-03 20:50:12 +00:00
peter1138 63cd8fc24f (svn r13984) -Codechange: Simplify industry legend on small map, by automatically splitting columns based on widget height. 2008-08-03 20:09:35 +00:00
frosch 628723d45c (svn r13983) -Fix (r13953) [YAPP]: Crashed trains can be on different trackbits. Make sure there is still a track reservation when one vehicle is cleaned up. 2008-08-03 19:04:11 +00:00
peter1138 1f4b89ff4b (svn r13982) -Fix (r13981): And then not enough was cleared... 2008-08-03 18:56:44 +00:00
peter1138 e434323d38 (svn r13981) -Fix [FS#AmmlersStillTooLazy]: Resetting construction stage counter reset more than it should. 2008-08-03 18:51:13 +00:00
peter1138 e1451e1124 (svn r13980) -Codechange: Turn small map legend while loop into a for-loop. 2008-08-03 18:18:36 +00:00
peter1138 29ba35df7b (svn r13979) -Codechange: Use widget dimensions instead of magic number incantations for limiting small map area. 2008-08-03 18:00:28 +00:00
peter1138 65f26bb737 (svn r13978) -Fix: Incorrect widget size. 2008-08-03 17:36:39 +00:00
peter1138 92b63e38f0 (svn r13977) -Codechange: Let ResizeWindowForWidget() handle hidden (zero height or zero width) widgets. 2008-08-03 17:35:08 +00:00
frosch b92c4cfc92 (svn r13976) -Fix (r13953) [YAPP]: A crashing train could sometimes free the reservation of another train. (assisted by michi_cc) 2008-08-03 17:16:39 +00:00
peter1138 a5453e43b1 (svn r13975) -Codechange: Replace some globals used by the small map window with static members of the window. 2008-08-03 14:58:26 +00:00
frosch 983e297ff0 (svn r13974) -Fix [YAPP]: A train crash could lead to stale reservations. (michi_cc) 2008-08-03 14:16:57 +00:00
smatz 9a1958be91 (svn r13973) -Codechange [YAPP]: Improve the behavior when changing signals to not cause stale reservations. (michi_cc) 2008-08-03 11:28:35 +00:00
rubidium 6639c496c3 (svn r13972) -Fix [FS#2180]: the timetable's "Clear Time" button didn't have any effect. 2008-08-03 08:25:26 +00:00
rubidium 13dee60ae1 (svn r13971) -Fix [YAPP]: segfault due to mixed up variables (michi_cc) 2008-08-03 08:20:04 +00:00
belugas 96892e081a (svn r13970) -Codechange: Replace numbers with Colours enum on network, toolbar and dropdown guis.
Mostly forgotten ones.
2008-08-03 02:18:45 +00:00
glx 87c3599895 (svn r13968) -Fix (r13923): 'cast from pointer to integer of different size' warning 2008-08-02 23:30:50 +00:00
rubidium cc48f3d6f9 (svn r13967) -Codechange [YAPP]: Tweak pathfinder penalties a bit. (michi_cc) 2008-08-02 22:57:47 +00:00
rubidium bba8ff290e (svn r13966) -Codechange [YAPP]: Bar level crossings upon path reservation. (michi_cc) 2008-08-02 22:57:18 +00:00
rubidium 88b1ee0b43 (svn r13965) -Add [YAPP]: Implement newgrf var 0x44 for stations (PBS reservation state). (michi_cc) 2008-08-02 22:57:03 +00:00
rubidium 1e2c61360b (svn r13964) -Codechange [YAPP]: Check if a train needs servicing when reserving the next path segment. (michi_cc) 2008-08-02 22:56:50 +00:00
rubidium 47a5faf874 (svn r13963) -Codechange [YAPP]: Reserve a track when entering a PBS block through a conventional signal. (michi_cc) 2008-08-02 22:56:35 +00:00
rubidium 5c9bb1bbd6 (svn r13962) -Codechange [YAPP]: Do not reverse in front of red signals when inside a PBS block and reversing of stuck trains is disabled. (michi_cc) 2008-08-02 22:56:21 +00:00
rubidium db637a2b7f (svn r13961) -Add [YAPP]: Handle train reversing. (michi_cc) 2008-08-02 22:56:07 +00:00
rubidium 9e91bb4b33 (svn r13960) -Codechange [YAPP]: Reserve a path when exiting a depot into a PBS block. (michi_cc) 2008-08-02 22:55:52 +00:00
rubidium 4339948b1f (svn r13959) -Codechange [YAPP]: Try to extend a train reservation as far as possible and only call into the pathfinder on track choices. (michi_cc) 2008-08-02 22:55:38 +00:00
rubidium 16ab0d84bb (svn r13958) -Add [YAPP]: Implement look-ahead for trains so they extend their reservation before reaching the end. (michi_cc) 2008-08-02 22:55:23 +00:00
rubidium 753da05bc6 (svn r13957) -Codechange [YAPP]: Free the old path reservation on removing some tracks and reroute trains afterwards. (michi_cc) 2008-08-02 22:55:08 +00:00
rubidium bce6f7b41c (svn r13956) -Add [YAPP]: Function for getting the train holding a reserved path. (michi_cc) 2008-08-02 22:54:53 +00:00
rubidium bd0a420744 (svn r13955) -Codechange [YAPP]: Try to extend the path of a stuck train so it is able to continue. (michi_cc) 2008-08-02 22:54:38 +00:00
rubidium e9b62103e4 (svn r13954) -Codechange [YAPP]: On reserving a path that ends at the destination, the path could end at a non-safe tile. In this case, extend the reservation based on the next vehicle orders. (michi_cc) 2008-08-02 22:54:23 +00:00
rubidium d06fb949ff (svn r13953) -Add [YAPP]: Free track reservations of crashed trains. (michi_cc) 2008-08-02 22:54:07 +00:00
rubidium 10d8fb6456 (svn r13952) -Add [YAPP]: Trains now reserve paths trough PBS signals. Bump savegame version. (michi_cc) 2008-08-02 22:53:51 +00:00
rubidium 33898d49bb (svn r13951) -Codechange [YAPP]: A train leaving a tile should unreserve the track it came from if it was reserved. (michi_cc) 2008-08-02 22:53:37 +00:00
rubidium e9c33fb288 (svn r13950) -Add [YAPP]: Trains can now also be in a 'stuck' state when waiting on a path reservation. (michi_cc) 2008-08-02 22:53:21 +00:00
rubidium 0dfaa88c1e (svn r13949) -Codechange [YAPP]: Declare the functions for processing conditional orders as non-static. (michi_cc) 2008-08-02 22:53:05 +00:00
rubidium a706766690 (svn r13948) -Add [YAPP]: Extend NPF with a function to find a safe tile and reserve a path. (michi_cc) 2008-08-02 22:52:50 +00:00
rubidium 4f5f3846a0 (svn r13947) -Codechange [YAPP]: Added YAPP-related penalties to NPF. (michi_cc) 2008-08-02 22:52:36 +00:00
rubidium cd041b6944 (svn r13946) -Add [YAPP]: Implement track reserving for NPF as well. (michi_cc) 2008-08-02 22:52:22 +00:00
rubidium 773f19da05 (svn r13945) -Codechange [YAPP]: Extend CFollowTrackT to not require a Vehicle when following rail. (michi_cc) 2008-08-02 22:52:08 +00:00
rubidium 53cc7e8a5c (svn r13944) -Add [YAPP]: Add YAPF provider to find a safe tile and reserve a path. (michi_cc) 2008-08-02 22:51:53 +00:00
rubidium 2b153abd93 (svn r13943) -Codechange [YAPP]: Reserved station tiles can now be penalized more in YAPF. This should help with spread out stations. (michi_cc) 2008-08-02 22:51:38 +00:00
rubidium ecc509195a (svn r13942) -Codechange [YAPP]: Add a penalty for double slips to YAPF. (michi_cc) 2008-08-02 22:51:23 +00:00
rubidium 8c7983727e (svn r13941) -Codechange [YAPP]: Added YAPP-related penalties to YAPF. (michi_cc) 2008-08-02 22:51:07 +00:00
rubidium abc46b1e86 (svn r13940) -Add [YAPP]: YAPF is now able to reserve the found path. (michi_cc) 2008-08-02 22:50:52 +00:00
rubidium c91c12adde (svn r13939) -Add [YAPP]: Extend YAPF with the possibility to override the railtype info of the vehicle. (michi_cc) 2008-08-02 22:50:38 +00:00
rubidium 908591b40a (svn r13938) -Codechange [YAPP]: Add the new signals to the build signal GUI. (michi_cc) 2008-08-02 22:50:22 +00:00
rubidium 3e055b32bf (svn r13937) -Codechange [YAPP]: Don't cycle through two-sided PBS signals during build. (michi_cc) 2008-08-02 22:50:04 +00:00
rubidium 07a43863c4 (svn r13936) -Codechange [YAPP]: Enable the auto-signal tool to build PBS signals and honor the default signal type. (michi_cc) 2008-08-02 22:49:39 +00:00
rubidium 60006ad24c (svn r13935) -Codechange [YAPP]: PBS signals can now be built with the normal signal tools. (michi_cc) 2008-08-02 22:49:23 +00:00
rubidium 5c55922a06 (svn r13934) -Codechange [YAPP]: Handle through signals in the pathfinders. (michi_cc) 2008-08-02 22:49:10 +00:00
rubidium d6645818b4 (svn r13933) -Codechange [YAPP]: Handle through and PBS signals correctly in the signal code. (michi_cc) 2008-08-02 22:48:57 +00:00
rubidium fe4f23dba2 (svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc) 2008-08-02 22:48:43 +00:00
rubidium ad4fdb76fc (svn r13931) -Codechange [YAPP]: Retain the reservation state when building/removing waypoints or level crossings. (michi_cc) 2008-08-02 22:48:27 +00:00
rubidium 9295bd3f7c (svn r13930) -Codechange [YAPP]: Clear track reservation when removing a rail track. (michi_cc) 2008-08-02 22:48:14 +00:00
rubidium f6555cf6f8 (svn r13929) -Codechange [YAPP]: Reserving and unreserving of single tracks is now possible. (michi_cc) 2008-08-02 22:48:01 +00:00
rubidium 2bb8825538 (svn r13928) -Add [YAPP]: Function for getting the path reservation state of any tile. (michi_cc) 2008-08-02 22:47:48 +00:00
rubidium df99103a31 (svn r13927) -Add [YAPP]: Draw reserved tracks darker, toggeld by a patch setting. (michi_cc) 2008-08-02 22:47:34 +00:00
rubidium ec7cc49825 (svn r13926) -Add [YAPP]: Add map accessors for path reservations. (michi_cc) 2008-08-02 22:47:20 +00:00
frosch 770d293788 (svn r13923) -Feature: Show [total-]cargo info in depot when [ctrl-]right-clicking on vehicle. 2008-08-02 12:43:45 +00:00
frosch 0fc769bb6c (svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window. 2008-08-02 11:26:25 +00:00
peter1138 b92520ddfd (svn r13921) -Codechange (r11473): Use the correct enum... 2008-08-02 10:17:45 +00:00
belugas d0d285ed57 (svn r13920) -Codechange: uniformise the definition with the declaration of DrawFrameRect 2008-08-02 02:50:40 +00:00
belugas c5cecdd2e3 (svn r13919) -Codechange: Replace numbers with Colours enum on osk(forgot 2 assignations), statusbar, subsidy, terraform, timetable, toolbar, town, tree and vehicle guis. 2008-08-02 02:28:17 +00:00
rubidium d67ef3573c (svn r13917) -Fix [FS#2178]: wrong tooltip for the industry directory's list. 2008-08-01 23:08:11 +00:00
bjarni 862ba19279 (svn r13913) -Fix (r13893): [OSX] fixed a warning about MAC_OS_X_VERSION_10_5 not being defined on all systems 2008-08-01 17:43:11 +00:00
rubidium ad36ea6b29 (svn r13912) -Codechange: remove some casts by returning the proper type instead of void*. 2008-08-01 15:07:31 +00:00
smatz 7c0b1172e1 (svn r13911) -Fix (r13806): do not consider crashed train as waiting at signal, v->direction doesn't have to match track anyway 2008-08-01 13:25:19 +00:00
rubidium c5a4e90338 (svn r13910) -Document: string drawing related functions and types (Alberth) 2008-08-01 09:34:34 +00:00
rubidium 47592b9288 (svn r13909) -Codechange: use the same type before CmdBuildRailStation as it used in the command itself (Alberth) 2008-08-01 09:26:39 +00:00
rubidium 62c94f1b12 (svn r13908) -Codechange: merge two tables into a single one (Alberth) 2008-08-01 09:17:27 +00:00
belugas 69671d3aef (svn r13907) -Codechange: Replace a number with Colours enum on DrawFrameRect usage 2008-08-01 03:43:53 +00:00
translators 325ef293fd (svn r13905) -Update: WebTranslator2 update to 2008-08-01 02:27:37
brazilian_portuguese - 22 fixed by tucalipe (22)
dutch      - 9 fixed by habell (9)
estonian   - 4 fixed by kristjans (4)
french     - 5 fixed, 1 changed by glx (6)
galician   - 105 fixed, 206 changed by Condex (311)
italian    - 5 fixed, 2 changed by lorenzodv (7)
korean     - 15 fixed by leejaeuk5 (15)
portuguese - 48 fixed by supra90 (48)
slovak     - 30 fixed by lengyel (30)
spanish    - 9 fixed by eusebio (9)
ukrainian  - 22 fixed by mad (22)
2008-08-01 00:31:20 +00:00
glx 513f4c7ca7 (svn r13904) -Fix (r13715): 'cast from/to pointer to/from integer of different size' warnings 2008-07-31 22:55:12 +00:00
rubidium fb80ed218d (svn r13903) -Fix: missing eol-style property. 2008-07-31 21:06:19 +00:00
belugas 10f450e2d4 (svn r13900) -Codechange: Replace numbers with Colours enum on settings, smallmaps, stations and signs guis. 2008-07-31 17:45:52 +00:00
belugas 87f95cd4cf (svn r13899) -Codechange: Replace numbers with Colours enum on roads gui.
save command file before commiting :P
2008-07-31 17:19:47 +00:00
belugas d2c29c22fb (svn r13898) -Codechange: Replace remaining numbers with Colours enum on players, roads and rails guis 2008-07-31 17:17:27 +00:00
belugas d34eedfdb3 (svn r13897) -Codechange: Replace remaining numbers with Colours enum on news guis
-Fix: a few misalignements
2008-07-31 16:44:51 +00:00
belugas 5bbb5721df (svn r13896) -Codechange: Replace numbers with Colours enum on newgrf, order and osk guis 2008-07-31 16:42:11 +00:00
belugas 5c3b347350 (svn r13895) -Codechange: Replace numbers with Colours enum on music gui and on DrawFrameRect calls
-Fix: a few misalignements
2008-07-31 14:42:55 +00:00
bjarni 61799786d5 (svn r13893) -Fix: [OSX] solved a deprecated warning specific to 10.5 2008-07-31 14:00:01 +00:00
smatz 5e2c2db235 (svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible 2008-07-31 13:28:23 +00:00
peter1138 b7e64bb5a6 (svn r13890) -Codechange: Simplify drawing of invisibilty buttons in the transparency gui -- the real widgets above already have coordinates so there is no need to hardcode them again. As an added bonus the invisibility buttons now line up properly. 2008-07-31 05:47:29 +00:00
belugas 1cd0aa4b74 (svn r13889) -Codechange: Replace numbers with Colours enum on transparency gui.
-Fix: "true" is not a color.  COLOUR_PALE_GREEN should look better, at least in the code ;)
2008-07-31 03:13:35 +00:00
belugas 22d9d9c588 (svn r13888) -Codechange: Replace numbers with Colours enum on miscellaneous guis. 2008-07-31 02:59:21 +00:00
belugas 1737ce45e3 (svn r13887) -Codechange: Replace numbers with Colours enum on autoreplace, build_vehicle, cheat, depot and dock guis.
The fact that it goes alphabetically is pure coincidence.
2008-07-31 02:36:01 +00:00
frosch 93d0ca8731 (svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific. 2008-07-30 18:23:12 +00:00
smatz 515b55c635 (svn r13884) -Fix (r11822): custom vehicle names from TTD(Patch) games were lost 2008-07-30 17:41:02 +00:00
belugas faaa637987 (svn r13883) -Codechange: Replace numbers with Colours enum on graph gui 2008-07-30 17:39:26 +00:00
belugas 63f7214abd (svn r13882) -Codechange: Replace widget numbers with appropriate enums 2008-07-30 17:13:55 +00:00
frosch c840a63dfd (svn r13881) -Cleanup (r12751): Remove some dead code. 2008-07-30 17:06:17 +00:00
belugas c848b9d3c4 (svn r13880) -Codechange: Replace numbers with Colours enum on intro gui, and align a bit the code 2008-07-30 16:23:55 +00:00
belugas 4cc5da9409 (svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui 2008-07-30 16:13:58 +00:00
belugas 96a0010911 (svn r13876) -Codechange: Replace numbers with Colours enum on bridge gui 2008-07-30 14:04:15 +00:00
belugas 486ce7dbc3 (svn r13875) -Codechange: Remove some magic numbers in favour of the Colours enum they are representing 2008-07-30 02:15:58 +00:00
belugas 60d020059c (svn r13874) -Change: missing svn:property eol-style 2008-07-30 02:07:49 +00:00
belugas caf5cac9eb (svn r13873) -Codechange: remove useless string from all language files affected by r13872. which removed the STR_NEWS_OPEN_CLOSE string 2008-07-30 02:04:44 +00:00
belugas d358eff64d (svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own 2008-07-30 01:53:03 +00:00
peter1138 b90dc6cc34 (svn r13870) -Fix [FS#2167]: Callback 10 (visual effect and powered wagons setting) and powered wagons operation were not performed for articulated wagons. 2008-07-29 22:19:37 +00:00
rubidium ef6e366c08 (svn r13869) -Fix [FS#2153] (r13674): in some cases the sprite cache could be filled with unremovable items. 2008-07-29 21:45:30 +00:00
frosch 814c91843a (svn r13868) -Fix: Parent scope of industry variables. 2008-07-29 19:51:30 +00:00
belugas da4dc32a6f (svn r13867) -Codechange: Fix missing alignment 2008-07-29 15:34:56 +00:00
peter1138 ca703d3701 (svn r13866) -Codechange: Use sortlist for sign windows 2008-07-29 10:26:48 +00:00
peter1138 b49814c537 (svn r13865) -Codechange: Use case-insensitive sort for NewGRF list. 2008-07-29 07:51:55 +00:00
belugas ec58ec4a73 (svn r13864) -Feature(FS #2164): All industry creations are now generating a news event, even those funded by a real player. 2008-07-28 23:37:19 +00:00
smatz 88637d9213 (svn r13859) -Fix: loading of TTD(Patch) savegames from the command line didn't work 2008-07-28 15:31:11 +00:00
smatz 686019398f (svn r13858) -Fix: buffer overflow for too long filename supplied as '-g' parameter 2008-07-28 15:17:47 +00:00
peter1138 81dafb5e69 (svn r13855) -Fix [FS#2157]: Cargo type lookup was incorrect for GRFv7 files without a translation table. 2008-07-28 06:16:34 +00:00
bjarni 78730d4c71 (svn r13852) -Fix (r13849): [OSX] fixed universal binary building without breaking anything this time 2008-07-27 20:43:21 +00:00
frosch 1aa6e00b48 (svn r13851) -Fix (r9393): GetTownByTile() is only valid for houses and roads. 2008-07-27 18:36:11 +00:00
frosch 1f31e117f0 (svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace. 2008-07-27 15:17:16 +00:00
bjarni 62c053729a (svn r13849) -Fix: [OSX] 10.5 appears to be more picky when setting up compiling of universal binaries 2008-07-27 14:16:24 +00:00
frosch 80725edc3d (svn r13847) -Codechange: Add MAX_ARTICULATED_PARTS and set it to 100. 2008-07-27 12:35:14 +00:00
frosch 2cec059248 (svn r13846) -Fix (r13838): Do not draw water borders inside of industries. 2008-07-27 09:16:23 +00:00
frosch 74c63ac9e2 (svn r13845) -Fix (r13838): When adding a WaterClass to oilrig station tiles, also make use of it. 2008-07-27 09:12:18 +00:00
frosch 4da23a6280 (svn r13844) -Fix (r13074, r13591): Power, running cost and capacity of multiheaded engines were (too often) doubled in newspaper resp. offer window. 2008-07-26 22:00:59 +00:00
frosch 91486b116b (svn r13840) -Fix: Some glitches in the autoreplace GUI. 2008-07-26 17:55:49 +00:00
frosch 16c80d031c (svn r13838) -Codechange: Make industry tiles aware of WaterClasses. 2008-07-26 16:14:10 +00:00
peter1138 ea7ed286a6 (svn r13836) -Fix [FS#2074]: Automatically recalculate inflation if NewGRFs are changed and cargo types are added, so that cargo payment rates are correct. 2008-07-26 14:58:08 +00:00
peter1138 49c971c8eb (svn r13832) -Fix [FS#2152]: FreeType may return a bitmap glyph even if a grey-scale glyph was requested. 2008-07-26 10:21:26 +00:00
peter1138 7a73bff37a (svn r13831) -Codechange: Make purchase list order NewGRF property an extended byte. 2008-07-26 07:43:20 +00:00
smatz 05c2a8eba4 (svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries 2008-07-25 22:37:34 +00:00
smatz ce7585101d (svn r13826) -Codechange: use 'INVALID_DATE' instead of '0' as placeholder in tile description 2008-07-25 19:50:40 +00:00
peter1138 7cdd6ef33c (svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a PlayerByte value in r12143, and still isn't a PlayerByte value. 2008-07-25 17:33:53 +00:00
rubidium 64833bb84f (svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop... 2008-07-25 13:20:50 +00:00
rubidium 3a706b0f2d (svn r13822) -Fix [FS#2166]: building through the wrong side of a drive through station was allowed. 2008-07-25 10:10:11 +00:00
rubidium 1a4ac3ee5c (svn r13821) -Codechange: replace some uint8/bytes with more specificly named typedefs and replace a few magic numbers. 2008-07-25 10:00:03 +00:00
miham 00d87b537f (svn r13820) -Update: WebTranslator2 update to 2008-07-25 00:59:06
brazilian_portuguese - 3 fixed by tucalipe (3)
catalan    - 10 fixed by arnaullv (10)
czech      - 12 fixed, 3 changed by Hadez (15)
danish     - 21 fixed by ThomasA (21)
dutch      - 16 fixed by habell (16)
estonian   - 37 fixed by kristjans (37)
french     - 19 fixed by glx (19)
italian    - 19 fixed by lorenzodv (19)
korean     - 10 fixed by leejaeuk5 (10)
simplified_chinese - 97 fixed, 17 changed by ww9980 (114)
slovak     - 87 fixed by lengyel (87)
spanish    - 10 fixed by eusebio (10)
ukrainian  - 2 fixed by mad (2)
2008-07-24 22:59:29 +00:00
peter1138 b98deeb5cc (svn r13818) -Fix [FS#2157]: Deselect currently selected NewGRF when changing GRF preset. 2008-07-24 18:29:01 +00:00
smatz 97eeb07201 (svn r13817) -Cleanup (r13816): no need to check for ENABLE_NETWORK, _networking is defined anyway 2008-07-24 16:23:55 +00:00
smatz aae2aa64c4 (svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that 2008-07-24 15:19:26 +00:00
rubidium 9bee994898 (svn r13814) -Fix (r13810): MSVC (as usual) does stupid things. This time it is copying around a struct it created itself, causing bad things to happen if you don't explicitly set all variables to something remotely sane in the constructor. 2008-07-24 08:46:34 +00:00
rubidium 81c50c6c32 (svn r13810) -Fix: small memory leak when tar files would be found. 2008-07-23 21:42:55 +00:00
rubidium a050a78525 (svn r13809) -Fix: memory leak each time a "new ai" got (re)started. 2008-07-23 20:42:13 +00:00
rubidium 1560fe3298 (svn r13807) -Fix: memory leak when loading groups. 2008-07-23 18:41:15 +00:00
smatz c0e11a797c (svn r13806) -Fix [FS#2162]: checking for train waiting at other side of two-way signal was broken 2008-07-23 18:23:12 +00:00
smatz 4835e300c4 (svn r13800) -Codechange: minor comment style fixes in misc_gui.cpp 2008-07-23 15:01:50 +00:00
glx ec6aff4870 (svn r13799) -Fix (r13730): {RAW_STRING} should be used in english.txt only 2008-07-23 14:58:43 +00:00
glx ac9459c46c (svn r13797) -Fix [FS#2160](r13715): crash when displaying save/load errors 2008-07-23 13:15:54 +00:00
rubidium 52982de589 (svn r13796) -Fix [FS#2161]: one couldn't start the last scenario in the "start server window"'s list of scenarios. 2008-07-23 13:10:08 +00:00
rubidium 24bb768450 (svn r13795) -Change: do not require canals/rivers/seas to be empty when building a bridge over it as it is not required for roads and rails either. 2008-07-22 23:45:55 +00:00
rubidium af21ac537e (svn r13794) -Fix: helicopters leaving a heliport could get stuck after processing conditional orders. 2008-07-22 23:29:08 +00:00
peter1138 9a6b7a90e0 (svn r13789) -Fix (r13781): Saved preset was not automatically selected. 2008-07-22 20:52:30 +00:00
smatz 06a52be95c (svn r13787) -Codechange: resize the red error message box if needed 2008-07-22 19:25:47 +00:00
peter1138 49769dffba (svn r13784) -Codechange: Truncate vehicle names in purchase list to width of window. 2008-07-22 16:13:42 +00:00
glx 1f0939f4e2 (svn r13782) -Cleanup: removed a useless declaration 2008-07-22 15:02:18 +00:00
peter1138 6e0af9fdfe (svn r13781) -Feature: NewGRF presets, selected by a drop down list in the NewGRF window. Presets are saved in the config file. 2008-07-22 14:17:29 +00:00
rubidium 14a747e490 (svn r13776) -Fix: some revision checking code was unintentionally disabled. 2008-07-21 18:49:50 +00:00
glx 317868261a (svn r13775) -Codechange: enforce the validity of a NetworkAction (chat packet) issued by a client 2008-07-21 15:50:55 +00:00
peter1138 e6aa4e1eb1 (svn r13774) -Codechange: Add support for changing vehicle purchase list position for all vehicle types. 2008-07-21 14:42:25 +00:00
rubidium aafd8393cc (svn r13773) -Codechange: disable autoclean for protected/unprotected companies when the timeout is set to 0. Based on an idea by Thomas. 2008-07-21 13:05:43 +00:00
peter1138 e6a1f1c012 (svn r13761) -Codechange: Remove dependency on rail for altering purchase list position (mostly function renaming) 2008-07-20 21:23:28 +00:00
peter1138 00e052ad39 (svn r13760) -Codechange: With multiple NewGRF engine sets, engine IDs may not be allocated in the order expected by GRF authors, so sort by 'list position' instead of engine ID for all vehicle types. 2008-07-20 21:21:51 +00:00
rubidium fec49bcc83 (svn r13759) -Fix [FS#2147]: selecting non-full length vehicles in the depot gui would place the "mouse pointer" out of the center of the vehicle making it hard to "aim". 2008-07-20 19:21:18 +00:00
smatz 690859bf57 (svn r13758) -Fix (r13226): always use st->airport_tile, st->xy is different in many cases 2008-07-20 15:50:41 +00:00
rubidium 77fdefea19 (svn r13754) -Fix (r13731): one could not join companies from the command line. 2008-07-20 13:29:59 +00:00
rubidium b607b51d93 (svn r13753) -Cleanup (r13752): save before commit instead of the other way around is usually better. 2008-07-20 12:59:27 +00:00
rubidium a6e314bbba (svn r13752) -Fix [FS#2130]: correctly restore conditional orders when they are put 'into' backup. 2008-07-20 07:41:43 +00:00
rubidium 7c3fc13087 (svn r13740) -Fix (r13731): one could only join the first company. 2008-07-19 20:24:41 +00:00
rubidium c4467aa8fb (svn r13739) -Fix (r13731): some variables would be erroneously zeroed, causing autoclean and company passwords not to work. 2008-07-19 20:23:51 +00:00
rubidium bfa66f70b3 (svn r13734) -Fix: NewGRF rail continuation would always mark a tunnel on the same axis as connected, even when the tunnel faces the wrong direction. 2008-07-19 10:10:21 +00:00
smatz f2da045731 (svn r13733) -Fix (r13731): gcc2.95 compilation 2008-07-18 21:01:30 +00:00
rubidium 5f280d0e50 (svn r13732) -Feature: add a few extra columns with information to the server list. Patch by Pegasus. 2008-07-18 20:44:35 +00:00
rubidium 3a799389eb (svn r13731) -Codechange: make a pool of the array of players. 2008-07-18 16:40:29 +00:00
rubidium 891bec7e23 (svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages. 2008-07-18 16:26:51 +00:00
rubidium e48d86fad0 (svn r13729) -Fix: assumption that non-north tiles of a house do not have the 1x1 building bit set was flawed with some NewGRFs. This caused the amount of houses to differ, which causes the town radii to differ, which causes desyncs when towns are expanded. 2008-07-18 12:20:31 +00:00
smatz b3bafb1d9c (svn r13728) -Codechange: define DEBUG as an empty block so compiler warns us less 2008-07-18 12:20:30 +00:00
smatz 927507818f (svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was broken 2008-07-18 12:11:46 +00:00
smatz 69cb2f088f (svn r13721) -Codechange: one less multiplication for colour mixing in 32bpp blitters (GeekToo) 2008-07-17 23:43:47 +00:00
rubidium 6e1aaa2c69 (svn r13720) -Fix (r13715): string wasn't correctly passed to draw function. 2008-07-17 21:15:57 +00:00
rubidium d06529ef4d (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 2008-07-17 20:13:01 +00:00
rubidium c2d2f817de (svn r13718) -Fix: possible desync on the autorenew settings 20+ game years (i.e. 4.5+ hours) after a company was started. 2008-07-17 16:38:26 +00:00
rubidium 227085622a (svn r13717) -Codechange: place the whole 'create new company' command in #ifdef ENABLE_NETWORK as it may only be executed when we are playing in a network game. 2008-07-17 15:16:11 +00:00
rubidium 39beec190b (svn r13716) -Fix [FS#2144]: any player could construct new companies. 2008-07-17 15:14:42 +00:00
rubidium ab234cf90c (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
2008-07-17 13:47:04 +00:00
rubidium c913be73d8 (svn r13714) -Fix: remove the unique_id from the message that a client has joined as it is only exposes the unique_id more than needed. Patch by dih. 2008-07-17 12:02:09 +00:00
rubidium 60a6582590 (svn r13713) -Fix: possible crash on creating a network packet. 2008-07-17 11:47:57 +00:00
rubidium 2e4f32023c (svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too. 2008-07-17 11:19:20 +00:00
miham 88848d78b5 (svn r13707) -Update: WebTranslator2 update to 2008-07-16 01:21:36
brazilian_portuguese - 3 fixed by tucalipe (3)
bulgarian  - 78 fixed, 230 changed by thetitan (3), groupsky (305)
catalan    - 3 fixed by arnaullv (3)
dutch      - 3 fixed by webfreakz (3)
italian    - 3 changed by lorenzodv (3)
korean     - 4 fixed, 5 changed by leejaeuk5 (9)
russian    - 3 fixed by Smoky555 (3)
slovenian  - 4 fixed by Necrolyte (4)
spanish    - 3 fixed by eusebio (3)
swedish    - 4 fixed by daishan (4)
ukrainian  - 2 fixed by mad (2)
2008-07-15 23:27:28 +00:00
frosch 33cd16981c (svn r13706) -Fix (r13695): Small typo. 2008-07-15 17:13:50 +00:00
belugas 5b48371867 (svn r13705) -Codechange: Define and use BridgePieces enum, which will remove a few more magic numbers 2008-07-15 00:34:34 +00:00
rubidium 0f4d9a8e49 (svn r13704) -Fix: make timetables work more sensible when used in conjunction with conditional orders, i.e. make it possibly to tell how long to travel to the next destination if you jump. 2008-07-14 21:01:49 +00:00
rubidium 797ccc8b49 (svn r13703) -Update: the other language files due to a few changed strings in r13702. 2008-07-14 20:36:21 +00:00
rubidium be722412fa (svn r13702) -Fix: do not overflow the order/timetable window when 'long' orders are displayed. 2008-07-14 20:18:06 +00:00
glx 9895afb43e (svn r13701) -Codechange: add some more info in crash.log 2008-07-14 20:04:54 +00:00
rubidium 71820bf129 (svn r13700) -Fix: possible buffer overflow in string truncation code. 2008-07-14 18:22:15 +00:00
rubidium b7c69ba5f0 (svn r13699) -Fix: handle SETX(Y) properly when truncating a string instead of ignoring it and returning a too long string. 2008-07-14 17:31:41 +00:00
frosch 1c17405721 (svn r13698) -Fix (r13697): MorphOS compilation. 2008-07-13 19:44:05 +00:00
frosch 1655a6f2a8 (svn r13697) -Feature: Add some support for symbolic links in .tar files. 2008-07-13 16:09:00 +00:00
belugas f666fd5a9b (svn r13696) -Fix[GUI]: The Build button of the vehicle list is now hidden, instead of just disabled. It will be only visible when called from the Depot Building Window.
Less confusion, hopefully.  Suggested by Eddi.
2008-07-13 02:43:46 +00:00
rubidium 53436082a2 (svn r13695) -Fix [FS#2120]: in some cases the (sound) mixer could overflow causing artefacts in the sound. 2008-07-12 22:30:10 +00:00
rubidium e74743227b (svn r13694) -Change: make it more explicit that you've opened the available train/ship/etc. list instead of the one where you can actually build vehicles by setting the appropriate title for the window. 2008-07-12 22:28:34 +00:00
frosch 2b6dee7f64 (svn r13693) -Fix (r11106, r11117): Do not rely on .tar files always ending with a block of zeros. 2008-07-12 14:49:43 +00:00
rubidium 56379fff51 (svn r13692) -Fix (r13674): loading PNG sprites could very quickly fill the sprite cache. 2008-07-12 14:03:36 +00:00
smatz 447ec39f49 (svn r13691) -Codechange: make it easier to determine whether a command is ran in the context of autoreplace or not 2008-07-09 20:55:47 +00:00
belugas 33150af3e2 (svn r13683) -Codechange: privatize a function that is not used outside of the class who calls it 2008-07-09 02:18:51 +00:00
belugas cb452bcc7d (svn r13682) -Codechange: -Codechange: remove a now useless variable(dih). 2008-07-08 23:07:58 +00:00
rubidium d974acac89 (svn r13681) -Revert (r13678, r13677): the fixes didn't work in all cases (assertions on savegame loads).
-Fix [FS#2102]: but now in a hopefully beter way.
2008-07-08 15:10:23 +00:00
rubidium 03d32e12fb (svn r13680) -Fix: NPF crashing when a ship tried to find a nearby depot when on an aqueduct. 2008-07-07 16:04:38 +00:00
rubidium fbdc1c0476 (svn r13679) -Fix [FS#2131]: saving TTD imported games in recession failed due to wrong (and unneeded) type conversions in the saveload code. 2008-07-07 09:23:54 +00:00
rubidium 3a793ceea9 (svn r13678) -Fix (r13677): electric trains from pre elrail savegames would get stopped on load. 2008-07-06 11:08:40 +00:00
rubidium 22249a7317 (svn r13677) -Fix [FS#2102]: in the case that elrails and 'realistic' acceleration are disabled all electrified engines would have no power on load, until the vehicle got turned around, loaded or got into a depot. 2008-07-04 21:43:17 +00:00
rubidium 0cc206e662 (svn r13676) -Fix [FS#2126]: inactive companies from old (TTD) saves could be marked active in some cases, which then loads garbage in their statistics and such. 2008-07-04 19:00:11 +00:00
rubidium b5f7633883 (svn r13675) -Fix: memory leak when NewGRFs got forcefully disabled and they defined GOTO labels. 2008-07-04 18:42:04 +00:00
rubidium 173f0f4cd5 (svn r13674) -Fix [FS#2127]: crash when drawing a non-real sprite. The drawing of the non-real sprite is caused when two NewGRFs replace the same sprite and the first replaces it with a real sprite (and thus assumes it remains a real sprite) and the second replaces it with a non-real sprite. OpenTTD already looked at whether the sprite to load should be seen as a real or non-real sprite, but it failed to replace non-real sprites with a substitute real sprite when getting the sprite from the cache. 2008-07-04 14:45:51 +00:00
rubidium f37a47c0cb (svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled. 2008-07-03 18:00:36 +00:00
belugas aede445e2a (svn r13672) -Fix(r13670): silent warnings that MSVC did not raised. Looks like enums can not be easily matched :( 2008-07-03 01:08:35 +00:00
frosch 4cb2fba8fb (svn r13671) -Cleanup: Zeros for sell. 2008-07-01 18:56:40 +00:00
belugas ce721a579f (svn r13670) -Codechange : Merge some very alike events handlers. 2008-07-01 00:04:09 +00:00
frosch e9e453cf8b (svn r13667) -Documentation: Comment 'tgp.cpp' a bit. Based on patch by CommanderZ. 2008-06-30 19:54:03 +00:00
belugas ac3896feaf (svn r13665) -Fix[FS#2119]: Wrong PlayerID used for sending a message to.Patch by Yexo 2008-06-30 16:59:35 +00:00
rubidium f06daceb16 (svn r13664) -Fix [FS#2117]: bus/truck forgetting go-to-depot order when entering a non-drivethrough road stop. 2008-06-30 15:13:40 +00:00
belugas 4f5eae2789 (svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus 2008-06-30 14:58:58 +00:00
rubidium 7ed892411a (svn r13662) -Fix [FS#2113]: crash when adding conditional orders to ships. 2008-06-30 14:49:50 +00:00
rubidium 6a216ee4f6 (svn r13661) -Fix: server crashing when banning the rconning client. 2008-06-30 14:48:44 +00:00
frosch ecc5d648df (svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter. 2008-06-28 15:44:24 +00:00
frosch 06049563da (svn r13648) -Cleanup (r5303): Amplitudes should be amplitudes and not amplitudes/16. 2008-06-27 20:59:30 +00:00
skidd13 9335a28cb5 (svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant 2008-06-27 17:46:43 +00:00
belugas de86235274 (svn r13646) -Change: typos and miss-aligned enum values 2008-06-27 16:16:35 +00:00
frosch 3e5f10fca6 (svn r13645) -Codechange: Convert a macro into an inlined member function. 2008-06-27 15:01:18 +00:00
belugas dde4de5e20 (svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
Thanks to glx :)
2008-06-27 02:26:51 +00:00
belugas e8cddf8baa (svn r13643) -Codechange: Enumify some loosely related values been used in the toolbar resizing processes 2008-06-27 01:26:13 +00:00
belugas 32ea99a741 (svn r13642) -Documentation: Add the enum values to the widget arrays, in concordance with code style 2008-06-26 17:43:56 +00:00
belugas 6d1e5a3f5b (svn r13641) -Fix: Misleading enum name. 2008-06-26 17:13:39 +00:00
smatz 1834a2f670 (svn r13640) -Codechange: make colours behind not fully solid objects less darker for BM_TRANSPARENT (for 32bpp blitters) 2008-06-26 16:47:29 +00:00
smatz 114c820c56 (svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
2008-06-26 15:46:19 +00:00
smatz 0b75129c24 (svn r13638) -Fix: signed/unsigned warning for MSVC9 and gcc2 2008-06-26 00:40:42 +00:00
miham 35c8cdb5fa (svn r13637) -Update: WebTranslator2 update to 2008-06-25 23:36:50
brazilian_portuguese - 9 fixed by tucalipe (9)
bulgarian  - 25 fixed by thetitan (11), kokobongo (14)
catalan    - 9 fixed, 4 changed by arnaullv (13)
croatian   - 5 fixed by knovak (5)
czech      - 8 fixed, 9 changed by Hadez (17)
dutch      - 9 fixed by habell (9)
french     - 12 fixed by glx (10), belugas (2)
italian    - 12 fixed by lorenzodv (12)
korean     - 8 fixed, 7 changed by leejaeuk5 (15)
russian    - 9 fixed by Smoky555 (9)
slovenian  - 18 fixed by Necrolyte (18)
spanish    - 9 fixed by eusebio (9)
swedish    - 8 fixed by daishan (8)
traditional_chinese - 38 fixed, 108 changed by tiberiusteng (146)
ukrainian  - 12 fixed, 2 deleted, 55 changed by mad (69)
2008-06-25 21:37:59 +00:00
frosch 17de6f9ced (svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for. 2008-06-25 20:04:27 +00:00
rubidium 7e50278d8e (svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed. 2008-06-25 19:33:11 +00:00
frosch 4e6d827ea6 (svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch(). 2008-06-25 18:46:05 +00:00
smatz 644fa40339 (svn r13631) -Fix (r13618): forgot #define avoiding multiple inclusions 2008-06-25 17:45:05 +00:00
skidd13 7a0ad3af52 (svn r13630) -Update: apply english.txt changes from r13628 to other languages 2008-06-25 17:37:12 +00:00
frosch 983e5a96f0 (svn r13629) -Fix [FS#2108](r13603): diameter != radius 2008-06-25 17:30:53 +00:00
skidd13 41b09d4027 (svn r13628) -Feature: enable building of aqueducts in the scenario editor
-Codechange: related to this split the waterway based buttons from the landscape generation window
2008-06-25 17:30:16 +00:00
smatz 7c7e08df59 (svn r13626) -Fix (r11871): signals were not updated when player removed signals from nonexistent track sharing bits with existing track
So disallow removing signals from nonexistent track
2008-06-24 23:38:10 +00:00
rubidium fdbb1f475b (svn r13624) -Fix [FS#2106]: crash when one tries to raise the nothern corner of MP_VOID tiles (i.e. the southern corner of the tiles on the southern map edge) in the scenario editor. 2008-06-24 15:58:01 +00:00
rubidium c3009c34ee (svn r13623) -Codechange: only show the 'load' of articulated RV parts that have a capacity instead of showing 'empty' parts when a vehicle is completely full. 2008-06-24 13:49:13 +00:00
rubidium 5b973282de (svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos. 2008-06-24 13:47:15 +00:00
rubidium 47933d2ddb (svn r13621) -Fix: building roadbits in the wrong direction on bridges or building roadbits from underneath the bridge to the bridgehead is impossible, so don't silently ignore that error when building over houses and industries is not ignored. 2008-06-24 11:42:01 +00:00
smatz 61847389d6 (svn r13619) -Codechange: use 'const char *' instead of std::string for blitter and driver names
Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
2008-06-24 09:15:45 +00:00
smatz fee2adb299 (svn r13618) -Codechange: move tar-specific declarations to separate file
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-24 09:05:24 +00:00
skidd13 6e1dd7f719 (svn r13617) -Codechange: calculate the diff in StationWaitingSorter directly 2008-06-23 22:51:21 +00:00
rubidium 469ecf4bd2 (svn r13612) -Fix [FS#2104]: wrong comment of CmdSetAutoReplace. Patch by Yexo. 2008-06-23 08:49:09 +00:00
rubidium 67e610a8a8 (svn r13611) -Fix [FS#2100]: if the first bridge can't be build for a given length, then none of the other bridges can. Effectively meaning that if someone replaces the first bridge with a bridge that can be only 3 tiles longs then only other bridges that can be 3 tiles long will be buildable, but only if they are 3 tiles long. 2008-06-23 08:38:07 +00:00
skidd13 b4ef380c49 (svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken 2008-06-22 15:41:38 +00:00
skidd13 640e547886 (svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead) 2008-06-22 15:21:51 +00:00
belugas 31b002dab0 (svn r13603) -Feature{newGRF]: Add var 65 in Variational Action 2 Variables for Houses.
This var will return the manhattan distance of the nearest house that match a given criteria.
The criterias can be: 0 : house ID/ 1 : Class ID/ 2 : grf ID
The search radius can be defined too, up to 64.
2008-06-21 23:59:38 +00:00
smatz 37b8e87454 (svn r13602) -Codechange: little speedup for 8bpp-optimized blitter 2008-06-21 20:58:34 +00:00
smatz 2ca4b8b2e4 (svn r13601) -Codechange: resize the Tile Info window when it is needed, make it better readable 2008-06-21 18:59:15 +00:00
belugas a6e0e2d837 (svn r13597) -Codechange: Enumification of the Map menu items.
The rework allowed to remove a function, by merging two quite similar ones.
2008-06-21 01:40:56 +00:00
frosch 4236dd3be5 (svn r13594) -Feature(ette)[FS#2093]: Supply newgrfs with 'day of month', 'leap year' and 'day of year'. 2008-06-20 21:14:10 +00:00
smatz c406ea35ec (svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken 2008-06-20 20:40:47 +00:00
skidd13 fd49e1c379 (svn r13592) -Fix: window size remembering was broken 2008-06-20 14:54:47 +00:00
peter1138 52c06f1baa (svn r13591) -Codechange: Support CB36 in the vehicle offer window. 2008-06-20 07:23:00 +00:00
belugas 1f4475d518 (svn r13590) -Codechange: Enumification of the Save/Load menu items 2008-06-20 01:55:00 +00:00
smatz 1cf74e7667 (svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis 2008-06-19 20:06:55 +00:00
belugas bee7934220 (svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think? 2008-06-19 20:04:24 +00:00
skidd13 32c2041f89 (svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
-Cleanup: some small things referring the change
2008-06-19 19:58:30 +00:00
belugas 4cc9439d65 (svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions. 2008-06-19 19:58:26 +00:00
bjarni 6bd2d0ffcb (svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support
  Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
2008-06-19 17:54:23 +00:00
rubidium bd31dda2fb (svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they are build adjacent to them. 2008-06-19 13:04:41 +00:00
rubidium 525c964f53 (svn r13579) -Fix [FS#2088]: process the order coming after a conditional order, otherwise the vehicle would already leaving the station before it knows where the next destination is, making it leave in the wrong way. However, after processing as many conditional orders as there are in the order list it will stop processing them in order to not create an infinite loop. 2008-06-19 11:45:52 +00:00
rubidium 4ccd8a6786 (svn r13576) -Codechange: disable static NewGRFs when non-static NewGRFs query them in the context of network games. This makes it impossible for static NewGRFs to disable non-static NewGRFs and 'bad' things happening because the non-static NewGRF doesn't know about the static NewGRF. 2008-06-19 10:20:45 +00:00
skidd13 2f65d35ead (svn r13575) -Codechange: Move small vector to core since it fits better in there
-Codechange: convert smallvector from struct to class
2008-06-19 10:19:02 +00:00
skidd13 c4cc5cdf3b (svn r13574) -Doc: Document the small vector template class 2008-06-19 09:33:50 +00:00
skidd13 e7f2765f4c (svn r13573) -Codechange: Use smallvec class functions instead of class members 2008-06-19 09:32:25 +00:00
rubidium f2730396da (svn r13572) -Fix: MSVC x64 complains. 2008-06-19 09:15:52 +00:00
smatz 7a7ff65ac5 (svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines 2008-06-18 21:19:04 +00:00
smatz bc12e5453c (svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to 2008-06-18 20:20:12 +00:00
smatz 29985b768c (svn r13565) -Change [FS#2077]: when invisibility is set, sprite sequences are now drawn until first non-opaque sprite is found (bit 14 not set)
This is to balance performance, code complexity and NewGRF requirements
2008-06-18 16:48:58 +00:00
smatz cc2f9187cc (svn r13564) -Codechange: do not use SetPixel in PaletteAnimate, access destination directly instead. Makes palette animation ~40% faster. 2008-06-18 13:11:02 +00:00
belugas be4e7b86f3 (svn r13562) -Codechange: Yet another enumification, which required a bit of explanation/documentation of a trickery some would call a hack 2008-06-18 03:19:31 +00:00
belugas 22c017c0c2 (svn r13561) -Codechange: two more enumifications of widgets 2008-06-18 02:38:28 +00:00
belugas f16b9dcd2b (svn r13560) -Fix(r13550): This section widget_count did not required to be lowered. So small revert 2008-06-18 02:04:01 +00:00
belugas 5408e1a51b (svn r13559) -Codechange: Enumification of the Options menu items 2008-06-17 23:51:17 +00:00
smatz 9da745b381 (svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined 2008-06-17 19:38:00 +00:00
smatz dedb0033b3 (svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized 2008-06-17 17:25:22 +00:00
belugas 6d4590ec7c (svn r13550) -Fix(r13540, r13542): widget_count did not had the same value as 27. So, it has to be lowered by one, so it can be used as a widget "pointer" 2008-06-17 16:33:55 +00:00
peter1138 26879ce24a (svn r13544) -Codechange: Add support for NewGRF varaction2 variable 5F. 2008-06-17 07:05:17 +00:00
belugas d3fa4228cb (svn r13543) -Codechange: Enumification of the InGame toolbar and some leftovers of scenario editor one.
Still more go do
2008-06-17 03:20:04 +00:00