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
rubidium
9717e1ef07
(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
dbdfccc2da
(svn r13145) -Codechange: make classes of the BuildDocks[Depot|Station]Window.
2008-05-17 20:49:45 +00:00
glx
b68943e4df
(svn r13144) -Codechange: make classes of the BuildRoad[Depot|Station]Window.
2008-05-17 17:37:44 +00:00
smatz
88f9fa89bc
(svn r13143) -Fix (r13142): the Build Waypoint window wasn't resized when it was opened
2008-05-17 16:59:12 +00:00
glx
fdcb4e6402
(svn r13142) -Codechange: make classes of the Build[RailDepot|RailStation|RailWaypoint|Signal]Window
2008-05-17 16:27:36 +00:00
rubidium
7812b24a77
(svn r13141) -Codechange: remove an unused variable from Window.
2008-05-17 13:04:30 +00:00
rubidium
87015f5b63
(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
8b54212900
(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
d8154e00ac
(svn r13138) -Codechange: remove the need for IsWindowOfPrototype.
2008-05-17 12:26:00 +00:00
rubidium
976f86e7a7
(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
9f41e0cf18
(svn r13136) -Codechange: make a window class of the console window.
2008-05-17 09:39:29 +00:00
rubidium
edb2e77035
(svn r13135) -Codechange: make a class of the NetworkJoinStatusWindow.
2008-05-17 08:00:13 +00:00
belugas
27c3d210c4
(svn r13134) -Codechange: make a class of the Airport Picker Window.
2008-05-17 03:31:22 +00:00
belugas
17bd325574
(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
5199f5ff47
(svn r13132) -Codechange: make a class of the GenerateProgressWindow.
2008-05-17 03:16:04 +00:00
glx
5b54c9e373
(svn r13131) -Codechange: make a class of the ErrmsgWindow.
2008-05-17 02:54:04 +00:00
rubidium
cc0dae2271
(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
55546ae82c
(svn r13129) -Codechange: remove the WP macro and it's related variables.
2008-05-16 23:29:31 +00:00
peter1138
7ae25c25b6
(svn r13128) -Codechange: Make a class of the refit window
2008-05-16 23:23:38 +00:00
glx
670eca936f
(svn r13127) -Fix (r13122): of course WIN32_LEAN_AND_MEAN excludes too much stuff
2008-05-16 22:29:27 +00:00
glx
180272ed86
(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
5469686001
(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
ced7ee3043
(svn r13124) -Codechange: make a class of the OrdersWindow.
2008-05-16 20:08:20 +00:00
rubidium
5ede3da220
(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
5ea41a57b8
(svn r13122) -Fix: WIN32_LEAN_AND_MEAN define is needed for all WIN32 compilers
2008-05-16 17:53:19 +00:00
rubidium
3b97cc2e30
(svn r13121) -Codechange: make a class of the PerformanceRatingDetailWindow.
2008-05-16 17:45:43 +00:00
rubidium
2da844b146
(svn r13120) -Codechange: make a class of the VehicleDetailsWindow.
2008-05-16 17:33:09 +00:00
rubidium
e1cce4dd3c
(svn r13119) -Codechange: make a class of the timetable window.
2008-05-16 13:39:25 +00:00
rubidium
feba3ac1e7
(svn r13118) -Codechange: make classes of the EndGameWindow and the HighScoreWindow.
2008-05-16 13:21:43 +00:00
rubidium
b39525581d
(svn r13117) -Codechange: make a window class of the PlayerFinancesWindow.
2008-05-16 07:34:48 +00:00
rubidium
1a2413d59e
(svn r13116) -Codechange: make a window class of the statusbar window.
2008-05-16 07:24:21 +00:00
rubidium
6ac20f00bb
(svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow.
2008-05-16 07:15:32 +00:00
rubidium
7491b792e2
(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
7c7a4de3e5
(svn r13113) -Codechange: make a class of the TownAuthorityWindow.
2008-05-15 22:47:03 +00:00
rubidium
b84adf1d89
(svn r13112) -Codechange: make classes of the patches and custom currency windows.
2008-05-15 21:48:47 +00:00
rubidium
9e4d664a24
(svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan.
2008-05-15 20:53:44 +00:00
rubidium
c81a333cb6
(svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly.
2008-05-15 20:52:28 +00:00
rubidium
9013632325
(svn r13109) -Codechange: make a class out of the CheatWindow.
2008-05-15 20:51:52 +00:00
rubidium
b08d728ac9
(svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus.
2008-05-15 20:04:10 +00:00
glx
6a50687bdc
(svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow.
2008-05-15 19:24:15 +00:00
rubidium
eeb6381690
(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
8ba6f08ca6
(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
5ae795953a
(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
8fff6e8638
(svn r13103) -Codechange: make a class of the PlayerCompanyWindow.
2008-05-15 14:12:22 +00:00
rubidium
d94bef9d5c
(svn r13102) -Codechange: make a class of the NewsWindow.
2008-05-15 13:47:55 +00:00
rubidium
d1ab9908bc
(svn r13101) -Codechange: remove a unused global function.
2008-05-15 13:47:22 +00:00
rubidium
76b8970a33
(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
009a748ab3
(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
15e89b32b9
(svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot.
2008-05-15 08:01:46 +00:00
glx
534bf5b402
(svn r13097) -Codechange: make a class of the GameDifficultyWindow.
2008-05-15 00:01:42 +00:00
glx
bdd75a65f8
(svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes
2008-05-14 23:02:05 +00:00
glx
7728ef7204
(svn r13095) -Codechange: make a class of the SelectPlayerLiveryWindow.
2008-05-14 22:52:12 +00:00
rubidium
0449abe88b
(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
be43bbc3f3
(svn r13093) -Codechange: make a class of AboutWindow.
2008-05-14 20:01:06 +00:00
glx
22960e82aa
(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
7890344bbd
(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
2008-05-14 18:35:15 +00:00
smatz
ec627dedf8
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
2008-05-14 18:31:21 +00:00
smatz
56f15b3544
(svn r13089) -Fix (r13072): MorphOS compilation was broken
2008-05-14 18:27:39 +00:00
smatz
08814d50ea
(svn r13088) -Codechange: use SigSegState enum instead of bool variable (michi_cc)
2008-05-14 16:38:53 +00:00
peter1138
6bfd695002
(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)
2008-05-14 15:34:04 +00:00
smatz
f64c4fc4fb
(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
bbc173dfc6
(svn r13083) -Fix (r13042): another segmentation fault when OskWindow's parent closes it
2008-05-14 02:32:35 +00:00
glx
c9f26cceb7
(svn r13082) -Fix (r13042): segmentation fault due to too early deletion of OskWindow.
2008-05-14 01:57:12 +00:00
glx
b4682bff97
(svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+
2008-05-13 22:42:10 +00:00
smatz
311f2482fa
(svn r13080) -Fix: warning about unused variable when compiling without asserts
2008-05-13 22:19:20 +00:00
smatz
a152d420a5
(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
2008-05-13 22:02:14 +00:00
rubidium
cf91f6bf3e
(svn r13078) -Fix: group gui used the vehicle type before it was actually set.
2008-05-13 21:50:31 +00:00
smatz
a9cc987929
(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
bb3bd587a6
(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
9fa2e849f2
(svn r13075) -Codechange: Allow any value for a dropdown item instead of just positive.
2008-05-13 21:11:38 +00:00
peter1138
eb112946a7
(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
153acec334
(svn r13073) -Codechange: make classes of the NewGRF windows
2008-05-13 20:26:48 +00:00
smatz
ad8057ab76
(svn r13072) -Fix (r12995): possible out-of-bounds access
2008-05-13 18:39:15 +00:00
rubidium
ab7a5568d7
(svn r13071) -Codechange: make also a class of the MainWindow.
2008-05-13 14:59:50 +00:00
rubidium
8e702d1053
(svn r13070) -Fix (r13069): do save before commit...
2008-05-13 14:58:41 +00:00
rubidium
dddfaaac7d
(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
rubidium
db69f81fe7
(svn r13068) -Codechange: make a class of the BuildVehicleWindow.
2008-05-13 14:28:27 +00:00
rubidium
aa44fe3b69
(svn r13067) -Codechange: make a class of the DepotWindow.
2008-05-13 13:39:50 +00:00
rubidium
e6f96da537
(svn r13066) -Fix [FS#2005]: loading of TTDP savegames with rivers in them.
2008-05-13 12:15:52 +00:00
rubidium
d0c79e1164
(svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan.
2008-05-13 10:17:04 +00:00
glx
d0033bfb07
(svn r13064) -Codechange: make a class of the SelectPlayerFaceWindow.
2008-05-13 01:05:39 +00:00
belugas
3982160f50
(svn r13063) -Fix(13062): Removal of old handler was not followed by removal in descriptor
2008-05-13 00:46:04 +00:00
belugas
6c0d2b9132
(svn r13062) -Codechange: make a class of the TransparencyToolbar.
2008-05-13 00:37:29 +00:00
glx
ca4d92e2f2
(svn r13061) -Codechange: make a class of the BuildTreesWindow.
2008-05-12 21:46:08 +00:00
glx
18c33e1569
(svn r13060) -Codechange: update build industry window when raw_industry_construction setting is modified
2008-05-12 14:54:33 +00:00
glx
cffb7a834c
(svn r13058) -Codechange: make a class of the ExtraViewportWindow.
2008-05-12 00:26:44 +00:00
glx
ad19bf105a
(svn r13055) -Codechange: make a class of SmallMapWindow.
2008-05-11 19:47:10 +00:00
rubidium
526d5de867
(svn r13054) -Codechange: make a class of the PlayerStationsWindow.
2008-05-11 18:50:12 +00:00
rubidium
4a809a692c
(svn r13053) -Codechange: station sorting used it's own implementation of GUIList and the associated enums, now it doesn't anymore.
2008-05-11 18:32:33 +00:00
rubidium
5924346697
(svn r13052) -Codechange: make a class of the DropdownWindow.
2008-05-11 18:18:18 +00:00
rubidium
4caa813711
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
2008-05-11 18:17:56 +00:00
glx
56c3f828cd
(svn r13050) -Codechange: make a class of IndustryViewWindow.
2008-05-11 17:44:56 +00:00
rubidium
3ef0a1e3be
(svn r13049) -Codechange: make a class of the TooltipsWindow.
2008-05-11 17:44:38 +00:00
rubidium
1be2847668
(svn r13048) -Codechange: make a class of the StationViewWindow.
2008-05-11 17:24:52 +00:00
glx
c708ab3b48
(svn r13047) -Codechange: remove vp_d
2008-05-11 15:08:44 +00:00
rubidium
c47926311b
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
2008-05-11 15:00:11 +00:00
rubidium
75e3792aa3
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
2008-05-11 14:23:45 +00:00
rubidium
568464aa96
(svn r13044) -Fix: deleting an already deleted window.
2008-05-11 14:09:38 +00:00
rubidium
9066a961e7
(svn r13043) -Codechange: remove some duplicate variables from news_d.
2008-05-11 13:02:58 +00:00
rubidium
eb2d47b547
(svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables.
2008-05-11 12:26:20 +00:00
rubidium
e63137f47f
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
2008-05-11 11:41:18 +00:00
rubidium
599bc8942e
(svn r13040) -Codechange: make a class of the NetworkLobbyWindow.
2008-05-11 07:22:13 +00:00
rubidium
46875e28be
(svn r13039) -Codechange: make a class of the Query window.
2008-05-11 06:59:51 +00:00
belugas
7884a4ff19
(svn r13038) -Fix: When switching the signal gui patch to off, delete the signal window accordingly
2008-05-11 02:15:02 +00:00
rubidium
b47a151bce
(svn r13037) -Codechange: make a class of the ReplaceVehicle window.
...
-Fix [FS#1997]: MSVC 64 bit build failing to compile due to std::vectors being very large..
2008-05-10 23:44:15 +00:00
glx
356473efa5
(svn r13036) -Codechange: make a class of the BuildIndustry Window.
2008-05-10 23:43:08 +00:00
rubidium
c32559ac12
(svn r13035) -Codechange: remove two needless global-ish variables.
2008-05-10 22:43:33 +00:00
rubidium
3749323e23
(svn r13034) -Fix: segmentation fault due do double delete when closing the OSK window in some cases.
2008-05-10 21:35:20 +00:00
smatz
d41f3def5c
(svn r13033) -Fix [FS#2003](r13029): land info tool wasn't working
2008-05-10 19:59:41 +00:00
glx
6ad199d127
(svn r13032) -Codechange: make industry view window resizable and truncate strings
2008-05-10 15:58:22 +00:00
rubidium
83664c8bc4
(svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp.
2008-05-10 13:54:20 +00:00
rubidium
89c15ecb23
(svn r13030) -Codechange: do use MallocT instead of ReallocT when 100% sure that the pointer you are allocating to is NULL. Patch by Alberth.
2008-05-10 13:53:11 +00:00
rubidium
d24442ae8b
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
2008-05-10 13:46:36 +00:00
rubidium
935434333b
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
2008-05-10 12:30:27 +00:00
rubidium
f23026cce8
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
2008-05-10 08:58:52 +00:00
belugas
e099831210
(svn r13026) -Codechange[FS#1999]: Further Dynamite Tool Unification.(Roujin)
2008-05-10 02:59:52 +00:00
rubidium
68a1d75d9e
(svn r13025) -Codechange: remove the need for two WindowEvents.
2008-05-09 15:27:00 +00:00
rubidium
f438700402
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
2008-05-09 09:29:27 +00:00
peter1138
486172e07f
(svn r13023) -Revert (r1444): Revert changes to multihead engine weight -- the original values were correct.
2008-05-09 07:47:30 +00:00
smatz
5e51833ee5
(svn r13022) -Fix: driver list wasn't freed, replace by statically allocated one
2008-05-08 23:26:17 +00:00
rubidium
2ba05f8987
(svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan.
2008-05-08 22:53:49 +00:00
glx
bc514a7f51
(svn r13020) -Codechange: make industry directory window horizontally resizable and truncate strings
2008-05-08 21:09:21 +00:00
glx
0b37b81956
(svn r13019) -Fix [FS#1997]: silence some more MSVC x64 warnings (michi_cc)
2008-05-08 20:05:32 +00:00
rubidium
ba853fdb0b
(svn r13018) -Codechange: make a class of the LandInfo Window.
2008-05-08 19:26:55 +00:00
smatz
386a3f1d20
(svn r13016) -Codechange: unify the detection if rail catenary should be drawn
2008-05-08 16:48:29 +00:00
rubidium
4a11ebe76f
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
2008-05-08 14:14:16 +00:00
glx
5fda77239e
(svn r13014) -Fix (r13008): mingw revealed some signed/unsigned warnings
2008-05-08 14:04:52 +00:00
rubidium
d7e0dd6e82
(svn r13013) -Fix: GCC 4.3 warning about a clobbering mask due to longjmp. This can't be solved by using exceptions because the longjmp is needed for PNG (C-code) handling.
2008-05-08 13:51:15 +00:00
rubidium
ea218de179
(svn r13012) -Fix (r13011): the PlaceProc that was moved depended on another function...
2008-05-08 13:48:34 +00:00
rubidium
c74ca38970
(svn r13011) -Codechange: move PlaceProc_BuyLand out of rail_gui.cpp to the place where it is used and remove some unneeded globalisations of some other PlaceProc functions.
2008-05-08 13:30:50 +00:00
rubidium
cd3dda5c0c
(svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp.
2008-05-08 13:29:35 +00:00
rubidium
cabd771fc0
(svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h.
2008-05-08 13:21:55 +00:00
glx
e48a351f8e
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
2008-05-08 13:20:54 +00:00
rubidium
9ed36409c5
(svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there.
2008-05-08 12:59:47 +00:00
rubidium
23fc96c3e8
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
2eef026fe3
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
2008-05-08 11:31:41 +00:00
bjarni
d3650ecb3a
(svn r13002) -Fix (r13001): [autoreplace] previous fix broke updating of a pointer to the front vehicle in certain cases
...
Now it's updated when it's the front vehicle and it's every time it's the front vehicle and only if it's the front vehicle (nomatter if the replacement works or not)
2008-05-07 23:00:11 +00:00
bjarni
02709df7e3
(svn r13001) -Fix [FS#1994](r12913): [autoreplace] we should stop working on vehicles right away if we fail to replace them and certainly not presume their data is valid
2008-05-07 22:08:20 +00:00
glx
6e6102e20d
(svn r13000) -Fix (r12991): broken win9x compilation
2008-05-07 21:51:13 +00:00
rubidium
19910188fa
(svn r12999) -Fix [FS#1995]: when a Window got deleted on a double click event, we should not send a click event to the now non-existant Window as that causes segfaults.
2008-05-07 21:45:27 +00:00
smatz
3445b8054c
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
2008-05-07 18:31:29 +00:00
smatz
220bc49731
(svn r12994) -Fix (r12976): another case main toolbar wasn't marked dirty
2008-05-07 18:14:09 +00:00
smatz
c3822e3a90
(svn r12993) -Fix (r11175): list used for sorting GRFs wasn't freed
2008-05-07 17:36:28 +00:00
smatz
0c4715d825
(svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed
2008-05-07 15:53:58 +00:00
glx
c2c9121307
(svn r12991) -Codechange: removed some unneeded includes
2008-05-07 14:12:20 +00:00
rubidium
694ba37377
(svn r12990) -Fix: silence the redundanct declaration warning when compiling with iconv.
2008-05-07 13:37:53 +00:00
rubidium
cd7c99452f
(svn r12989) -Codechange: move ViewportSign to viewport_type.h.
2008-05-07 13:18:33 +00:00
bjarni
0cfd2baa3c
(svn r12988) -Fix [FS#1992](r12913): [autoreplace] failing to replace a road vehicle could free it's slot without the vehicle knowing it (leading to assert)
2008-05-07 13:11:33 +00:00
rubidium
3d5567ccf7
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
7ccda80b0b
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
2008-05-07 09:07:19 +00:00
bjarni
8fea5a62c9
(svn r12985) -Fix (r12977): [OSX] fixed missing includes in the cocoa files
2008-05-07 08:38:56 +00:00
rubidium
ca4349b517
(svn r12984) -Codechange: some coding style in window.cpp.
2008-05-07 08:27:55 +00:00
belugas
fa8ab829e9
(svn r12983) -Codechange [FS#1987] : Unification of all dynamite tools calls to only one. Thanks to Roujin
2008-05-07 00:04:40 +00:00
smatz
75a87a7266
(svn r12982) -Fix: compiler warning when compiling without asserts
2008-05-06 23:45:25 +00:00
glx
a9d263c459
(svn r12981) -Codechange: remove some useless includes and defines
2008-05-06 23:43:47 +00:00
rubidium
3b9e4f6d17
(svn r12980) -Fix: MorphOS threading support. Patch by Fabien Coeurjoly.
2008-05-06 22:50:55 +00:00
rubidium
822c130b70
(svn r12978) -Codechange: "\\0" is not needed for the MorphOS revision string. Patch by tokai.
2008-05-06 22:41:28 +00:00
rubidium
402a1e24ba
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
9bf519f26b
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
2008-05-06 22:08:18 +00:00
rubidium
e6c944a6c4
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
rubidium
46a0ebe1d9
(svn r12974) -Codechange: check whether loading/saving highscores goes as it should be.
2008-05-06 21:07:47 +00:00
peter1138
c025d7a152
(svn r12973) -Codechange: Rename GRMSpriteEntry to GRFLocation, as it is not necessarily specific to GRM sprites...
2008-05-06 17:24:27 +00:00
glx
780db88e99
(svn r12972) -Fix (r12971): forgot to close a comment
2008-05-06 15:36:55 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
glx
fb938a2cb3
(svn r12970) -Codechange: coding style for some function names
2008-05-06 15:06:19 +00:00
rubidium
fb1db90cc6
(svn r12969) -Codechange: remove a completely pointless file.
2008-05-06 14:24:33 +00:00
maedhros
8da41ec62e
(svn r12968) -Fix: Don't segfault when adding a server if 0.0.0.0 was entered for the address.
2008-05-06 10:31:50 +00:00
glx
7e1ac0ce57
(svn r12967) -Fix (r12966): my lang update script failed
2008-05-05 23:04:24 +00:00
glx
e326a03c4c
(svn r12966) -Update: apply english.txt changes from r12965 to other languages
2008-05-05 22:52:49 +00:00
glx
963dce0d47
(svn r12965) -Codechange: add support for callback 37 in industries directory window
2008-05-05 22:42:06 +00:00
glx
e7678a03cc
(svn r12964) -Codechange: rewrite callback 37 related code so it will be easier to add supported windows
2008-05-05 22:37:40 +00:00
rubidium
50516f2372
(svn r12963) -Fix (r12960): loading some NewGRFs could cause an infinite loop.
2008-05-05 22:35:33 +00:00
smatz
71800aa7c6
(svn r12962) -Fix (r12961): forgot one break
2008-05-05 22:22:12 +00:00
smatz
c9cf1d4cee
(svn r12961) -Codechange: store the type of savegame we are loading in a global variable
2008-05-05 22:03:01 +00:00
rubidium
56e1178dca
(svn r12960) -Codechange: handle return values of (some) file system related functions.
2008-05-05 21:54:05 +00:00
glx
1050f07ed1
(svn r12959) -Fix: don't assume no production when the first produced cargo is invalid in industries directory
2008-05-05 21:09:03 +00:00
peter1138
22aa011b57
(svn r12958) -Codechange: Allocate sprites reserved by GRM in advance of 'Action 1' sprites, giving much less chance of GRM reservation failure if lots of NewGRF sets are loaded.
2008-05-05 19:02:10 +00:00
rubidium
f200fc3b99
(svn r12957) -Codechange: do not misuse snprintf when you just want to copy a string, also use DEBUG instead of fprintf in one case.
2008-05-05 18:27:57 +00:00
belugas
0eab2c07c2
(svn r12956) -Codechange: Code-style application on switch-case aligment
2008-05-05 16:05:36 +00:00
smatz
72120a48c4
(svn r12955) -Fix (r12858): compilation with desync debug was broken
2008-05-05 15:07:09 +00:00