Commit Graph

6360 Commits

Author SHA1 Message Date
frosch b07ef35f44 (svn r16618) -Fix (r16614): Silence a warning. 2009-06-21 20:59:30 +00:00
rubidium acff607624 (svn r16617) -Cleanup: some incorrect indenting 2009-06-21 20:57:01 +00:00
translators 2eca42f5be (svn r16616) -Update from WebTranslator v3.0:
french - 41 changes by glx
2009-06-21 17:37:07 +00:00
yexo 2aeaa7a11a (svn r16615) -Fix (r16613): 0x10 != 2 2009-06-21 13:30:21 +00:00
yexo c7bd6c8d34 (svn r16614) -Codechange: Make the airport min/max available year a property of the Airport class.
-Change: rename station.always_small_airport to station.never_expire_airports to make it more future-proof
2009-06-21 13:26:30 +00:00
yexo 548a605263 (svn r16613) -Fix [NewGRF]: some of the var action 2 80+ variables contained wrong results due to OpenTTD codechanges 2009-06-21 10:11:04 +00:00
alberth 41c8baa7dc (svn r16612) -Fix (r16605): ASCII_LETTERSTART should be defined unconditionally (leeus) 2009-06-21 08:35:05 +00:00
belugas 6262d3bb73 (svn r16611) -Doc Fix(r16606): "then" became "the" and now is gone.
In other words, fix a comment ;)
2009-06-20 23:22:46 +00:00
rubidium 460d99abcf (svn r16610) -Fix: remove rogue space before '?' 2009-06-20 19:23:45 +00:00
alberth e994d1ddaa (svn r16609) -Codechange: Introduction of widget sizes and offsets used while drawing. 2009-06-20 18:06:37 +00:00
translators 05bb636ba4 (svn r16607) -Update: WebTranslator2 update to 2009-06-20 17:50:41
estonian   - 1 changed by lible (1)
russian    - 31 fixed, 40 changed by Lone Wolf (71)
2009-06-20 17:50:44 +00:00
alberth c1ef6abc6a (svn r16606) -Doc: Added/fixed doxygen comments. 2009-06-20 15:48:55 +00:00
alberth 0aed5bf7d7 (svn r16605) -Codechange: Move ASCII_LETTERSTART to the right source file. 2009-06-20 15:25:28 +00:00
alberth 8aa51823fc (svn r16604) -Codechange: Use FS_BEGIN for iterating over fonts. 2009-06-20 15:05:59 +00:00
smatz 4419366f94 (svn r16603) -Codechange: enumify map size limits (based on a patch by Bilbo) 2009-06-20 11:25:39 +00:00
peter1138 88ec646c1f (svn r16602) -Fix (r13831): Antialiased fonts broken; check pixel_mode instead of palette_mode. (Why did it work at some point?) 2009-06-20 09:35:22 +00:00
rubidium 9b156c1bd4 (svn r16601) -Fix [FS#2880]: try 2... hopefully better this time 2009-06-19 20:26:18 +00:00
frosch 83f8d52a67 (svn r16600) -Fix: Give a more meaningful error message when console commands expect an integer but don't get one. 2009-06-19 15:48:13 +00:00
rubidium 6a3a304283 (svn r16599) -Fix [FS#2987] (r16584): reset the 'current' font size after drawing, this way we won't draw other strings too small; only caused problems when tiny/big text strings would use SETX. 2009-06-19 12:08:44 +00:00
smatz 0961668e14 (svn r16596) -Fix (r16378): there were several hundreds of empty signs above tile 0 after loading TTO/TTD savegame 2009-06-18 18:13:38 +00:00
translators ca15d98db3 (svn r16595) -Update: WebTranslator2 update to 2009-06-18 17:50:03
russian    - 31 fixed, 11 changed by Lone Wolf (42)
2009-06-18 17:50:05 +00:00
rubidium 904d2bc458 (svn r16594) -Fix [FS#2969]: mouse would under some circumstances not be undrawn when drawing the first chat line causing two mouse pointers to be visible. 2009-06-18 17:16:29 +00:00
rubidium 1359471d3f (svn r16593) -Cleanup: realign the TTDP flags table. 2009-06-18 15:59:21 +00:00
rubidium a497e3ff4a (svn r16592) -Fix [FS#2880]: 'connection lost' was also shown when the client was 'leaving'. 2009-06-18 15:05:45 +00:00
rubidium cdc0c092f1 (svn r16591) -Codechange: some coding style in strgen 2009-06-18 11:17:55 +00:00
rubidium 98b4f1fce2 (svn r16590) -Fix [FS#2967]: don't crash when tars/newgrfs are removed, just tell the file could be opened/found. 2009-06-18 09:47:06 +00:00
translators 05e5f80ebd (svn r16587) -Update: WebTranslator2 update to 2009-06-17 17:39:59
estonian   - 16 changed by lible (16)
russian    - 10 changed by Lone Wolf (10)
slovenian  - 27 fixed by Necrolyte (27)
2009-06-17 17:40:41 +00:00
rubidium 35aabc1d4c (svn r16586) -Codechange: don't store lifelength in the savegame; it can easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect. 2009-06-17 17:13:30 +00:00
yexo d09d3566dd (svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys 2009-06-17 13:12:08 +00:00
rubidium 121a569125 (svn r16584) -Fix [FS#2965]: sometimes SETX/SETXY would lead to unexpected results for NewGRF texts.
Note: This readds support for centering strings with SETX, however the text part of the string will not be in the exact center, as the SETX offsets that.
Note: All means of aligning vehicle names behind wide sprites (SETX or lots of spaces) in the buy menu will cause the vehicle names to be misaligned in other places, like the new vehicle news message, exclusive use of vehicle message, detailed vehicle information or autoreplace.
2009-06-17 13:04:37 +00:00
rubidium 56fea2bb2b (svn r16583) -Update: the order of the language files so it's in sync with english.txt. Normally WT2 would do this, but only with activity for those languages. Now we'd like to the order to match so we can more easily spot import bugs while developing WT3. 2009-06-16 22:04:36 +00:00
translators 67876f56e9 (svn r16582) -Update: WebTranslator2 update to 2009-06-16 17:10:36
estonian   - 3 fixed, 47 changed by lible (50)
russian    - 31 fixed, 225 changed by Lone Wolf (256)
2009-06-16 17:10:40 +00:00
rubidium 512b021e26 (svn r16581) -Codechange: unify the access to Engine::lifelength. 2009-06-16 13:52:18 +00:00
rubidium 4b05617c42 (svn r16580) -Codechange: rename Engine::image_index to original_image_index to not confuse it with image_index from *VehInfo. 2009-06-16 13:31:06 +00:00
rubidium 20f73b2f50 (svn r16579) -Codechange: rework smallmap code a bit; remove goto, remove some unneeded variables, return value directly instead of writing it to a variable to later return that 2009-06-16 10:46:11 +00:00
translators 238872d3bd (svn r16578) -Update: WebTranslator2 update to 2009-06-14 17:33:27
russian    - 39 fixed, 121 changed by Lone Wolf (160)
simplified_chinese - 3 fixed by ww9980 (3)
traditional_chinese - 3 fixed by ww9980 (3)
2009-06-14 17:33:32 +00:00
rubidium fa1dcd4194 (svn r16577) -Fix: signed/unsigned comparison 2009-06-14 17:02:09 +00:00
rubidium 28e6b46a41 (svn r16576) -Fix: show the line of the translation file that has the fault and not the line of the string in english.txt. 2009-06-14 17:01:12 +00:00
alberth f23afd988f (svn r16575) -Fix (r15760): Move resize sprite to the right when widget is lowered for RTL languages also. 2009-06-14 15:50:39 +00:00
rubidium 4cd94e17a1 (svn r16574) -Codechange: reorder stuff in NetworkGameInfo so compilers waste less bytes aligning stuff and fix the comment of the structs. 2009-06-13 22:48:41 +00:00
rubidium f8bccce555 (svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file. 2009-06-13 12:06:31 +00:00
rubidium 2a7b07137a (svn r16572) -Codechange: also catch FPEs in saveload and the warning about missing NewGRFs; only happens when assertions are disabled and NewGRFs are missing. 2009-06-13 12:03:37 +00:00
smatz 62f120b296 (svn r16571) -Fix [FS#2974](r16322): in some cases, train could be stuck in depot 2009-06-13 10:22:22 +00:00
yexo ea03c76bd6 (svn r16569) -Codechange: remove the gaps in the AirportTiles enum 2009-06-12 19:44:47 +00:00
yexo 1e9ddd18b3 (svn r16568) -Codechange: rename all arrays with airport-tile sprites 2009-06-12 18:32:10 +00:00
yexo f0e31a36df (svn r16567) -Fix (r16566): some minor corrections 2009-06-12 15:31:38 +00:00
yexo 4b34957987 (svn r16566) -Codechange: enumify all airport tiles 2009-06-12 14:53:57 +00:00
translators 88a20b7ea2 (svn r16565) -Update: WebTranslator2 update to 2009-06-11 17:32:14
russian    - 3 fixed, 1 deleted, 209 changed by Lone Wolf (213)
serbian    - 95 fixed by etran (95)
2009-06-11 17:32:17 +00:00
yexo b3c3cf6e6d (svn r16563) -Fix [NoAI]: AIMarine::AreWaterTilesConnected didn't return true for bridge head<>neighbouring water tile 2009-06-11 14:29:03 +00:00
yexo f92feb2a95 (svn r16562) -Revert (r16561) 2009-06-11 14:17:26 +00:00
yexo 176e55a8a3 (svn r16561) -Fix [NoAI]: AIMarine::AreWaterTilesConnected didn't return true for bridge head<>neighbouring water tile 2009-06-11 14:15:18 +00:00
smatz c756fdd6da (svn r16560) -Fix (r16559): wrong replacement at one place 2009-06-10 22:11:39 +00:00
smatz bea3fe2b8b (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 2009-06-10 22:05:01 +00:00
alberth bc7e9514d2 (svn r16558) -Codechange: Switch found-town window to nested widgets. 2009-06-10 20:48:22 +00:00
smatz 8563b77fee (svn r16557) -Feature(tte) [NoAI][FS#2892]: mark dead AIs by red background in the AIDebug window 2009-06-10 19:26:04 +00:00
smatz 83e2df5b72 (svn r16556) -Codechange [NoAI]: use accessor for AIInstance::is_dead 2009-06-10 19:23:25 +00:00
smatz 35635c6248 (svn r16555) -Feature [FS#570]: ability to enter server and company password via command line when joining a server (based on patch by Progman, Ammler and planetmaker) 2009-06-10 19:00:34 +00:00
smatz 3eb8f643fb (svn r16554) -Fix (r16433): compilation with disabled network was broken 2009-06-10 18:53:43 +00:00
smatz 5a6bb53894 (svn r16553) -Codechange: don't use TRACK_BIT_WORMHOLE and TRACK_BIT_DEPOT as bitmasks 2009-06-10 16:02:00 +00:00
smatz 5e1c59c3de (svn r16552) -Codechange: make AddTileIndexDiffCWrap() a bit faster 2009-06-10 14:07:08 +00:00
smatz d6996c110a (svn r16551) -Codechange: use shift instead of multiplication in TileXY() 2009-06-10 13:44:37 +00:00
smatz ec78a39f9e (svn r16550) -Codechange: move definition of ScaleByMapSize to header file, use shifts instead of mults 2009-06-10 08:18:40 +00:00
smatz 4e2c1ef08f (svn r16549) -Codechange: use bool in TileLoopClearHelper 2009-06-10 07:19:48 +00:00
smatz 498d2b0caa (svn r16548) -Fix (r16538): removing of duplicates of base graphics set could behave randomly 2009-06-10 05:36:58 +00:00
smatz 0c0943fe83 (svn r16547) -Codechange: make CircularTileSearch a tiny bit faster 2009-06-09 23:34:48 +00:00
smatz fd191dd616 (svn r16546) -Codechange: use array member instead of allocating in costructor and freeing in desctructor 2009-06-09 23:22:37 +00:00
smatz 1c5ca9822d (svn r16545) -Cleanup: tunnels have been returning correct SlopeZ since r1 2009-06-09 20:04:46 +00:00
smatz 249b6e6798 (svn r16544) -Codechange: use double-linked list for vehicle position caches in order to improve performance (~5% with many vehicles) 2009-06-09 17:20:06 +00:00
translators ea1a523a89 (svn r16543) -Update: WebTranslator2 update to 2009-06-09 17:05:46
russian    - 6 deleted, 276 changed by Lone Wolf (282)
2009-06-09 17:05:50 +00:00
smatz e16314d58f (svn r16542) -Fix [FS#2971](r16307): depend failed on architectures with unsigned char 2009-06-09 13:35:30 +00:00
rubidium afdeab52ab (svn r16538) -Fix (r16503): when finding duplicate graphics sets favour the more complete one 2009-06-08 22:13:10 +00:00
translators 050bbb4dac (svn r16537) -Update: WebTranslator2 update to 2009-06-08 17:40:35
french     - 1 fixed by glx (1)
german     - 1 changed by planetmaker (1)
russian    - 31 fixed, 89 changed by Lone Wolf (120)
2009-06-08 17:40:46 +00:00
frosch 8cbf116c62 (svn r16536) -Fix (r16535): W != S 2009-06-08 15:44:11 +00:00
frosch 53a711ede0 (svn r16535) -Fix (r16146): In one case a too small portion of the screen was marked dirty, when (un-)drawing selections. 2009-06-08 15:42:35 +00:00
yexo 1df029de1d (svn r16534) -Fix [Squirrel] [FS#2942]: fix crash that occured when an AI was halted while one or more generators were still in a 'running' state 2009-06-07 20:20:22 +00:00
translators 95f7c05199 (svn r16533) -Update: WebTranslator2 update to 2009-06-07 17:45:47
icelandic  - 8 fixed, 50 changed by scrooge (58)
russian    - 8 fixed, 28 changed by Lone Wolf (36)
serbian    - 100 fixed by etran (100)
2009-06-07 17:45:52 +00:00
yexo 9db1f5925c (svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL 2009-06-07 15:54:37 +00:00
alberth e3ba9c487f (svn r16530) -Fix [FS#2964], (r16501): Deduct additional widget length given away to a child from the total (Hirundo). 2009-06-07 14:34:43 +00:00
yexo 726ba50868 (svn r16529) -Fix [NoAI]: StationIDs from oilrigs were not considered valid by the API. 2009-06-07 13:29:09 +00:00
frosch 8745a30971 (svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead. 2009-06-07 13:25:21 +00:00
smatz 0c10006907 (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check 2009-06-06 16:54:22 +00:00
smatz c90819ff6d (svn r16526) -Fix: don't cast Vehicle to RoadVehicle when it's not a RoadVehicle 2009-06-06 16:49:45 +00:00
frosch 5b497d6b49 (svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost. 2009-06-06 14:46:50 +00:00
rubidium ec3ef70adb (svn r16524) -Fix [FS#2963]: missing guards in the NoAI API making it possible to hit an assert in OpenTTD. 2009-06-06 11:47:21 +00:00
frosch 0b8ceb3007 (svn r16523) -Fix (rNewPool): Segfault when small ufos were heading for deleted vehicles. 2009-06-06 10:40:16 +00:00
yexo 59ae226ab1 (svn r16522) -Fix [FS#2962]: possible assert in ai debug window when an AI was stopped an a human company took it's CompanyID 2009-06-06 01:53:17 +00:00
frosch 4554c79b54 (svn r16521) -Fix [FS#2946] (r13945): Do not access 'compatible_railtypes' for road vehicles. (causing invalid reads since r16391/16392) 2009-06-05 21:19:38 +00:00
yexo ad5f018195 (svn r16520) -Fix [NoAI]: Make sure AIBridge::BuildBridge returns what the documentation says it does (r16244 for AIBridge) 2009-06-05 17:36:39 +00:00
alberth ec5db12adc (svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar. 2009-06-05 07:25:26 +00:00
translators 69d86f0b11 (svn r16518) -Update: WebTranslator2 update to 2009-06-04 16:25:41
swedish    - 39 fixed by daishan (39)
2009-06-04 16:25:43 +00:00
alberth 19ccf6912c (svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees. 2009-06-04 14:34:38 +00:00
alberth b144a5451c (svn r16516) -Codechange: Added click and drag handling for nested widgets. 2009-06-04 14:07:05 +00:00
alberth 1a4934ef07 (svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree. 2009-06-04 12:46:37 +00:00
alberth 5c9071fcff (svn r16514) -Codechange: Add widget flags, and drawing and invalidating. 2009-06-03 21:13:13 +00:00
alberth 1ba3755aa7 (svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array. 2009-06-03 20:00:33 +00:00
rubidium caf98238e3 (svn r16510) -Doc: silence some (AI) doxygen warnings by adding comments about the appropriate things. 2009-06-03 18:47:08 +00:00
yexo 13c69b897e (svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function 2009-06-03 15:59:26 +00:00
smatz d1a50f5258 (svn r16507) -Fix (r16503): segfault when deleting non-last graphics set 2009-06-03 00:05:51 +00:00
smatz 2b4d37de3d (svn r16506) -Fix: count only active clients (not those waiting for map download) when checking min_active_clients limit 2009-06-02 19:56:23 +00:00
rubidium 2fc0cb3e76 (svn r16505) -Fix [FS#2951] (r16472): since g++ 4.4 the implicit (default) constructor will zero the whole class. This caused all vehicle indices to be 0, which causes all kinds of trouble. 2009-06-02 19:12:28 +00:00