Commit Graph

4024 Commits

Author SHA1 Message Date
belugas 0c342f3292 (svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
Even more when it's a parameter.
2008-06-16 17:28:15 +00:00
skidd13 f1cecb1795 (svn r13535) -Codechange: Protect GUIList internals
-Fix: VL_FIST_SORT should be set after list rebuild too
2008-06-16 17:10:55 +00:00
skidd13 0a19f738bc (svn r13534) -Codechange: Replace the main part of VehiclesListBase sorting with GUIList function calls 2008-06-16 17:09:52 +00:00
skidd13 6b8a758339 (svn r13533) -Codechange: Replace direct class member access of GUIList with the appropriate function calls 2008-06-16 17:05:17 +00:00
skidd13 617e1f16c0 (svn r13524) -Codechange: use the typesafe QSort for vehicle sortings
-Prepare: vehicles sorting for convsersion to GUIList
2008-06-15 22:10:22 +00:00
skidd13 f95cee3057 (svn r13523) -Codechange: replace qsort by the internal typesafe QSortT for resolution sorting 2008-06-15 16:40:41 +00:00
skidd13 dd5f4f0a2c (svn r13522) -Codechange: Replace the qsort of the highscore with one of the internal sorters 2008-06-15 16:11:25 +00:00
skidd13 1ddafcadd2 (svn r13521) -Codechange: Use GUIList sorting instead of poll & sort for CompanyLeagueWindow 2008-06-15 15:48:33 +00:00
smatz 704c9be0b8 (svn r13520) -Fix (r13375): pointer has to be valid before it can be loaded to (SLE_STR) 2008-06-15 13:52:51 +00:00
belugas 237a6f554a (svn r13519) -Feature[newGRF]: Implement var 63, variational action2 variable for Houses.
Or, in more simple terms, the check for the animation frame of nearby house.
2008-06-15 02:48:25 +00:00
frosch 8bc42a8c2f (svn r13518) -Fix [FS#2083]: Properly count number of non-north housetiles. 2008-06-14 19:13:23 +00:00
skidd13 03854bf27c (svn r13517) -Add: remaining used typesafe versions of the mem* functions from <string.h> 2008-06-14 16:41:03 +00:00
skidd13 96fc91baf3 (svn r13516) -Codechange: Move MemCpyT to a fitting core header
-Codechange: Split the sorting code from the sortlist to an appropriate header
2008-06-14 16:23:08 +00:00
belugas bf9a32b475 (svn r13515) -Codechange: Widget enumification for scenario editor 2008-06-14 02:00:20 +00:00
belugas 8cbb17384d (svn r13514) -Codechange: Removal of dead code (or useless, to be more exact) 2008-06-14 01:45:58 +00:00
belugas bcb71a011e (svn r13513) -Codechange: Give proper message when building a river fails.
Give proper description of a river tile with the Query Tool.
Extracted (in part) from FS#1884, by Ammler
2008-06-14 01:08:59 +00:00
glx fd08e7b51a (svn r13508) -Fix (r7733): incorrect usage of strtoul 2008-06-13 15:18:29 +00:00
peter1138 24d35c58b7 (svn r13507) -Fix (r12856): first engine change should've been moved too 2008-06-13 13:28:55 +00:00
rubidium f2404ac20f (svn r13505) -Fix: clear the memory for the new AI during the loading of a savegame so it does not try to execute commands generated in a different savegame, which could be resulting in the AI trying to give orders to stations that do not exist. 2008-06-13 05:50:24 +00:00
belugas 5d828d8eee (svn r13504) -Codechange: enumify some widgets for scenario editor. More work is required. 2008-06-13 01:57:48 +00:00
belugas 3d07e5ca10 (svn r13503) -Fix(r13173)[FS#2073]: Wrong widget numbers & event handlers were assigned to the zoom in and out buttons in the scenario editor 2008-06-13 01:17:03 +00:00
smatz e40f835a7e (svn r13502) -Fix (r11212): drawing of zoomed out partial sprites could cause deadlocks or crashes 2008-06-13 00:00:04 +00:00
smatz 421a040e89 (svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker) 2008-06-12 22:29:42 +00:00
frosch 79ad51867a (svn r13499) -Codechange: Allow drawing (ugly) leveled foundations on steep slopes, just in case someone needs them for fallback. 2008-06-12 21:36:56 +00:00
rubidium 7dcc69e617 (svn r13495) -Fix: scrolling the main map with the keys speed was influenced by movement of the mouse. 2008-06-12 19:06:30 +00:00
rubidium 005d612227 (svn r13494) -Fix: a little documentation + copy-paste mistake for sprite.h. 2008-06-12 18:51:35 +00:00
skidd13 d99aef2f71 (svn r13490) -Add: a seperate icon for aqueducts 2008-06-12 16:30:41 +00:00
rubidium a5486e626d (svn r13489) -Fix: first determine where to *exactly* build a house before asking a NewGRF whether the location is good instead of possibly moving the house a tile after the NewGRF said the location is good. 2008-06-12 14:41:29 +00:00
smatz 39b397438c (svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile 2008-06-12 13:40:07 +00:00
rubidium 43622f95e1 (svn r13485) -Fix: let ships also navigate on half-tile sloped watery rail tiles. 2008-06-12 11:15:43 +00:00
peter1138 d61da119d3 (svn r13482) -Codechange: Use "extended bytes" in Actions 3 and 4 for vehicles 2008-06-12 09:25:04 +00:00
smatz 9d359641ec (svn r13481) -Codechange: add 'B' keyboard shortcut to build aqueduct (planetmaker) 2008-06-11 21:37:36 +00:00
rubidium da524e71ae (svn r13480) -Fix [FS#2050]: RVs stoppping at drive through stations of other companies. 2008-06-11 19:57:45 +00:00
smatz 5d5d9f682e (svn r13479) -Codechange: don't use word 'bridge' for aqueducts that often 2008-06-11 17:35:55 +00:00
smatz 1a043128e1 (svn r13478) -Codechange: don't use GetBridgeSpec() for aqueducts 2008-06-11 17:10:36 +00:00
smatz 881d384e56 (svn r13477) -Fix (r13464): correct tile type in the Query tile info window 2008-06-11 16:24:00 +00:00
rubidium 232a2a8e3c (svn r13476) -Fix: draw canal borders for locks and when directly next to a aquaduct entrace but under the aqueduct. 2008-06-11 16:22:07 +00:00
smatz 58d63ec726 (svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt 2008-06-11 15:56:55 +00:00
glx f56fe58d48 (svn r13472) -Backport (r13467 from NoAI): make CmdRemoveRoadStop use p2 as documented (only look at bit 0, not at the complete value) 2008-06-11 15:08:52 +00:00
rubidium 3d5fe9bfc1 (svn r13469) -Codechange: add support for loading Action 0x05, type 0F: "tracks for slopes". It's not useful right now, but it will be in the future. 2008-06-11 14:55:02 +00:00
rubidium f858e5bbf4 (svn r13468) -Fix: make aqueducts a little more expensive than normal bridges and disable terraforming of aqueduct bridgeheads; one can't terraform normal canal tiles either. 2008-06-11 14:51:31 +00:00
rubidium 93fb5bc63d (svn r13466) -Fix (r13464): slope checking got lost during development... 2008-06-11 14:13:07 +00:00
rubidium 7f6382badd (svn r13464) -Codechange: support NewGRF Action 0x05, type 12. 2008-06-11 13:54:01 +00:00
smatz dc5ceacd77 (svn r13462) -Codechange: move DriverFactoryBase destructor definition from header file (saves ~16kB) 2008-06-11 12:46:28 +00:00
smatz bd5067b5a0 (svn r13456) -Codechange: use AllocaM() macro instead of alloca() at most places 2008-06-10 21:59:22 +00:00
belugas f4153bcbde (svn r13446) -Fix(r13443): changed the var previously introduced from 69 to 46, as no param was required (thanks frosch) 2008-06-10 17:47:55 +00:00
smatz 8123d4de11 (svn r13445) -Codechange: make 32bpp_optimized blitter ~10-20% faster in drawing (depends on architecture and compiler) 2008-06-10 17:28:37 +00:00
rubidium 0900f3388a (svn r13444) -Codechange: make the order GUI somewhat more efficient. The most used options can be done with a single click now. 2008-06-10 16:46:11 +00:00
belugas bb7e9ee138 (svn r13443) -Feature[newGRF]: Add var 0x69 for industries, long format construction date.
Same as var B0, but base year is now 0, instead of 1920
2008-06-10 16:10:54 +00:00
belugas 54e7a3b196 (svn r13437) -Feature[newGRF]: Add long format introduction and maximum construction year for house. 2008-06-10 00:42:19 +00:00
smatz bf8afb4c38 (svn r13434) -Fix (r13317): news window with invalid news item could be shown 2008-06-09 12:20:00 +00:00
rubidium 657bbf305e (svn r13433) -Codechange: remove a now useless global variable.
-Fix: MP advertising was not advertising.
2008-06-09 12:17:01 +00:00
rubidium 2f59734909 (svn r13419) -Fix [FS#2063]: Entries in the bridge list were not sorted when the window was just opened. 2008-06-08 19:18:01 +00:00
rubidium e43d050730 (svn r13417) -Fix (r12945, r13413): freeing the ThreadObjects in a manner that hopefully doesn't cause crashes. 2008-06-08 15:27:57 +00:00
rubidium eac3301b63 (svn r13413) -Codechange: remove some enums that haven't been used for years. 2008-06-08 12:28:23 +00:00
truebrain b95042b05c (svn r13412) -Add: OTTDThreadTerminateFunc, for all thread systems, which is called when a thread is terminated. Now GenWorld- and SaveLoad-thread cleanup theirselves correctly, while Fibers don't (as that causes access-violations) 2008-06-08 12:06:27 +00:00
rubidium 96d7f87cc9 (svn r13411) -Codechange: remove the return value from the thread procs because it is never used. 2008-06-08 10:51:36 +00:00
rubidium b1dc705492 (svn r13409) -Fix: division by zero when one would press 'd' (skip order) when there's no order. 2008-06-08 09:14:30 +00:00
rubidium d083afea90 (svn r13408) -Codechange: some stricter checking. 2008-06-08 08:44:19 +00:00
miham 04e31cae5a (svn r13400) -Update: WebTranslator2 update to 2008-06-07 18:14:28
korean     - 8 fixed, 16 changed by leejaeuk5 (24)
romanian   - 5 fixed, 185 changed by CrystyB (190)
russian    - 1 changed by Smoky555 (1)
2008-06-07 16:15:20 +00:00
frosch 77ff05a5f1 (svn r13397) -Fix: Do not crash when resolving vehicle sprite groups with zero sprites. 2008-06-07 00:06:36 +00:00
glx a43c7af33b (svn r13396) -Fix (r13375): assertion failing when changing grfs in game (compatible grfs) 2008-06-06 19:27:09 +00:00
glx ee256e770a (svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror(). 2008-06-05 20:54:52 +00:00
rubidium 5176319dd5 (svn r13389) -Codechange: remove NM_CALLBACK because that information could be gathered from the fact that a callback has been specified. Patch by Cirdan. 2008-06-05 16:55:00 +00:00
peter1138 261018fc8c (svn r13388) -Codechange: Remove "my invented flag for something that is a wagon" 2008-06-05 12:08:20 +00:00
rubidium 94718ae0de (svn r13387) -Fix: industry directory sorting not working correctly (= != ==) 2008-06-05 11:34:26 +00:00
rubidium 9e811a2f8b (svn r13386) -Fix: global currency/units setting being overriden when loading a savegame. 2008-06-05 11:26:38 +00:00
peter1138 9b971dab60 (svn r13385) -Fix (r12137): In the purchase list, CB36 for capacity was not called for the first part of rail and road vehicles. 2008-06-05 07:38:22 +00:00
miham c217a11bbd (svn r13384) -Update: WebTranslator2 update to 2008-06-05 08:15:43
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan    - 9 fixed by arnaullv (9)
croatian   - 13 fixed by knovak (13)
czech      - 33 fixed by Hadez (33)
danish     - 47 fixed by ThomasA (47)
dutch      - 9 fixed by habell (9)
estonian   - 42 fixed, 5 changed by kristjans (47)
finnish    - 5 fixed, 1 changed by kerba (6)
french     - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic  - 75 fixed by scrooge (75)
italian    - 9 fixed, 12 changed by lorenzodv (21)
korean     - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian   - 97 fixed, 302 changed by CrystyB (399)
russian    - 12 fixed by Smoky555 (12)
spanish    - 12 fixed by eusebio (12)
swedish    - 13 fixed by ChrillDeVille (6), daishan (7)
turkish    - 39 fixed, 1 changed by jnmbk (40)
ukrainian  - 10 fixed by mad (10)
2008-06-05 06:17:04 +00:00
belugas 4f3eb7f3cd (svn r13383) -Codechange: Put the cost of house removal in a class member 2008-06-05 01:43:03 +00:00
glx dc22170c99 (svn r13380) -Fix (r13327): MSVC signed/unsigned warning 2008-06-04 22:30:44 +00:00
glx 0c1d792d5e (svn r13379) -Fix (r13255): drive side can't be changed in intro 2008-06-04 22:03:22 +00:00
smatz ce692c16ee (svn r13378) -Fix (r13375): compilation without network support was broken 2008-06-04 11:21:36 +00:00
peter1138 f78ea7c6bf (svn r13377) -Codechange: Let 'long format' build year work in vehicle purchase list. 2008-06-04 06:40:07 +00:00
belugas 2550f353e9 (svn r13376) -Feature: Add access to current long year and date from Action 7/9/D and VarAction2 (23/24 or A3/A4)
Add access to (long format) building year, in Variational Action2 Variable 49 for Vehicles
2008-06-04 00:17:48 +00:00
smatz c7a9637834 (svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details 2008-06-03 18:35:58 +00:00
peter1138 d58f055876 (svn r13374) -Fix (r13364): Some common compilers do not yet support 9 year old specifications. 2008-06-03 12:11:16 +00:00
smatz 7ec0a9ec3f (svn r13373) -Fix (r10210): loading of very old savegames was broken 2008-06-03 11:39:15 +00:00
peter1138 722f48a1d6 (svn r13372) -Cleanup: Excessive whitespace 2008-06-03 10:22:42 +00:00
peter1138 7b75cee876 (svn r13371) -Fix (r4510 ... r12924): Engine array size is not related to the ID used when setting a vehicle's name (it is vehicle type specific). Instead just test for a generic string. 2008-06-03 09:58:13 +00:00
rubidium 1ddfdda02c (svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h. 2008-06-03 08:06:58 +00:00
rubidium abf2b0efc3 (svn r13369) -Codechange: remove duplication of network configuration settings between NetworkSettings and NetworkGameInfo.
-Fix: failure of changing the server password during games because the password wasn't duplicated properly.
2008-06-03 08:04:35 +00:00
belugas 4b4e73c1dd (svn r13368) -Codechange: give house's min/max_date a better name, as it is really year, not date 2008-06-03 03:06:16 +00:00
belugas b0ada3fbbf (svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not 2008-06-03 02:20:27 +00:00
smatz 00851610e1 (svn r13366) -Fix: clicking in the Subsidies window was broken 2008-06-03 00:23:54 +00:00
rubidium def3177d3a (svn r13365) -Fix: don't segfault on trying to set a non-existing patch setting. 2008-06-02 23:01:57 +00:00
peter1138 7b66180d78 (svn r13364) -Codechange: Refactor action 3 mapping to use grf_load_*() instead of direct byte array access. 2008-06-02 19:52:41 +00:00
peter1138 86ab690ec5 (svn r13363) -Codechange: Code duplication tidy up 2008-06-02 19:35:30 +00:00
smatz 2e8b9a70ec (svn r13362) -Fix: make the town authority window a bit less glitchy 2008-06-02 14:34:23 +00:00
glx 014cb33bb9 (svn r13361) -Fix (r13360): regexp failed 2008-06-02 14:30:55 +00:00
skidd13 11cdcf875c (svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc() 2008-06-02 14:27:58 +00:00
skidd13 8a40ca49c6 (svn r13359) -Codechange: convert _fios_items to a SmallVector
-Cleanup: some reincarnations of _fios_items in the code
2008-06-02 14:19:27 +00:00
rubidium fd0be850fe (svn r13358) -Codechange: split next order determination and conditional order processing functionality from the order handling. Patch based on work by michi_cc. 2008-06-02 08:33:38 +00:00
rubidium 3efece1284 (svn r13357) -Codechange: add constness to YAPF. 2008-06-02 06:44:06 +00:00
peter1138 10b494d260 (svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates 2008-06-02 06:42:27 +00:00
smatz 0812e2f959 (svn r13354) -Codechange: make 8bpp_optimized blitter ~25% faster in encoding and ~15% faster in drawing (depends on architecture) 2008-06-01 19:36:55 +00:00
smatz ed462507b2 (svn r13351) -Codechange: disable warnings about unused variable for builds without asserts 2008-06-01 15:08:14 +00:00
glx 10d6f6c5b8 (svn r13350) -Fix: wrong tooltip for waypoint picker scrollbar 2008-06-01 13:23:40 +00:00
rubidium 92c80dab4c (svn r13349) -Codechange: remove a pointless flag; the flag is set before calling a function and is then reset in the function without ever reading it. Patch by Cirdan. 2008-06-01 10:11:31 +00:00
rubidium d19c347fd0 (svn r13348) -Fix: an industry does not always need foundations; in the case of NewGRFs an industry can be built on a steep slope, however when 'querying' the foundation type of an industry we neglected the fact that these steep slope tiles do not have a foundation. As a result of this when one built a structure requiring foundations on a tile SW or SE of a steep slope industry tile it would try to apply the foundation on the steep slope to determine whether to draw the wall of the foundation and trigger an assert. 2008-05-31 22:43:42 +00:00
glx 0268076337 (svn r13347) -Fix (r12396): ottdres.rc.in was forgotten 2008-05-31 22:12:53 +00:00
rubidium 3d75eb446d (svn r13346) -Fix (r13322): scrolling the main viewport with keyboard when having a build tool selected failed. 2008-05-30 21:06:43 +00:00
rubidium 5a6f6bf067 (svn r13345) -Codechange: only one of all the NewsItem's instance duration variable, so move it so there is only once instance of that variable. Patch by Cirdan. 2008-05-30 20:57:19 +00:00
rubidium 6d90affce0 (svn r13344) -Codechange: remove some code duplication. 2008-05-30 20:08:32 +00:00
rubidium 2f3b88ef9a (svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers. 2008-05-30 18:20:26 +00:00
rubidium e81386476f (svn r13342) -Fix: smallvec.h/sortlist_type.h didn't include everything they needed. 2008-05-30 09:32:24 +00:00
rubidium 00ccb1dc33 (svn r13341) -Codechange: make most of the network settings configurable via the patch command. 2008-05-30 09:23:05 +00:00
rubidium 933c9df335 (svn r13339) -Feature: splitting of the main toolbar when the resolution becomes very low so the buttons are still visible and useable. Patch by Dominik. 2008-05-29 23:33:37 +00:00
rubidium e2997c9976 (svn r13338) -Doc: add documentation about the window placement. Patch by Alberth. 2008-05-29 22:22:02 +00:00
rubidium fdb4214525 (svn r13337) -Doc: add documentation to some variables in settings_type.h. 2008-05-29 21:36:29 +00:00
rubidium 2854cc968f (svn r13336) -Fix: loading old savegames, e.g. the intro game, would reset the autosave settings. 2008-05-29 21:36:10 +00:00
rubidium d58080fd44 (svn r13335) -Fix: remove rogue (debugging) printf. 2008-05-29 21:35:49 +00:00
rubidium c33164831d (svn r13334) -Codechange: move the network settings variables from network/network_internal to settings. 2008-05-29 20:21:28 +00:00
rubidium 61507ffeab (svn r13333) -Fix: compilance without networking enabled. 2008-05-29 19:58:17 +00:00
rubidium be93c2c089 (svn r13332) -Fix (r13325): network games got somewhat broken. 2008-05-29 19:06:54 +00:00
peter1138 79d008cd2e (svn r13331) -Fix (r12924): Wrong include type for (sdt::)map 2008-05-29 17:54:02 +00:00
smatz a0c62f1752 (svn r13330) -Fix: 'Player name' dialog was broken in two ways 2008-05-29 17:01:42 +00:00
skidd13 bed7719967 (svn r13328) -Fix (r13327): Don't access an item when there isn't any 2008-05-29 16:47:22 +00:00
skidd13 a8abdaec92 (svn r13327) -Codechange: NetworkGameWindow uses GUILists Sort() now 2008-05-29 16:37:26 +00:00
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 2008-05-29 15:13:28 +00:00
peter1138 2a816fb685 (svn r13323) -Codechange: scrollbars are not refresh counters 2008-05-29 11:47:56 +00:00
rubidium 22d7b25296 (svn r13322) -Codechange: _no_scroll belongs more with the window code. 2008-05-29 11:13:11 +00:00
rubidium f2869bb7db (svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp. 2008-05-29 10:16:59 +00:00
rubidium 34e2d8f1e1 (svn r13320) -Codechange: move some enums from openttd.h to more logical locations. 2008-05-29 09:54:47 +00:00
peter1138 8ea996e246 (svn r13319) -Codechange: Remove use of imaginary horizontal scrollbar in the group vehicle list 2008-05-29 07:34:40 +00:00
rubidium 27bca407de (svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there. 2008-05-29 06:49:56 +00:00
rubidium 7f8f5fa52c (svn r13317) -Codechange: make news messages use a linked list instead of a moving circular buffer. This makes it possible to store more news messages in the history. Based on a patch by Cirdan.
-Codechange: the number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages).
2008-05-28 21:36:16 +00:00
rubidium b4e431bf7c (svn r13316) -Codechange: move some functions around to make them grouped more logically. 2008-05-28 20:13:28 +00:00
peter1138 53aebc84c6 (svn r13315) -Fix (r13314): Assert if no engines or wagons available 2008-05-28 20:06:00 +00:00
peter1138 f954a93ee0 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList 2008-05-28 17:29:27 +00:00
peter1138 f44a2c38f8 (svn r13313) -Fix-ish (r13306): List was copied in another place the autoreplace gui... 2008-05-28 17:08:45 +00:00
skidd13 6e334d10bb (svn r13312) -Update: apply english.txt changes from r13311 to other languages 2008-05-28 16:50:05 +00:00
skidd13 b80425fdf9 (svn r13311) -Codechange: Use GUIList for the industry directory window
-Codechange: Replaced the four sort buttons by a dropdown
-Codechange: Reduced the default window size
2008-05-28 16:45:00 +00:00
smatz f7233786d2 (svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard) 2008-05-28 15:28:27 +00:00
rubidium 17ccd5ec65 (svn r13309) -Fix: the difficulty settings from the savegame would be reset by the ones of the intro game. 2008-05-28 14:36:06 +00:00
peter1138 f9fc53f98a (svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h 2008-05-28 11:56:21 +00:00
peter1138 bb00206736 (svn r13306) -Fix (r8362): Pass engine list by pointer instead of making a copy of it. 2008-05-28 10:29:48 +00:00
peter1138 504d0d1ae5 (svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes. 2008-05-28 06:30:55 +00:00
smatz e15863fa77 (svn r13304) -Fix (r13042): possible double free (showed up in r13092) 2008-05-27 23:40:36 +00:00
smatz 8aa797603c (svn r13303) -Fix (r13301): 64bit gcc compilation was broken 2008-05-27 23:10:42 +00:00
rubidium 14d8aacebb (svn r13302) -Fix (r13301): GCC doesn't necessarily like what MSVC likes... 2008-05-27 22:02:26 +00:00
rubidium 5c5ee7eb57 (svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings. 2008-05-27 21:41:00 +00:00
skidd13 49a0bd7f90 (svn r13299) -Fix (r13286): Stations sort type isn't updated correctly 2008-05-27 20:33:44 +00:00
smatz 437d5d9798 (svn r13298) -Codechange: remove unused _total_signs 2008-05-27 20:25:28 +00:00
peter1138 cfb962c7f1 (svn r13297) -Codechange: Use GUIList for the town directory window 2008-05-27 20:05:36 +00:00
smatz ee9a9503ce (svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset 2008-05-27 19:58:32 +00:00
smatz ee904e1df5 (svn r13295) -Codechange: remove now redundant check 2008-05-27 19:03:06 +00:00
skidd13 83c442cc57 (svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object 2008-05-27 18:50:31 +00:00
smatz 9c7d4ffd4c (svn r13293) -Fix (r13226): airport far from a town generated too much noise 2008-05-27 18:20:14 +00:00
glx 20f2bc3138 (svn r13292) -Fix (r13285): MSVC warnings 2008-05-27 16:56:58 +00:00
peter1138 0ce9343fb6 (svn r13291) -Fix (r13266): qsort passed wrong sizeof data 2008-05-27 15:30:51 +00:00
peter1138 f7a9c4f522 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp 2008-05-27 12:24:23 +00:00
skidd13 6d46851b61 (svn r13286) -Codechange: GUIList Sort returns now if the list sequence has been altered 2008-05-27 10:27:30 +00:00
skidd13 e42690b381 (svn r13285) -Codechange: station sorting uses GUILists Sort() now 2008-05-27 09:57:29 +00:00
skidd13 825f8266e2 (svn r13283) -Codechange: convert the inheritance of GUIList in PlayerStationsWindow to a member object 2008-05-27 09:24:45 +00:00
smatz e424367938 (svn r13280) -Fix (r13276): MSVC compilation was broken 2008-05-27 00:13:51 +00:00
smatz a7761332f6 (svn r13279) -Codechange: simplify condition for terminating loop when reversing list order 2008-05-26 21:45:57 +00:00
peter1138 88f2ef652e (svn r13278) -Fix: Missing call to FindWindowPlacementAndResize() for drop down lists 2008-05-26 21:40:52 +00:00
rubidium 495ca8fdb9 (svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window. 2008-05-26 21:38:17 +00:00
smatz a0b14f02c8 (svn r13276) -Codechange: use qsort() for initial sorting of a list for better performance (credits go to skidd13 and peter1138) 2008-05-26 21:27:06 +00:00
smatz a509746288 (svn r13275) -Fix: sort lists with 2 items, too
-Fix: reset VL_RESORT and resort timer even when no sort was needed
2008-05-26 21:08:03 +00:00
glx 6e6014918e (svn r13273) -Fix [FS#2042]: MSVC warnings (again) 2008-05-26 20:20:38 +00:00
skidd13 0972b3dd15 (svn r13271) -Codechange: groups sorting uses GUILists Sort() now 2008-05-26 18:30:58 +00:00
peter1138 4c69d11f5e (svn r13270) -Codechange: There is no need to clear lists in the window constructor 2008-05-26 18:25:27 +00:00
skidd13 515e0fa22d (svn r13269) -Codechange: build bridge window uses GUILists Sort() now
-Cleanup: make some globals part of the build bridge window
2008-05-26 17:53:37 +00:00
skidd13 18acb21d65 (svn r13267) -Codechange: extend GUIList with a GnomeSort 2008-05-26 16:44:48 +00:00
peter1138 02b5ffa13f (svn r13266) -Codechange: Use SmallVector in GUIList 2008-05-26 16:23:23 +00:00
smatz e4be8c6e70 (svn r13260) -Fix: linked terraform toolbar wasn't marked dirty after moving 2008-05-26 10:41:30 +00:00
peter1138 feebf3f3c9 (svn r13259) -Fix: Subsidy text could still overflow 2008-05-26 10:28:59 +00:00
rubidium 3a4b397961 (svn r13258) -Codechange: add support for using (most) of the old patch names in the console. 2008-05-26 05:58:15 +00:00
belugas 5f782d06be (svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan 2008-05-26 02:25:17 +00:00
rubidium cd8e589fa9 (svn r13256) -Codechange: merge the OPTS and PATS chuncks.
-Codechange: split the diff_custom variable.
-Feature: allow changing some of the diff_custom variables via the console in network games.
2008-05-26 00:31:36 +00:00
rubidium 8c9cc415e3 (svn r13255) -Codechange: move _opt to _settings. 2008-05-25 22:36:44 +00:00
smatz 51ca426c4b (svn r13254) -Fix: waypoint orders could have invalid flags set after conversion 2008-05-25 20:00:10 +00:00
smatz 9fa52f7316 (svn r13253) -Codechange: simplify conversion of old orders a bit 2008-05-25 19:38:17 +00:00
smatz f9e7fa4c88 (svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders 2008-05-25 19:29:24 +00:00
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
peter1138 6ea832ec7c (svn r13250) -Codechange: Use VehicleList in SendAllVehiclesToDepot() 2008-05-25 17:36:49 +00:00
smatz 31a266b5b3 (svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent 2008-05-25 17:26:16 +00:00
peter1138 56f78e6412 (svn r13248) -Codechange: Use VehicleList for depot GUI. 2008-05-25 17:22:49 +00:00
rubidium 5292ee981e (svn r13247) -Codechange: small amount of coding style for settings.cpp. 2008-05-25 17:04:09 +00:00
peter1138 cfc8ed1f5b (svn r13246) -Fix (r13245): incorrect parameters to memcpy 2008-05-25 16:22:34 +00:00
peter1138 da8bb14cec (svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat. 2008-05-25 16:12:13 +00:00
smatz 32380e257c (svn r13244) -Fix: allow only one town directory window to be opened 2008-05-25 15:57:45 +00:00
rubidium 5fa0946c08 (svn r13242) -Codechange: remove _opt_ptr. 2008-05-25 12:57:39 +00:00
peter1138 f6ea07e7d8 (svn r13241) -Codechange: Simplify CmdDepotSellAllVehicles() a bit 2008-05-25 11:18:57 +00:00
peter1138 d9805b46b9 (svn r13240) -Codechange: More const-ness for GUI code. 2008-05-25 09:40:44 +00:00
smatz 60ae799321 (svn r13239) -Fix: certain compilers give false warning about uninitialized variable 2008-05-24 23:18:21 +00:00
frosch ca30288c9d (svn r13234) -Fix: Check/affect town rating when removing/bulldozing town-owned road under drivethrough stops.
-Fix: Reset the 'town-owned-road'-flag when removing and rebuilding road under drivethrough stops.
2008-05-24 22:15:10 +00:00
frosch 6e7a7412cd (svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
-Fix: Before evaluating RoadOwner, check if the roadtype is present.
-Fix: Some places assumed that MP_ROAD means normal street.
2008-05-24 19:36:20 +00:00
peter1138 c34b458ace (svn r13232) -Codechange: Simplify BuildDepotVehicleList() 2008-05-24 12:12:02 +00:00
rubidium 68bb5a08c5 (svn r13231) -Codechange: split the core console code and the console GUI. 2008-05-24 11:55:25 +00:00
frosch 8b1e7c8189 (svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows. 2008-05-24 11:19:30 +00:00
rubidium 6884f9cb41 (svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums. 2008-05-24 10:35:15 +00:00
rubidium 6c20f77330 (svn r13228) -Codechange: split console.h. 2008-05-24 10:15:06 +00:00
peter1138 0c47d3fc14 (svn r13227) -Codechange: Apply code style 2008-05-24 10:02:49 +00:00
belugas fc35ad9ee9 (svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
Initial concept : TTDPatch (moreairpots),  Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
2008-05-24 02:54:47 +00:00
peter1138 6f233b1f8f (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
2008-05-23 23:02:13 +00:00
rubidium 95c2307595 (svn r13224) -Fix (r13107): set the location of the old SelectPlayerFaceWindow when switching from simple to advanced or vice versa instead of letting the new window popup somewhere 'randomly'. 2008-05-23 22:55:32 +00:00
smatz 3866effe71 (svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes 2008-05-23 16:08:58 +00:00
smatz 0b07ed0bcd (svn r13221) -Fix (r8747): old AI failed to build oil rig routes 2008-05-23 15:57:18 +00:00
smatz 2d14e889b2 (svn r13217) -Fix: old AI was building small airports in years when they were not available in original game, causing small planes and helis everywhere 2008-05-23 00:28:13 +00:00
smatz a1bf80933d (svn r13216) -Codechange [FS#2026]: enumify and comment Editor Terraform Toolbar widgets (Roujin) 2008-05-22 20:44:24 +00:00
smatz e9cd783e66 (svn r13215) -Codechange [FS#2029]: enumify and comment Build Dock widgets (Roujin) 2008-05-22 20:37:14 +00:00
belugas 1e79665b45 (svn r13210) -Codechange: make town (previously named t) a private member of the different Town guis and assign it only once, at creation 2008-05-22 02:13:24 +00:00
belugas b4128cbc25 (svn r13209) -Codechange: Privatize what should be private. 2008-05-22 02:03:05 +00:00
smatz 0d2266a3ac (svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns 2008-05-22 00:47:42 +00:00
smatz 0b54ea39db (svn r13207) -Fix: misleading comments (michi_cc) 2008-05-22 00:37:27 +00:00
frosch eca692ef90 (svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window. 2008-05-21 22:15:39 +00:00
peter1138 510c0acb4a (svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro. 2008-05-21 12:06:05 +00:00
glx 621e205f74 (svn r13202) -Fix (r13149): MSVC signed/unsigned warning 2008-05-20 21:55:45 +00:00
smatz f244b6b361 (svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window 2008-05-19 19:17:56 +00:00
smatz 5cedf77a9a (svn r13190) -Cleanup: remove unused variable 2008-05-19 16:44:50 +00:00
rubidium 27c38052b7 (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 2008-05-19 09:48:47 +00:00
rubidium fc29abf621 (svn r13184) -Codechange: make a window class of the signs list. 2008-05-19 09:45:24 +00:00
rubidium eb35fce734 (svn r13183) -Codechange: make a window class of the VehicleViewWindow. 2008-05-19 09:39:05 +00:00
rubidium c3fd582c55 (svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth. 2008-05-19 09:24:03 +00:00
rubidium a1137fcdfe (svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan. 2008-05-19 09:18:51 +00:00
peter1138 b1e324dd47 (svn r13180) -Codechange: make a window class of the TownDirectoryWindow. 2008-05-19 09:17:26 +00:00
smatz 6864eedb1b (svn r13179) -Fix (r13173): r13178 applies to the main toolbar in Scenario Editor, too 2008-05-19 02:01:44 +00:00
smatz 70127934d1 (svn r13178) -Fix (r13173): the main toolbar didn't respect patch settings, it was always positioned on the right side 2008-05-19 01:57:30 +00:00
belugas cbd0349251 (svn r13177) -Fix[FS#2002]: Using level tool in scenario editor makes tiles brown. That is the only tool that does so in Scenario Editor (apart dynamite, of course).Report and Fix by Roujin 2008-05-19 01:51:57 +00:00
smatz 290cedade2 (svn r13176) -Fix (r13153): town window was glitchy while opening 2008-05-19 01:50:07 +00:00
glx fa72187bbf (svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening 2008-05-19 01:10:52 +00:00
glx 17a1873843 (svn r13174) -Codechange: make a class of the IndustryDirectoryWindow. 2008-05-18 23:36:33 +00:00
rubidium 09b5320a81 (svn r13173) -Codechange: make windows of the main toolbars. 2008-05-18 22:11:46 +00:00
rubidium 9fc630422d (svn r13172) -Codechange: make a window class of the terraform toolbars. 2008-05-18 21:53:45 +00:00
rubidium ade538828d (svn r13171) -Codechange: make a class of the Build[Air|Rail|Road|Dock]ToolbarWindows. 2008-05-18 21:34:35 +00:00
rubidium eb2f19ed66 (svn r13170) -Codechange: make classes of the EnginePreview and BuyCompany windows. 2008-05-18 20:49:22 +00:00
rubidium 6da56ee87e (svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors. 2008-05-18 20:40:30 +00:00
smatz 9aa69db2e6 (svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort() 2008-05-18 20:01:54 +00:00
rubidium 629c5ce740 (svn r13167) -Codechange: prepend _ to a global variable. 2008-05-18 19:41:47 +00:00
rubidium 2e25df3ddf (svn r13166) -Codechange: CmdSetRoadDriveSide belongs in road_cmd.cpp, not settings_gui.cpp. 2008-05-18 17:40:13 +00:00
rubidium 9defec7876 (svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData. 2008-05-18 16:51:44 +00:00
glx aab9e191f5 (svn r13163) -Codechange: remove unused code 2008-05-18 14:12:16 +00:00
smatz 4bf7ab0d1c (svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded 2008-05-18 14:04:51 +00:00
glx e82bab5323 (svn r13161) -Fix: free the blitter list when the last blitter is removed. 2008-05-18 12:47:08 +00:00
rubidium fc4393dcfe (svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent. 2008-05-18 12:40:38 +00:00
skidd13 a426047441 (svn r13159) -Feature: Add the ability to sort availible bridges in the build bridge GUI 2008-05-18 12:25:46 +00:00
rubidium fc7e8100e1 (svn r13158) -Codechange: make a class of the GameOptionsWindow. 2008-05-18 12:17:52 +00:00
rubidium 3455844ea3 (svn r13156) -Codechange: make classes of the GraphWindows. 2008-05-18 11:23:41 +00:00
rubidium cc3a41bfa9 (svn r13155) -Codechange: make a window class of the company league and graph legenda windows. 2008-05-18 09:39:40 +00:00
rubidium 50203f8786 (svn r13154) -Codechange: make a window class of the news message history window. 2008-05-18 08:50:51 +00:00
rubidium 33b822faf7 (svn r13153) -Codechange: make classes of the TownViewWindow and the ScenarioEditorTownGenerationWindow. 2008-05-18 08:13:13 +00:00
rubidium 62e36abd2e (svn r13152) -Codechange: make a class of the subsidy window. 2008-05-18 08:12:29 +00:00
rubidium f5681547ef (svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean. 2008-05-17 23:11:06 +00:00
glx c1713c9ab7 (svn r13150) -Codechange: make classes of the Music[TrackSelection]Window. 2008-05-17 22:52:51 +00:00
skidd13 736671347b (svn r13149) -Codechange: make a class of the BuildBridgeWindow. 2008-05-17 22:07:04 +00:00
glx 8e47178919 (svn r13148) -Codechange: make a class of the SelectGameWindow. 2008-05-17 21:20:58 +00:00
rubidium 152e82ba92 (svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp. 2008-05-17 21:13:05 +00:00