Commit Graph

4805 Commits

Author SHA1 Message Date
rubidium e557c88667 (svn r14830) -Fix [FS#2495]: overflow of number of orders per vehicle (based on patch by Swallow) 2009-01-04 15:53:43 +00:00
smatz 9658c83a33 (svn r14829) -Fix (r14828): forgot CH_LAST 2009-01-04 15:46:50 +00:00
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00
rubidium c9e8fd307e (svn r14827) -Feature [FS#1984]: few (optional) optimisations to making (initial) orders (sulai) 2009-01-04 14:51:49 +00:00
rubidium ce5304f9a2 (svn r14826) -Fix [FS#2494]: infinite loop in order lookahead when reserving a path (Swallow) 2009-01-04 14:36:19 +00:00
rubidium 2283b8038f (svn r14825) -Fix: pay the correct amount of interest instead of a few percent too little a year 2009-01-04 14:32:30 +00:00
rubidium 8c33893ffd (svn r14824) -Fix [FS#1725]: mouse events could be treated twice (illogict) 2009-01-04 12:09:48 +00:00
rubidium 702c372744 (svn r14823) -Document: some variables/structs (Alberth) 2009-01-04 11:32:26 +00:00
rubidium 2a47aaf4a8 (svn r14822) -Change: save 'build station' settings in the config file, like drag'n'drop and and show coverage area (Rexxars) 2009-01-04 11:11:11 +00:00
rubidium e15231c4a4 (svn r14821) -Change [FS#2390]: make the road grids of town match, when all are using the same road layout ofcourse (cirdan) 2009-01-04 10:50:24 +00:00
rubidium fad3519d4f (svn r14820) -Codechange: use (the correct) enum-type instead of just int (Zuu) 2009-01-03 23:40:29 +00:00
rubidium 3024850bb1 (svn r14819) -Change: make details and order menu stickyable, like the timetable window. Also let the detail/order/timetable window close eachther, like the detail and order windows already did, when not stickied. 2009-01-03 23:32:59 +00:00
smatz 799f30c663 (svn r14817) -Cleanup: unify the place where the @file header is placed 2009-01-03 22:20:18 +00:00
glx 502607410e (svn r14816) -Fix: signed/unsigned warnings (MSVC) 2009-01-03 19:39:22 +00:00
smatz 09cd9a8017 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 2009-01-03 18:44:20 +00:00
translators db56caff3d (svn r14814) -Update: WebTranslator2 update to 2009-01-03 18:29:54
arabic_egypt - 9 fixed by khaloofah (9)
brazilian_portuguese - 9 fixed by tucalipe (9)
dutch      - 9 fixed by Excel20 (9)
french     - 10 fixed, 1 changed by glx (11)
hebrew     - 31 fixed by EScake (31)
hungarian  - 9 fixed by alyr (9)
indonesian - 32 changed by fanioz (32)
italian    - 9 fixed by lorenzodv (9)
korean     - 9 fixed by dlunch (9)
polish     - 10 fixed by xaxa (10)
slovenian  - 24 fixed by Necrolyte (24)
spanish    - 14 fixed by eusebio (14)
thai       - 95 fixed, 1 changed by vetbook (96)
ukrainian  - 1 fixed, 6 changed by mad (7)
2009-01-03 18:30:10 +00:00
rubidium 11c25a72fa (svn r14813) -Codechange: use uint instead of 'just' unsigned. 2009-01-03 17:28:22 +00:00
smatz afef22e3e7 (svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ 2009-01-03 17:11:52 +00:00
rubidium 6512d717e1 (svn r14811) -Fix: off-by-one causing possible out-of-bounds reads. 2009-01-03 17:10:20 +00:00
rubidium 099022224f (svn r14810) -Codechange: use the proper style for global variables. 2009-01-03 17:09:31 +00:00
rubidium 455a6e4554 (svn r14809) -Fix (r14802): forgotten ! 2009-01-03 16:35:25 +00:00
smatz 16fb54da5e (svn r14808) -Fix (r1): coal mine subsidence could wrap around map edges 2009-01-03 16:27:52 +00:00
smatz 254e19da91 (svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints 2009-01-03 16:06:58 +00:00
smatz 21308de6cb (svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes 2009-01-03 15:03:28 +00:00
rubidium 51b9091689 (svn r14805) -Feature [FS#2238]: pressing CTRL while dragging to build a bridge build the last built bridge type if possible (planetmaker) 2009-01-03 14:16:18 +00:00
rubidium e5c1a7b5c3 (svn r14804) -Codechange: unify opening the OSK (Zuu) 2009-01-03 13:59:05 +00:00
rubidium 0d54db5f9f (svn r14803) -Codechange: move order list management into it's own class and remove the order count from the savegame as we can easily count that (PhilSophus) 2009-01-03 13:52:06 +00:00
rubidium fa2bf69a53 (svn r14802) -Fix [FS#2490]: "(undefined string)" in default savegame/screenshot names when there's no company in the game. 2009-01-03 13:27:08 +00:00
rubidium d428da5a35 (svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus) 2009-01-03 13:20:32 +00:00
rubidium 18b27692aa (svn r14800) -Codechange: make the advanced settings window resizeable and scrollable (most by Alberth) 2009-01-03 11:24:27 +00:00
rubidium fcee426b80 (svn r14799) -Codechange: move drawing a single settings entry to it's own function (Alberth) 2009-01-03 11:07:43 +00:00
rubidium d9bc99658b (svn r14798) -Codechange: move variable declaration to first use of variable (Alberth) 2009-01-03 11:03:53 +00:00
rubidium 489584b85e (svn r14797) -Codechange: replace even more magic numbers with constants (Alberth) 2009-01-03 11:00:40 +00:00
rubidium c3954f2e38 (svn r14796) -Fix: if using variable, use it everywhere instead of hardcoding it's value sometimes (Alberth) 2009-01-03 10:56:38 +00:00
rubidium 6913ae5a5f (svn r14795) -Codechange: replace a magic number with a constant (Alberth) 2009-01-03 10:53:49 +00:00
rubidium 8ff93c2c14 (svn r14794) -Document: a few functions/variables (Alberth) 2009-01-03 10:52:22 +00:00
rubidium f77503e5a3 (svn r14793) -Update (r14792): replace a string parameter in the other languages too 2009-01-03 01:01:12 +00:00
rubidium 35f5783c62 (svn r14792) -Feature: make the date format for default savegame/screenshot names configurable 2009-01-03 00:58:59 +00:00
rubidium aff7feb767 (svn r14791) -Add: the ability to make ISO dates with the string system (PhilSophus) 2009-01-03 00:56:16 +00:00
rubidium 3a0d966ae4 (svn r14790) -Codechange: unify generation of default savegame/screenshot names (PhilSophus) 2009-01-02 22:49:43 +00:00
rubidium 1357b0a4c2 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 2009-01-02 22:42:05 +00:00
rubidium 2086fbcf17 (svn r14788) -Fix [FS#2489]: some TTDPatch flags were wrong (Swallow) 2009-01-02 22:18:05 +00:00
rubidium 35f76ce26b (svn r14787) -Fix: landscape toolbar getting closed when rail/road/water/airport toolbar gets closed with linked toolbars turned on. 2009-01-02 21:01:27 +00:00
rubidium 5b3a2ed2ab (svn r14786) -Fix: road/rail/water/airport toolbar opened over terraform toolbar when toolbar linking is turned on. 2009-01-02 21:01:13 +00:00
rubidium b3f2f40db7 (svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view. 2009-01-02 20:59:04 +00:00
rubidium bde4b6020a (svn r14784) -Change: don't close and reopen the vehicle order/detail windows, just refocus them instead. 2009-01-02 20:01:28 +00:00
rubidium 0c352ede7a (svn r14783) -Fix (r12661): don't add vehicles with "go to nearest depot" to the vehicle list of the depot with index 0. 2009-01-02 19:45:46 +00:00
translators 3000a62f53 (svn r14782) -Update: WebTranslator2 update to 2009-01-02 18:38:20
arabic_egypt - 7 fixed by khaloofah (7)
brazilian_portuguese - 14 fixed, 5 changed by tucalipe (19)
catalan    - 14 fixed by arnaullv (14)
finnish    - 14 fixed by jpx_ (14)
hungarian  - 14 fixed by alyr (14)
indonesian - 6 changed by fanioz (6)
korean     - 13 fixed by dlunch (13)
malay      - 8 fixed by tombakemas (8)
serbian    - 29 fixed, 2 changed by nummer (31)
thai       - 2 fixed by chat9780 (2)
ukrainian  - 13 fixed by mad (1), znikoz (12)
urdu       - 20 fixed by yasirniazkhan (20)
2009-01-02 18:38:33 +00:00
rubidium 6513bf3a3a (svn r14781) -Change: someone changed _cur_year; so update it in a few hardcoded places... happy new year!
-Fix (r11790): a few instances were forgotten.
2009-01-01 22:21:25 +00:00
rubidium 5a6d3a601d (svn r14779) -Fix (r14747) [FS#2485]: selling an articulated vehicle removed only the first part and not the rest. 2008-12-31 17:52:42 +00:00
glx 9a5f4f28f4 (svn r14778) -Change: completely hide 'Submit report' button on crash dialog (MSVC) 2008-12-31 17:01:33 +00:00
peter1138 5f4aef3c11 (svn r14776) -Fix (r14742): ListPositionMap relied on std::map having sorted the map, which is now done by a manual key sorter on SmallMap. This fixes engine ID list sorting. 2008-12-30 21:04:09 +00:00
translators 3bf9e9e9c2 (svn r14775) -Update: WebTranslator2 update to 2008-12-30 18:44:32
arabic_egypt - 10 fixed, 2 changed by khaloofah (12)
croatian   - 14 fixed, 63 changed by tperic (77)
indonesian - 13 fixed by rindu (13)
norwegian_nynorsk - 2 fixed by zibiam (2)
romanian   - 13 fixed by kkmic (13)
serbian    - 20 fixed by nummer (20)
turkish    - 14 fixed by Emin (14)
2008-12-30 18:44:40 +00:00
rubidium 5c83e8a853 (svn r14774) -Change: show which tile caused the "error" when leveling land like raising and lowering does and use the same sound. 2008-12-30 15:32:46 +00:00
rubidium 32583bd405 (svn r14773) -Fix-ish[FS#2469]: attach a signal handler during loading savegames to catch any crashes due to broken savegames/missing NewGRFs and tell the user about that instead of "just" crashing without explanation. 2008-12-30 15:14:23 +00:00
rubidium 3c6add5293 (svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option. 2008-12-29 21:50:25 +00:00
rubidium ad1c52abf8 (svn r14771) -Fix (r14764): resolving of error types to error messages kinda failed :( 2008-12-29 21:41:20 +00:00
rubidium 1ce965ed5f (svn r14770) -Fix: gracefully handle an invalid packet instead of asserting. 2008-12-29 21:33:27 +00:00
rubidium 9f4132c739 (svn r14769) -Change: when loading games in "network" mode use the start date of the save game for the server and all clients when loading the NewGRFs instead of the current date. Prevents desyncs caused by action 7/9s skipping parts of the GRF based on the date or some other variables that can differ at NewGRF load time. 2008-12-29 20:36:12 +00:00
translators d38d7f1297 (svn r14768) -Update: WebTranslator2 update to 2008-12-29 18:40:47
dutch      - 13 fixed, 5 changed by Excel20 (18)
french     - 13 fixed by glx (13)
hebrew     - 22 fixed, 1 changed by yitzc (16), davidx123 (7)
italian    - 13 fixed by lorenzodv (13)
norwegian_nynorsk - 94 fixed, 20 changed by Grilldyret (114)
portuguese - 14 fixed by rmrebelo (8), SnowFlake (6)
serbian    - 32 fixed by nummer (32)
ukrainian  - 1 fixed by mad (1)
2008-12-29 18:40:59 +00:00
rubidium 31d496342f (svn r14767) -Codechange: remove some unneeded artificial limits from currencies and use the bounds of the data type. 2008-12-29 15:46:14 +00:00
rubidium e198bf02ab (svn r14766) -Fix (r14730ish): remove unused typedef. 2008-12-29 11:17:12 +00:00
rubidium deffb584b0 (svn r14765) -Update (r14764): remove changed strings from translations. 2008-12-29 10:40:43 +00:00
rubidium a25e3f8d70 (svn r14764) -Codechange: make the '***' chat messages like "Game paused (not enough players)" fully translateable. 2008-12-29 10:37:53 +00:00
rubidium 703831ec6d (svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :( 2008-12-28 22:23:43 +00:00
rubidium 105b84e343 (svn r14760) -Fix (rlongago): network connection of clients being closed twice (found due to added assertion in r14730) 2008-12-28 21:45:41 +00:00
rubidium e626e07bd3 (svn r14759) -Fix (r14730): tab completion causing out-of-bounds read. 2008-12-28 21:07:45 +00:00
rubidium ee952b10d9 (svn r14758) -Fix: determine the real size of a depot before trying to place it. 2008-12-28 20:53:19 +00:00
translators c7d3ab3382 (svn r14757) -Update: WebTranslator2 update to 2008-12-28 18:41:48
arabic_egypt - 140 fixed, 26 changed by khaloofah (166)
czech      - 1 fixed, 2 changed by Hadez (3)
dutch      - 1 fixed by Excel20 (1)
french     - 1 fixed by glx (1)
indonesian - 1 fixed, 69 changed by fanioz (70)
italian    - 1 fixed by lorenzodv (1)
korean     - 1 fixed, 3 changed by leejaeuk5 (4)
latvian    - 58 changed by peerer (58)
lithuanian - 12 fixed by Enternald (12)
romanian   - 1 fixed by kneekoo (1)
thai       - 30 fixed by chat9780 (30)
2008-12-28 18:42:00 +00:00
rubidium aa73cc9202 (svn r14756) -Update (r14755): remove removed string from other languages too. 2008-12-28 16:13:10 +00:00
rubidium 683b65ee18 (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 2008-12-28 16:09:58 +00:00
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 2008-12-28 14:37:19 +00:00
smatz 53679122af (svn r14753) -Fix (r1): after buying a company, one could have more vehicles with the same UnitID 2008-12-26 23:53:07 +00:00
rubidium b8d82cc28c (svn r14752) -Fix [FS#2438]: revenue when clearing land would show up in red in the land info window as negative cost. 2008-12-26 23:37:53 +00:00
smatz f4d10ec033 (svn r14751) -Codechange: put VehicleEnterTile declaration where it should be and use correct return type 2008-12-26 22:44:13 +00:00
rubidium 21fa036c21 (svn r14750) -Fix [FS#1993]: in an MP game in SP mode no company would go bankrupt. Furthermore companies that passed the "bankrupt" period (4 quarters) wouldn't go bankrupt when loading the game back in MP. Now any company that is in MP or not "currently controlled by the player" in SP will bankrupt. 2008-12-26 21:49:00 +00:00
rubidium c2466d9571 (svn r14749) -Codechange: replace a few wrapper functions that only called delete by a direct delete instead. 2008-12-26 21:16:15 +00:00
rubidium 3ebe66a5e4 (svn r14748) -Codechange: unduplicate window updating when deleting vehicles. 2008-12-26 21:08:51 +00:00
rubidium f18043ee21 (svn r14747) -Codechange: remove DeleteVehicleChain in favour of the vehicle destructor as that was already doing the same for a few vehicle types. 2008-12-26 20:45:02 +00:00
smatz 73ca72922c (svn r14746) -Fix: don't let any disaster vehicle (Helicopter or Airplane) target invalid industry 2008-12-26 19:37:50 +00:00
rubidium 1721222080 (svn r14745) -Codechange: move "depot_list" and "leave_depot_immediately" out of the vehicle struct (saving up to 16 bytes per vehicle) as it is only used to tell a calling function entered a depot (for autoreplace). 2008-12-26 18:26:11 +00:00
rubidium a8cb9fa2f5 (svn r14744) -Fix [FS#2474]: don't tell loading a savegame failed in two distinct ways. 2008-12-26 18:24:05 +00:00
smatz 419f6e099f (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) 2008-12-26 18:01:15 +00:00
smatz 2e2086f3f8 (svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size 2008-12-26 13:50:46 +00:00
translators 435d920448 (svn r14741) -Update: WebTranslator2 update to 2008-12-25 18:48:16
arabic_egypt - 144 fixed, 3 changed by khaloofah (147)
indonesian - 74 changed by fanioz (74)
thai       - 104 fixed, 38 changed by chat9780 (142)
2008-12-25 18:48:21 +00:00
smatz 5e79462685 (svn r14740) -Fix (r13675)(r14739): we shouldn't skip all remaining sprites neither 2008-12-24 23:20:30 +00:00
smatz aeeb60868c (svn r14739) -Fix (r13675): when a static GRF was forcibly disabled, wrong data was released, causing memory leaks and wrong behaviour or crashes 2008-12-24 23:01:16 +00:00
smatz 48af805ada (svn r14738) -Fix (r13576): GCF_STATIC belongs to GRFConfig::flags, not GRFConfig::status 2008-12-24 22:33:06 +00:00
smatz 921863da15 (svn r14737) -Fix (r10211): memory leak in Action 0x0F (new town names) 2008-12-24 21:25:09 +00:00
translators 4ec06cc478 (svn r14736) -Update: WebTranslator2 update to 2008-12-24 15:29:53
arabic_egypt - 8 fixed, 37 changed by khaloofah (45)
hebrew     - 36 fixed by dodibitran (36)
indonesian - 39 changed by fanioz (39)
latvian    - 7 fixed, 27 changed by peerer (34)
serbian    - 31 fixed by Jenraux (31)
urdu       - 79 fixed by yasirniazkhan (79)
2008-12-24 15:30:01 +00:00
rubidium d1bb5e5f36 (svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
2008-12-24 09:53:15 +00:00
smatz 5b26afbd6b (svn r14734) -Codechange: type of bankrupt_asked is CompanyMask, not byte 2008-12-24 00:25:17 +00:00
rubidium 4a1f4144eb (svn r14733) -Fix (r14730): creating new companies didn't always work as expected. 2008-12-24 00:03:47 +00:00
rubidium c3746a55bb (svn r14732) -Codechange: replace some magic number with less magic constants and use the proper type for a few variables. 2008-12-23 21:03:43 +00:00
rubidium ece37ca2c0 (svn r14731) -Fix: don't initialise UDP multiple times without closing it. 2008-12-23 20:58:03 +00:00
rubidium afddfcb2b1 (svn r14730) -Codechange: remove the need for networkclientsockets and networkclientinfo structs to be in a contiguous piece of memory and put them in a pool.
-Note: 255 should really be enough for now... making it any more means network protocol bumps.
2008-12-23 20:52:27 +00:00
rubidium 94dd23aaf8 (svn r14729) -Fix: writing a single char to the config file caused reading outside a buffer. 2008-12-23 20:50:09 +00:00
rubidium f7a52c4444 (svn r14728) -Fix [FS#2470]: don't select anything when opening the client list.
-Fix: don't show clients that are "only" in the lobby.
2008-12-23 17:12:20 +00:00
rubidium bc8984a9bb (svn r14727) -Codechange: replace some magic numbers with a constant. 2008-12-23 15:23:31 +00:00
rubidium fb7ccc6820 (svn r14726) -Fix (r14720): making new companies in network kinda failed... 2008-12-23 12:26:19 +00:00