Commit Graph

4380 Commits

Author SHA1 Message Date
rubidium 08e7da71f5 (svn r14062) -Fix [FS#2226]: division by 0 in newai. 2008-08-13 05:12:36 +00:00
belugas c773d33cc3 (svn r14061) -Codechange: constification and move a declaration more logically 2008-08-13 02:48:50 +00:00
belugas 931f16cfa8 (svn r14060) -Codechange: Replace numbers with Colours enum on Gen world gui.
Note that some WWT_TEXT widgets have received a COLOUR_x value.
It is not a valid colour a per say.  THe strings been displayed there do have their own colours encoded.
IT is currently just for the sake of ease of writing, as TextColour and Colours are not really related.
2008-08-13 02:43:42 +00:00
belugas 7564dbd32f (svn r14059) -Fix(r13872): Wrong comments in enum. Dear old copy/paste... 2008-08-13 01:48:58 +00:00
rubidium 0b9be84d46 (svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime) 2008-08-12 22:14:57 +00:00
rubidium d1073ba574 (svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime) 2008-08-12 22:12:14 +00:00
rubidium fe87fa8205 (svn r14056) -Fix [FS#2192]: the console backlog is too small for list_patches. Now it'll only remove backlog items when there are more than a threshold and when they are there longer than (another) threshold. 2008-08-12 20:49:27 +00:00
rubidium 203b5eed27 (svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit. 2008-08-12 20:31:49 +00:00
rubidium 4ae352d288 (svn r14054) -Fix (rthebeginning): long strings in the edit box would cause OpenTTD to stop drawing the string. This is especially noticable with low resolutions and the chat input box. 2008-08-12 19:29:10 +00:00
rubidium 72c154fd0f (svn r14052) -Codechange: make the size of the chat message "box" configurable and increase the default size slightly so it can hold the longest chat messages. 2008-08-12 12:23:05 +00:00
rubidium a3910ced70 (svn r14051) -Codechange: enumify the DrawString buffer length. 2008-08-12 11:21:37 +00:00
belugas 61007078b6 (svn r14049) -Codechange: rename a variable to a somewhat more descriptive one. And constify it too. 2008-08-12 02:20:39 +00:00
rubidium c04ab6628b (svn r14048) -Fix (r14019) [FS#2222]: Redo the check for reserved tracks properly this time. (michi_cc) 2008-08-11 22:58:30 +00:00
rubidium d0c1a989a4 (svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support. 2008-08-11 22:45:11 +00:00
rubidium 6995365535 (svn r14046) -Codechange: make the size of querystring "widgets" more configurable. 2008-08-11 22:08:56 +00:00
rubidium 3b4c3a3df6 (svn r14045) -Codechange: move the network's limitation to chat messages to a more logical location and give it a more consistent name. 2008-08-11 22:07:26 +00:00
belugas 5f52c44c14 (svn r14043) -Codechange: Rename a variable to a more obvious name. And a few comments added too. 2008-08-11 20:06:57 +00:00
belugas 7f5173bf94 (svn r14042) -Codechange: Rename some structure members to more obvious names. And add a few comments on the _extra_palette_values array. 2008-08-11 18:30:52 +00:00
glx 16aac30c66 (svn r14041) -Feature(tte): make it possible to filter list_patches output like it's done for other list_* console commands 2008-08-11 17:15:31 +00:00
belugas ebe9ae2b17 (svn r14040) -Codechange:Remove a hard coded value that is not even representative,
since captions have their own encoded colours in string.
2008-08-11 16:31:36 +00:00
rubidium 8726c2fd99 (svn r14039) -Fix [FS#2217]: reversing an overlength train at a station would try to find a route out and sometimes reset the unload counter making it wait 2.5 years before departing instead of waiting until the train would actually leave the station (michi_cc) 2008-08-10 21:56:47 +00:00
rubidium 2086f77dab (svn r14038) -Fix [FS#2211] (r13731): company limit was not properly enforced for CMD_PLAYER_CTRL. 2008-08-10 19:00:33 +00:00
frosch 4eae917c1c (svn r14037) -Fix (r8610): The autoreplace gui showed vehicle types for replacement which CmdSetAutoReplace() did not accept. 2008-08-10 15:02:21 +00:00
rubidium b1ed3bad58 (svn r14036) -Fix [FS#2197,FS#2198]: trains crashing into eachother when signals are changed (michi_cc) 2008-08-10 13:37:09 +00:00
translators 1c04049f1c (svn r14035) -Update: WebTranslator2 update to 2008-08-10 11:54:57
bulgarian  - 4 fixed by thetitan (4)
croatian   - 15 fixed by knovak (15)
czech      - 47 fixed, 29 changed by Hadez (76)
dutch      - 29 fixed by habell (29)
estonian   - 8 fixed, 63 changed by kristjans (71)
french     - 29 fixed, 1 changed by glx (30)
italian    - 29 fixed, 6 changed by lorenzodv (35)
russian    - 52 fixed by Smoky555 (52)
slovak     - 2 fixed by lengyel (2)
spanish    - 35 fixed by eusebio (35)
ukrainian  - 30 fixed by mad (30)
2008-08-10 09:55:26 +00:00
peter1138 8531a1f430 (svn r14034) -Cleanup (r13938) [FS#2210]: Typo in YAPP constant. (Eddi) 2008-08-09 18:46:51 +00:00
peter1138 6ad76f4d1c (svn r14033) -Fix (r13938) [FS#2209]: Wrong offset in signal GUI. (Eddi) 2008-08-09 18:42:37 +00:00
bjarni fbef6535a5 (svn r14032) -Fix (r13584): [OSX] changed the condition for selecting 8 or 32 bpp blitter by default
Now we will pick 32 bpp if no 8 bpp fullscreen resolutions are available on the main display (the one with the dock)
2008-08-09 17:56:31 +00:00
frosch 731685cf64 (svn r14031) -Fix (r13850): Determining the refit cargo did not work, when the old vehicle did not carry anything but the new one did. 2008-08-09 16:42:55 +00:00
frosch 92afb4d9bd (svn r14030) -Fix (r14027): true != false, also rename the parameter to make 'true' and 'false' more intuitively useable. 2008-08-09 11:04:42 +00:00
belugas 815f08982a (svn r14029) -Fix(r14027): reverting the TC_FROMSTRING back to the magical 0xFE number. Exact meaning will need to be found later. 2008-08-09 03:30:15 +00:00
belugas 9e883ca48f (svn r14028) -Fix(r14027): Wrong value for the multiline_skipping. Just the other way around. 2008-08-09 02:54:06 +00:00
belugas e3ea3c8fbe (svn r14027) -Codechange: Document a bit the DoDrawString function while removing yet som more magic numbers and one "false" colour 2008-08-09 02:11:46 +00:00
glx 788b625553 (svn r14026) -Cleanup (r13995, r14004): trailing whitespaces 2008-08-08 15:49:16 +00:00
smatz cc3685ffaf (svn r14024) -Fix (r14019) [YAPP]: YAPF also skips tunnels and bridges. Honor that in penalty calculations. (michi_cc) 2008-08-08 15:02:21 +00:00
smatz 872cefeb27 (svn r14023) -Fix (r13944) [YAPP]: If YAPF encountered a dead-end that had a signal on it, is could be falsely seen as a valid destination. (michi_cc) 2008-08-08 14:58:27 +00:00
smatz b595d59497 (svn r14022) -Fix (r13957) [YAPP]: Removing station tiles could produce stale reservations, too. (michi_cc) 2008-08-08 13:53:06 +00:00
smatz 5229e45363 (svn r14021) -Fix (r13957) [YAPP]: Overbuilding station tiles with non-track tiles could produce stale reservations. (michi_cc) 2008-08-08 13:29:18 +00:00
rubidium de629dd62f (svn r14019) -Fix [FS#2205]: game crash after order skip while waiting for free path (michi_cc). 2008-08-08 09:31:50 +00:00
peter1138 2cb555ed11 (svn r14018) -Fix (r14017): Typos prevented compilation. 2008-08-08 06:02:06 +00:00
belugas ef22740ccb (svn r14017) -Codechange: DrawArrowButtons now uses Colours enum to specify the colour of the button 2008-08-08 03:37:00 +00:00
belugas a2f590aeec (svn r14016) -Codechange: Remove some magical numbers 2008-08-08 02:28:28 +00:00
peter1138 3c2f69bf62 (svn r14015) -Codechange: Add facility for a drop down list to always close (if requested) when the mouse button is released. 2008-08-07 18:26:13 +00:00
peter1138 6bae045b4a (svn r14014) -Codechange: Add support for automatically sizing drop down lists to the widest list item. 2008-08-07 18:11:09 +00:00
rubidium bf65e7e8f9 (svn r14013) -Fix [FS#2202]: do not allow extending signals by dragging in any direction other than the track direction. 2008-08-07 13:07:51 +00:00
peter1138 a993a29b63 (svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals. 2008-08-07 07:48:57 +00:00
belugas 8c7a450e98 (svn r14011) -Codechange: not required to define an enum which was just the representation of another.
If you want to customize it more easily, why not a simple const of said enum value?
2008-08-07 01:28:27 +00:00
peter1138 aff313cd4b (svn r14009) -Cleanup (r14008): Bad whitespace... 2008-08-06 20:14:21 +00:00
peter1138 1e5175451a (svn r14008) -Fix (r14004): NewGRF preset drop down list not working 2008-08-06 20:12:42 +00:00
frosch acf224683d (svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside. 2008-08-06 19:00:31 +00:00
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