peter1138
1b7fcf0171
(svn r13374) -Fix (r13364): Some common compilers do not yet support 9 year old specifications.
2008-06-03 12:11:16 +00:00
smatz
d67416088e
(svn r13373) -Fix (r10210): loading of very old savegames was broken
2008-06-03 11:39:15 +00:00
peter1138
c0d206f505
(svn r13372) -Cleanup: Excessive whitespace
2008-06-03 10:22:42 +00:00
peter1138
76bae9f8dd
(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
a315054443
(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
994779e9e2
(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
0cf79d70d0
(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
f7b79916e8
(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
e40c7f66d8
(svn r13366) -Fix: clicking in the Subsidies window was broken
2008-06-03 00:23:54 +00:00
rubidium
678f2baf76
(svn r13365) -Fix: don't segfault on trying to set a non-existing patch setting.
2008-06-02 23:01:57 +00:00
peter1138
64410681db
(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
93f8ff955c
(svn r13363) -Codechange: Code duplication tidy up
2008-06-02 19:35:30 +00:00
smatz
c1619d1321
(svn r13362) -Fix: make the town authority window a bit less glitchy
2008-06-02 14:34:23 +00:00
glx
679ca6af52
(svn r13361) -Fix (r13360): regexp failed
2008-06-02 14:30:55 +00:00
skidd13
8b3db22075
(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()
2008-06-02 14:27:58 +00:00
skidd13
f1c954e842
(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
8cb2f63851
(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
5189877e3d
(svn r13357) -Codechange: add constness to YAPF.
2008-06-02 06:44:06 +00:00
peter1138
24562da11b
(svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates
2008-06-02 06:42:27 +00:00
smatz
9cf0c8c96d
(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
69ebefe1ac
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
2008-06-01 15:08:14 +00:00
glx
4623846515
(svn r13350) -Fix: wrong tooltip for waypoint picker scrollbar
2008-06-01 13:23:40 +00:00
rubidium
f0f4e9d6ec
(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
723792cf08
(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
fa81f5412f
(svn r13347) -Fix (r12396): ottdres.rc.in was forgotten
2008-05-31 22:12:53 +00:00
rubidium
224ca68fb5
(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
20228809f0
(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
387f4cfbe1
(svn r13344) -Codechange: remove some code duplication.
2008-05-30 20:08:32 +00:00
rubidium
bae02e8c67
(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
026afc097a
(svn r13342) -Fix: smallvec.h/sortlist_type.h didn't include everything they needed.
2008-05-30 09:32:24 +00:00
rubidium
8cc39500ba
(svn r13341) -Codechange: make most of the network settings configurable via the patch command.
2008-05-30 09:23:05 +00:00
rubidium
fe9ce6eac4
(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
6efcd64912
(svn r13338) -Doc: add documentation about the window placement. Patch by Alberth.
2008-05-29 22:22:02 +00:00
rubidium
7526ee09a1
(svn r13337) -Doc: add documentation to some variables in settings_type.h.
2008-05-29 21:36:29 +00:00
rubidium
2bcc9d4d49
(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
d36ff6af5a
(svn r13335) -Fix: remove rogue (debugging) printf.
2008-05-29 21:35:49 +00:00
rubidium
02dbab8721
(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.
2008-05-29 20:21:28 +00:00
rubidium
4b2c2521f9
(svn r13333) -Fix: compilance without networking enabled.
2008-05-29 19:58:17 +00:00
rubidium
0a78ad46fa
(svn r13332) -Fix (r13325): network games got somewhat broken.
2008-05-29 19:06:54 +00:00
peter1138
7f8d9148b8
(svn r13331) -Fix (r12924): Wrong include type for (sdt::)map
2008-05-29 17:54:02 +00:00
smatz
713923cd7e
(svn r13330) -Fix: 'Player name' dialog was broken in two ways
2008-05-29 17:01:42 +00:00
skidd13
c624a20a32
(svn r13328) -Fix (r13327): Don't access an item when there isn't any
2008-05-29 16:47:22 +00:00
skidd13
73cf52a7c4
(svn r13327) -Codechange: NetworkGameWindow uses GUILists Sort() now
2008-05-29 16:37:26 +00:00
rubidium
e7a501100a
(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
48e20d8012
(svn r13323) -Codechange: scrollbars are not refresh counters
2008-05-29 11:47:56 +00:00
rubidium
4151d68480
(svn r13322) -Codechange: _no_scroll belongs more with the window code.
2008-05-29 11:13:11 +00:00
rubidium
4a3dd37582
(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
793ac8baa4
(svn r13320) -Codechange: move some enums from openttd.h to more logical locations.
2008-05-29 09:54:47 +00:00
peter1138
698a51a41e
(svn r13319) -Codechange: Remove use of imaginary horizontal scrollbar in the group vehicle list
2008-05-29 07:34:40 +00:00
rubidium
3716f4814d
(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
d3d0432314
(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
f88349843a
(svn r13316) -Codechange: move some functions around to make them grouped more logically.
2008-05-28 20:13:28 +00:00
peter1138
05465d4d9a
(svn r13315) -Fix (r13314): Assert if no engines or wagons available
2008-05-28 20:06:00 +00:00
peter1138
c61baba819
(svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
2008-05-28 17:29:27 +00:00
peter1138
4ab659e29b
(svn r13313) -Fix-ish (r13306): List was copied in another place the autoreplace gui...
2008-05-28 17:08:45 +00:00
skidd13
5f3aeb6670
(svn r13312) -Update: apply english.txt changes from r13311 to other languages
2008-05-28 16:50:05 +00:00
skidd13
4f7e14b6fb
(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
3f000be670
(svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard)
2008-05-28 15:28:27 +00:00
rubidium
f740702f90
(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
f731b31eda
(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
f97403803b
(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
9a78083c8a
(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
f505e4e407
(svn r13304) -Fix (r13042): possible double free (showed up in r13092)
2008-05-27 23:40:36 +00:00
smatz
47c22cffce
(svn r13303) -Fix (r13301): 64bit gcc compilation was broken
2008-05-27 23:10:42 +00:00
rubidium
adabce3d11
(svn r13302) -Fix (r13301): GCC doesn't necessarily like what MSVC likes...
2008-05-27 22:02:26 +00:00
rubidium
33e18c236d
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
2008-05-27 21:41:00 +00:00
skidd13
0682b03046
(svn r13299) -Fix (r13286): Stations sort type isn't updated correctly
2008-05-27 20:33:44 +00:00
smatz
459239c9d2
(svn r13298) -Codechange: remove unused _total_signs
2008-05-27 20:25:28 +00:00
peter1138
6c7e6861f8
(svn r13297) -Codechange: Use GUIList for the town directory window
2008-05-27 20:05:36 +00:00
smatz
f538282f7a
(svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset
2008-05-27 19:58:32 +00:00
smatz
ff7104865f
(svn r13295) -Codechange: remove now redundant check
2008-05-27 19:03:06 +00:00
skidd13
6180112c90
(svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object
2008-05-27 18:50:31 +00:00
smatz
8c8b002dd6
(svn r13293) -Fix (r13226): airport far from a town generated too much noise
2008-05-27 18:20:14 +00:00
glx
382c45120b
(svn r13292) -Fix (r13285): MSVC warnings
2008-05-27 16:56:58 +00:00
peter1138
44dd8955d1
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
2008-05-27 15:30:51 +00:00
peter1138
1272c55991
(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
831343435c
(svn r13286) -Codechange: GUIList Sort returns now if the list sequence has been altered
2008-05-27 10:27:30 +00:00
skidd13
49010369d2
(svn r13285) -Codechange: station sorting uses GUILists Sort() now
2008-05-27 09:57:29 +00:00
skidd13
2094baf537
(svn r13283) -Codechange: convert the inheritance of GUIList in PlayerStationsWindow to a member object
2008-05-27 09:24:45 +00:00
smatz
33dc3165be
(svn r13280) -Fix (r13276): MSVC compilation was broken
2008-05-27 00:13:51 +00:00
smatz
691bf29724
(svn r13279) -Codechange: simplify condition for terminating loop when reversing list order
2008-05-26 21:45:57 +00:00
peter1138
855336a1e6
(svn r13278) -Fix: Missing call to FindWindowPlacementAndResize() for drop down lists
2008-05-26 21:40:52 +00:00
rubidium
290b3bd3cc
(svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window.
2008-05-26 21:38:17 +00:00
smatz
f2a5b2556c
(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
75568d2df9
(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
b3d7ca0ceb
(svn r13273) -Fix [FS#2042]: MSVC warnings (again)
2008-05-26 20:20:38 +00:00
skidd13
16cee252a7
(svn r13271) -Codechange: groups sorting uses GUILists Sort() now
2008-05-26 18:30:58 +00:00
peter1138
0434e83e91
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
2008-05-26 18:25:27 +00:00
skidd13
c3dd9d864e
(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
f202f1dda6
(svn r13267) -Codechange: extend GUIList with a GnomeSort
2008-05-26 16:44:48 +00:00
peter1138
781b90ac91
(svn r13266) -Codechange: Use SmallVector in GUIList
2008-05-26 16:23:23 +00:00
smatz
d969edaa8f
(svn r13260) -Fix: linked terraform toolbar wasn't marked dirty after moving
2008-05-26 10:41:30 +00:00
peter1138
bd5f782c61
(svn r13259) -Fix: Subsidy text could still overflow
2008-05-26 10:28:59 +00:00
rubidium
690c83edba
(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
2ed98629d7
(svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan
2008-05-26 02:25:17 +00:00
rubidium
c4c440cc20
(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
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
2008-05-25 22:36:44 +00:00
smatz
8d60206684
(svn r13254) -Fix: waypoint orders could have invalid flags set after conversion
2008-05-25 20:00:10 +00:00
smatz
115f4d6d51
(svn r13253) -Codechange: simplify conversion of old orders a bit
2008-05-25 19:38:17 +00:00
smatz
b4bfcd8118
(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
dc77647ea4
(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
26ee8f3ca1
(svn r13250) -Codechange: Use VehicleList in SendAllVehiclesToDepot()
2008-05-25 17:36:49 +00:00
smatz
c9ef11159f
(svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent
2008-05-25 17:26:16 +00:00
peter1138
6d65ce0c8b
(svn r13248) -Codechange: Use VehicleList for depot GUI.
2008-05-25 17:22:49 +00:00
rubidium
c5e38037f0
(svn r13247) -Codechange: small amount of coding style for settings.cpp.
2008-05-25 17:04:09 +00:00
peter1138
449a03be4b
(svn r13246) -Fix (r13245): incorrect parameters to memcpy
2008-05-25 16:22:34 +00:00
peter1138
bcd05a4bce
(svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat.
2008-05-25 16:12:13 +00:00
smatz
8d51e95c44
(svn r13244) -Fix: allow only one town directory window to be opened
2008-05-25 15:57:45 +00:00
rubidium
ce821b1ada
(svn r13242) -Codechange: remove _opt_ptr.
2008-05-25 12:57:39 +00:00
peter1138
4ea34e778c
(svn r13241) -Codechange: Simplify CmdDepotSellAllVehicles() a bit
2008-05-25 11:18:57 +00:00
peter1138
0a9e8854ec
(svn r13240) -Codechange: More const-ness for GUI code.
2008-05-25 09:40:44 +00:00
smatz
7672a059c9
(svn r13239) -Fix: certain compilers give false warning about uninitialized variable
2008-05-24 23:18:21 +00:00
frosch
7fbfe54c74
(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
8f104a2e97
(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
ca244cbd06
(svn r13232) -Codechange: Simplify BuildDepotVehicleList()
2008-05-24 12:12:02 +00:00
rubidium
eb3347e9d8
(svn r13231) -Codechange: split the core console code and the console GUI.
2008-05-24 11:55:25 +00:00
frosch
9da2cd6e02
(svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows.
2008-05-24 11:19:30 +00:00
rubidium
080af12d8b
(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
bf3b61cfa3
(svn r13228) -Codechange: split console.h.
2008-05-24 10:15:06 +00:00
peter1138
5f625acb1a
(svn r13227) -Codechange: Apply code style
2008-05-24 10:02:49 +00:00
belugas
08671d2e78
(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
cfc45e97ab
(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
7ba02ef2b0
(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
8841f3be40
(svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes
2008-05-23 16:08:58 +00:00
smatz
9e2490abb2
(svn r13221) -Fix (r8747): old AI failed to build oil rig routes
2008-05-23 15:57:18 +00:00
smatz
baeb6e5395
(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
11e80b2794
(svn r13216) -Codechange [FS#2026]: enumify and comment Editor Terraform Toolbar widgets (Roujin)
2008-05-22 20:44:24 +00:00
smatz
6a4dad27fe
(svn r13215) -Codechange [FS#2029]: enumify and comment Build Dock widgets (Roujin)
2008-05-22 20:37:14 +00:00
belugas
47f1263fd8
(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
165df7420b
(svn r13209) -Codechange: Privatize what should be private.
2008-05-22 02:03:05 +00:00
smatz
0df8060a64
(svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns
2008-05-22 00:47:42 +00:00
smatz
6b4f70099e
(svn r13207) -Fix: misleading comments (michi_cc)
2008-05-22 00:37:27 +00:00
frosch
7f80552293
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
2008-05-21 22:15:39 +00:00
peter1138
42f78d2fc3
(svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro.
2008-05-21 12:06:05 +00:00
glx
41adc28093
(svn r13202) -Fix (r13149): MSVC signed/unsigned warning
2008-05-20 21:55:45 +00:00
smatz
c1e45bcb01
(svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window
2008-05-19 19:17:56 +00:00
smatz
ebe6a8b0df
(svn r13190) -Cleanup: remove unused variable
2008-05-19 16:44:50 +00:00
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
2008-05-19 09:48:47 +00:00
rubidium
ad29064cf3
(svn r13184) -Codechange: make a window class of the signs list.
2008-05-19 09:45:24 +00:00
rubidium
df6446c07c
(svn r13183) -Codechange: make a window class of the VehicleViewWindow.
2008-05-19 09:39:05 +00:00
rubidium
8560c8f16f
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
2008-05-19 09:24:03 +00:00
rubidium
03f1292332
(svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan.
2008-05-19 09:18:51 +00:00
peter1138
b9cfaa6637
(svn r13180) -Codechange: make a window class of the TownDirectoryWindow.
2008-05-19 09:17:26 +00:00
smatz
17e4e33aee
(svn r13179) -Fix (r13173): r13178 applies to the main toolbar in Scenario Editor, too
2008-05-19 02:01:44 +00:00
smatz
d00d718b41
(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
5f0c2b27be
(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
1d9ad55eda
(svn r13176) -Fix (r13153): town window was glitchy while opening
2008-05-19 01:50:07 +00:00
glx
4e11e0785a
(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
dc1c529a31
(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.
2008-05-18 23:36:33 +00:00
rubidium
01a569f0d7
(svn r13173) -Codechange: make windows of the main toolbars.
2008-05-18 22:11:46 +00:00
rubidium
c2014c8250
(svn r13172) -Codechange: make a window class of the terraform toolbars.
2008-05-18 21:53:45 +00:00
rubidium
d60d22f45f
(svn r13171) -Codechange: make a class of the Build[Air|Rail|Road|Dock]ToolbarWindows.
2008-05-18 21:34:35 +00:00
rubidium
3f53c2fd0e
(svn r13170) -Codechange: make classes of the EnginePreview and BuyCompany windows.
2008-05-18 20:49:22 +00:00
rubidium
a21d3fc63b
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
2008-05-18 20:40:30 +00:00
smatz
23b9852480
(svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort()
2008-05-18 20:01:54 +00:00
rubidium
97293e5cbb
(svn r13167) -Codechange: prepend _ to a global variable.
2008-05-18 19:41:47 +00:00
rubidium
78eb7d66b1
(svn r13166) -Codechange: CmdSetRoadDriveSide belongs in road_cmd.cpp, not settings_gui.cpp.
2008-05-18 17:40:13 +00:00
rubidium
3ee2556585
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
2008-05-18 16:51:44 +00:00
glx
dc69a7c51b
(svn r13163) -Codechange: remove unused code
2008-05-18 14:12:16 +00:00
smatz
119b892f95
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
2008-05-18 14:04:51 +00:00
glx
ca27e25ab0
(svn r13161) -Fix: free the blitter list when the last blitter is removed.
2008-05-18 12:47:08 +00:00
rubidium
4d5b9e38d6
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
2008-05-18 12:40:38 +00:00
skidd13
cbd09e4f57
(svn r13159) -Feature: Add the ability to sort availible bridges in the build bridge GUI
2008-05-18 12:25:46 +00:00
rubidium
6891469e87
(svn r13158) -Codechange: make a class of the GameOptionsWindow.
2008-05-18 12:17:52 +00:00
rubidium
9155d641cb
(svn r13156) -Codechange: make classes of the GraphWindows.
2008-05-18 11:23:41 +00:00
rubidium
77059f7b5d
(svn r13155) -Codechange: make a window class of the company league and graph legenda windows.
2008-05-18 09:39:40 +00:00
rubidium
8846d4380f
(svn r13154) -Codechange: make a window class of the news message history window.
2008-05-18 08:50:51 +00:00
rubidium
4268afe340
(svn r13153) -Codechange: make classes of the TownViewWindow and the ScenarioEditorTownGenerationWindow.
2008-05-18 08:13:13 +00:00
rubidium
37386287f8
(svn r13152) -Codechange: make a class of the subsidy window.
2008-05-18 08:12:29 +00:00
rubidium
d284ba2283
(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
b101faea20
(svn r13150) -Codechange: make classes of the Music[TrackSelection]Window.
2008-05-17 22:52:51 +00:00
skidd13
bd742920b4
(svn r13149) -Codechange: make a class of the BuildBridgeWindow.
2008-05-17 22:07:04 +00:00
glx
fb97874bc7
(svn r13148) -Codechange: make a class of the SelectGameWindow.
2008-05-17 21:20:58 +00:00
rubidium
4db10034fd
(svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp.
2008-05-17 21:13:05 +00:00
rubidium
8ff56af53d
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
2008-05-17 20:54:18 +00:00
glx
107371a26b
(svn r13145) -Codechange: make classes of the BuildDocks[Depot|Station]Window.
2008-05-17 20:49:45 +00:00
glx
e0e2b4b55a
(svn r13144) -Codechange: make classes of the BuildRoad[Depot|Station]Window.
2008-05-17 17:37:44 +00:00
smatz
acd36adf0b
(svn r13143) -Fix (r13142): the Build Waypoint window wasn't resized when it was opened
2008-05-17 16:59:12 +00:00
glx
f9935785f7
(svn r13142) -Codechange: make classes of the Build[RailDepot|RailStation|RailWaypoint|Signal]Window
2008-05-17 16:27:36 +00:00
rubidium
ac8f0fdc7b
(svn r13141) -Codechange: remove an unused variable from Window.
2008-05-17 13:04:30 +00:00
rubidium
ad6e52080c
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
2008-05-17 13:01:30 +00:00
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
2008-05-17 12:48:06 +00:00
rubidium
7f6ccdc624
(svn r13138) -Codechange: remove the need for IsWindowOfPrototype.
2008-05-17 12:26:00 +00:00
rubidium
baff68179c
(svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server.
2008-05-17 11:46:35 +00:00
rubidium
a21692bdc1
(svn r13136) -Codechange: make a window class of the console window.
2008-05-17 09:39:29 +00:00
rubidium
6f45805af0
(svn r13135) -Codechange: make a class of the NetworkJoinStatusWindow.
2008-05-17 08:00:13 +00:00
belugas
47d9a8aa21
(svn r13134) -Codechange: make a class of the Airport Picker Window.
2008-05-17 03:31:22 +00:00
belugas
835a5fcf43
(svn r13133) -Codechange: Add a base class (descending from Window) for all new windows that are going to require a ResetObjectToPlace to be performed on closing.
...
This will allow to free the said window only once, and not twice otherwise
2008-05-17 03:29:16 +00:00
glx
a4c5f94658
(svn r13132) -Codechange: make a class of the GenerateProgressWindow.
2008-05-17 03:16:04 +00:00
glx
0e9eb5bacb
(svn r13131) -Codechange: make a class of the ErrmsgWindow.
2008-05-17 02:54:04 +00:00
rubidium
758f4a358d
(svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore.
2008-05-16 23:30:10 +00:00
rubidium
0b61b6c1d0
(svn r13129) -Codechange: remove the WP macro and it's related variables.
2008-05-16 23:29:31 +00:00
peter1138
e03193f9d7
(svn r13128) -Codechange: Make a class of the refit window
2008-05-16 23:23:38 +00:00
glx
6741af92d3
(svn r13127) -Fix (r13122): of course WIN32_LEAN_AND_MEAN excludes too much stuff
2008-05-16 22:29:27 +00:00
glx
0cab2cade2
(svn r13126) -Fix (r13022) [FS#2009, FS#2010]: driver list should be dynamically allocated as static uninitialistion order is undetermined. The list is freed when the latest driver is removed.
2008-05-16 21:32:10 +00:00
bjarni
13954aaaff
(svn r13125) -Fix [FS#2000](r12913): [autoreplace] failing replacement and restoring a vehicle will no longer decrease the vehicle count in groups
2008-05-16 21:04:49 +00:00
glx
892759c396
(svn r13124) -Codechange: make a class of the OrdersWindow.
2008-05-16 20:08:20 +00:00
rubidium
483ad8d02a
(svn r13123) -Codechange: passing the bankrupt type via data_b is not needed anymore. Patch by Cirdan.
2008-05-16 20:04:17 +00:00
glx
bbb9dafa32
(svn r13122) -Fix: WIN32_LEAN_AND_MEAN define is needed for all WIN32 compilers
2008-05-16 17:53:19 +00:00
rubidium
adb5a09cb3
(svn r13121) -Codechange: make a class of the PerformanceRatingDetailWindow.
2008-05-16 17:45:43 +00:00
rubidium
a7c7067c4f
(svn r13120) -Codechange: make a class of the VehicleDetailsWindow.
2008-05-16 17:33:09 +00:00
rubidium
cbdcc7cc3b
(svn r13119) -Codechange: make a class of the timetable window.
2008-05-16 13:39:25 +00:00
rubidium
e7b3c3fa34
(svn r13118) -Codechange: make classes of the EndGameWindow and the HighScoreWindow.
2008-05-16 13:21:43 +00:00
rubidium
5a85fb104e
(svn r13117) -Codechange: make a window class of the PlayerFinancesWindow.
2008-05-16 07:34:48 +00:00
rubidium
804b9f1d3a
(svn r13116) -Codechange: make a window class of the statusbar window.
2008-05-16 07:24:21 +00:00
rubidium
349aec37e6
(svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow.
2008-05-16 07:15:32 +00:00
rubidium
083d7e8726
(svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar.
2008-05-16 07:08:04 +00:00
rubidium
5b712cf81e
(svn r13113) -Codechange: make a class of the TownAuthorityWindow.
2008-05-15 22:47:03 +00:00
rubidium
045aaae1c7
(svn r13112) -Codechange: make classes of the patches and custom currency windows.
2008-05-15 21:48:47 +00:00
rubidium
01e79dde73
(svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan.
2008-05-15 20:53:44 +00:00
rubidium
2704b12f2b
(svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly.
2008-05-15 20:52:28 +00:00
rubidium
447ed7a2a5
(svn r13109) -Codechange: make a class out of the CheatWindow.
2008-05-15 20:51:52 +00:00
rubidium
439b328f41
(svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus.
2008-05-15 20:04:10 +00:00
glx
07e10eade8
(svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow.
2008-05-15 19:24:15 +00:00
rubidium
d87fc4d534
(svn r13106) -Codechange: rework the toolbar code a little so functions do not have to return the Window they just created.
2008-05-15 19:00:20 +00:00
rubidium
7c10fb0023
(svn r13105) -Fix [FS#2015]: the title of a query window would (sometimes) change when the on screen keyboard was opened.
2008-05-15 18:26:45 +00:00
rubidium
6d880ada7f
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
2008-05-15 14:41:56 +00:00
rubidium
31ab1e815a
(svn r13103) -Codechange: make a class of the PlayerCompanyWindow.
2008-05-15 14:12:22 +00:00
rubidium
ca8d282eff
(svn r13102) -Codechange: make a class of the NewsWindow.
2008-05-15 13:47:55 +00:00
rubidium
f8d02c7d71
(svn r13101) -Codechange: remove a unused global function.
2008-05-15 13:47:22 +00:00
rubidium
373343cef6
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
2008-05-15 13:39:36 +00:00
rubidium
c709b8a711
(svn r13099) -Fix [FS#2014]: when a window had children only one of them would be closed (on a parent closure) instead of all children.
2008-05-15 11:17:56 +00:00
rubidium
35c14f45be
(svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot.
2008-05-15 08:01:46 +00:00
glx
7096f20ec5
(svn r13097) -Codechange: make a class of the GameDifficultyWindow.
2008-05-15 00:01:42 +00:00
glx
1c77928886
(svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes
2008-05-14 23:02:05 +00:00
glx
3a88f38b65
(svn r13095) -Codechange: make a class of the SelectPlayerLiveryWindow.
2008-05-14 22:52:12 +00:00
rubidium
beb17f743f
(svn r13094) -Fix: closing the QueryWindow would always send a 'query has been cancelled message' even when it was not cancelled causing joining passworded servers/companies to fail.
2008-05-14 20:28:11 +00:00
glx
5704d59314
(svn r13093) -Codechange: make a class of AboutWindow.
2008-05-14 20:01:06 +00:00
glx
e812c8223f
(svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it
2008-05-14 19:08:09 +00:00
smatz
f0e2d800ee
(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
2008-05-14 18:35:15 +00:00
smatz
2be223fc03
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
2008-05-14 18:31:21 +00:00
smatz
c90cda6c1c
(svn r13089) -Fix (r13072): MorphOS compilation was broken
2008-05-14 18:27:39 +00:00
smatz
9b8d16b7ff
(svn r13088) -Codechange: use SigSegState enum instead of bool variable (michi_cc)
2008-05-14 16:38:53 +00:00
peter1138
2475959196
(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)
2008-05-14 15:34:04 +00:00
smatz
e4dee736c5
(svn r13086) -Fix: do not crash badly after loading a newgrf with engines in-game that often
2008-05-14 15:29:48 +00:00
glx
ab0aa4e080
(svn r13083) -Fix (r13042): another segmentation fault when OskWindow's parent closes it
2008-05-14 02:32:35 +00:00
glx
015dbc6e7b
(svn r13082) -Fix (r13042): segmentation fault due to too early deletion of OskWindow.
2008-05-14 01:57:12 +00:00
glx
1ce52ef5cb
(svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+
2008-05-13 22:42:10 +00:00
smatz
dac285a74b
(svn r13080) -Fix: warning about unused variable when compiling without asserts
2008-05-13 22:19:20 +00:00
smatz
bea03ab5e7
(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
2008-05-13 22:02:14 +00:00
rubidium
0d2e74fb71
(svn r13078) -Fix: group gui used the vehicle type before it was actually set.
2008-05-13 21:50:31 +00:00
smatz
f92a48c24b
(svn r13077) -Codechange: move function that updates cached num_engines to engine.cpp, make it run only 1 loop
2008-05-13 21:36:09 +00:00
rubidium
316d3fbe1d
(svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train.
2008-05-13 21:16:23 +00:00
peter1138
2c02810b3a
(svn r13075) -Codechange: Allow any value for a dropdown item instead of just positive.
2008-05-13 21:11:38 +00:00
peter1138
839070028e
(svn r13074) -Fix: For multiheaded engines, halve power and running cost when used instead of when loading, to allow callback values to work properly.
2008-05-13 20:39:57 +00:00
peter1138
3f0895872f
(svn r13073) -Codechange: make classes of the NewGRF windows
2008-05-13 20:26:48 +00:00
smatz
3670a25e3a
(svn r13072) -Fix (r12995): possible out-of-bounds access
2008-05-13 18:39:15 +00:00
rubidium
6ae37e6339
(svn r13071) -Codechange: make also a class of the MainWindow.
2008-05-13 14:59:50 +00:00
rubidium
c18c9689a1
(svn r13070) -Fix (r13069): do save before commit...
2008-05-13 14:58:41 +00:00
rubidium
a7db265bb6
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
2008-05-13 14:43:33 +00:00