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
rubidium
c6c908aba5
(svn r13068) -Codechange: make a class of the BuildVehicleWindow.
2008-05-13 14:28:27 +00:00
rubidium
b2fe906015
(svn r13067) -Codechange: make a class of the DepotWindow.
2008-05-13 13:39:50 +00:00
rubidium
962273e242
(svn r13066) -Fix [FS#2005]: loading of TTDP savegames with rivers in them.
2008-05-13 12:15:52 +00:00
rubidium
5d7851e8d6
(svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan.
2008-05-13 10:17:04 +00:00
glx
a3d037956f
(svn r13064) -Codechange: make a class of the SelectPlayerFaceWindow.
2008-05-13 01:05:39 +00:00
belugas
d283521782
(svn r13063) -Fix(13062): Removal of old handler was not followed by removal in descriptor
2008-05-13 00:46:04 +00:00
belugas
27b3767b79
(svn r13062) -Codechange: make a class of the TransparencyToolbar.
2008-05-13 00:37:29 +00:00
glx
a6c4bbccb9
(svn r13061) -Codechange: make a class of the BuildTreesWindow.
2008-05-12 21:46:08 +00:00
glx
eb70da38d0
(svn r13060) -Codechange: update build industry window when raw_industry_construction setting is modified
2008-05-12 14:54:33 +00:00
glx
9f11d3089a
(svn r13058) -Codechange: make a class of the ExtraViewportWindow.
2008-05-12 00:26:44 +00:00
glx
a1a04fcc61
(svn r13055) -Codechange: make a class of SmallMapWindow.
2008-05-11 19:47:10 +00:00
rubidium
d711d21199
(svn r13054) -Codechange: make a class of the PlayerStationsWindow.
2008-05-11 18:50:12 +00:00
rubidium
e414ecdbdf
(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
4525234df4
(svn r13052) -Codechange: make a class of the DropdownWindow.
2008-05-11 18:18:18 +00:00
rubidium
bcdd9fcfe4
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
2008-05-11 18:17:56 +00:00
glx
cf315d2656
(svn r13050) -Codechange: make a class of IndustryViewWindow.
2008-05-11 17:44:56 +00:00
rubidium
323004da0c
(svn r13049) -Codechange: make a class of the TooltipsWindow.
2008-05-11 17:44:38 +00:00
rubidium
33b830aabe
(svn r13048) -Codechange: make a class of the StationViewWindow.
2008-05-11 17:24:52 +00:00
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
2008-05-11 15:08:44 +00:00
rubidium
ee3c14b344
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
2008-05-11 15:00:11 +00:00
rubidium
89a60ce249
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
2008-05-11 14:23:45 +00:00
rubidium
aa0929351d
(svn r13044) -Fix: deleting an already deleted window.
2008-05-11 14:09:38 +00:00
rubidium
4a46a5cdda
(svn r13043) -Codechange: remove some duplicate variables from news_d.
2008-05-11 13:02:58 +00:00
rubidium
d8a6bb392a
(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
29ad1d442a
(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
1f70b47e22
(svn r13040) -Codechange: make a class of the NetworkLobbyWindow.
2008-05-11 07:22:13 +00:00
rubidium
dc42908757
(svn r13039) -Codechange: make a class of the Query window.
2008-05-11 06:59:51 +00:00
belugas
914e51546d
(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
3651c0585a
(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
d706c8b462
(svn r13036) -Codechange: make a class of the BuildIndustry Window.
2008-05-10 23:43:08 +00:00
rubidium
9e0e4c0342
(svn r13035) -Codechange: remove two needless global-ish variables.
2008-05-10 22:43:33 +00:00
rubidium
1853a56291
(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
311a3f9675
(svn r13033) -Fix [FS#2003](r13029): land info tool wasn't working
2008-05-10 19:59:41 +00:00
glx
4c98a72745
(svn r13032) -Codechange: make industry view window resizable and truncate strings
2008-05-10 15:58:22 +00:00
rubidium
9410be7b70
(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
24c2d9ff5c
(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
2ac412375c
(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
f710876037
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
2008-05-10 12:30:27 +00:00
rubidium
2c96ce4506
(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
8ebfbc2bd3
(svn r13026) -Codechange[FS#1999]: Further Dynamite Tool Unification.(Roujin)
2008-05-10 02:59:52 +00:00
rubidium
8d0a7f4634
(svn r13025) -Codechange: remove the need for two WindowEvents.
2008-05-09 15:27:00 +00:00
rubidium
0f7d925121
(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
edc756697e
(svn r13023) -Revert (r1444): Revert changes to multihead engine weight -- the original values were correct.
2008-05-09 07:47:30 +00:00
smatz
273448436a
(svn r13022) -Fix: driver list wasn't freed, replace by statically allocated one
2008-05-08 23:26:17 +00:00
rubidium
ee0a49c91a
(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
5c9c8fc199
(svn r13020) -Codechange: make industry directory window horizontally resizable and truncate strings
2008-05-08 21:09:21 +00:00
glx
a8e8329d41
(svn r13019) -Fix [FS#1997]: silence some more MSVC x64 warnings (michi_cc)
2008-05-08 20:05:32 +00:00
rubidium
fc47683a0b
(svn r13018) -Codechange: make a class of the LandInfo Window.
2008-05-08 19:26:55 +00:00
smatz
b4968c6bea
(svn r13016) -Codechange: unify the detection if rail catenary should be drawn
2008-05-08 16:48:29 +00:00
rubidium
11d36d5e46
(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
f492567f66
(svn r13014) -Fix (r13008): mingw revealed some signed/unsigned warnings
2008-05-08 14:04:52 +00:00
rubidium
db37b017ef
(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
88e96a5638
(svn r13012) -Fix (r13011): the PlaceProc that was moved depended on another function...
2008-05-08 13:48:34 +00:00
rubidium
2c5db97704
(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
0c30e46c9c
(svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp.
2008-05-08 13:29:35 +00:00
rubidium
8b9ffbe158
(svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h.
2008-05-08 13:21:55 +00:00
glx
a28ea38653
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
2008-05-08 13:20:54 +00:00
rubidium
f3d184aee4
(svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there.
2008-05-08 12:59:47 +00:00
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
2008-05-08 11:31:41 +00:00
bjarni
5a7fcf9aa3
(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
addcd2bb2e
(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
d58b5e3caa
(svn r13000) -Fix (r12991): broken win9x compilation
2008-05-07 21:51:13 +00:00
rubidium
054552a30b
(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
8a422e34df
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
2008-05-07 18:31:29 +00:00
smatz
cc107fe0f9
(svn r12994) -Fix (r12976): another case main toolbar wasn't marked dirty
2008-05-07 18:14:09 +00:00
smatz
b6ec43896d
(svn r12993) -Fix (r11175): list used for sorting GRFs wasn't freed
2008-05-07 17:36:28 +00:00
smatz
7927da8fab
(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
97cb66d099
(svn r12991) -Codechange: removed some unneeded includes
2008-05-07 14:12:20 +00:00
rubidium
c2256c46f1
(svn r12990) -Fix: silence the redundanct declaration warning when compiling with iconv.
2008-05-07 13:37:53 +00:00
rubidium
e38e1aa631
(svn r12989) -Codechange: move ViewportSign to viewport_type.h.
2008-05-07 13:18:33 +00:00
bjarni
c2a54a60bb
(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
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
e0e1bf76a2
(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
3c82dd6550
(svn r12985) -Fix (r12977): [OSX] fixed missing includes in the cocoa files
2008-05-07 08:38:56 +00:00
rubidium
43328ced46
(svn r12984) -Codechange: some coding style in window.cpp.
2008-05-07 08:27:55 +00:00
belugas
343a1e6afd
(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
93861e78a3
(svn r12982) -Fix: compiler warning when compiling without asserts
2008-05-06 23:45:25 +00:00
glx
3ba47883c0
(svn r12981) -Codechange: remove some useless includes and defines
2008-05-06 23:43:47 +00:00
rubidium
6007500faf
(svn r12980) -Fix: MorphOS threading support. Patch by Fabien Coeurjoly.
2008-05-06 22:50:55 +00:00
rubidium
93441ad552
(svn r12978) -Codechange: "\\0" is not needed for the MorphOS revision string. Patch by tokai.
2008-05-06 22:41:28 +00:00
rubidium
c27f3cfa62
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
9db77e3808
(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
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
rubidium
7b6ce158fe
(svn r12974) -Codechange: check whether loading/saving highscores goes as it should be.
2008-05-06 21:07:47 +00:00
peter1138
9e977b78ff
(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
4e29eedb85
(svn r12972) -Fix (r12971): forgot to close a comment
2008-05-06 15:36:55 +00:00
rubidium
1ce0b03bf0
(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
1b9197d6dd
(svn r12970) -Codechange: coding style for some function names
2008-05-06 15:06:19 +00:00
rubidium
1ed3ea4705
(svn r12969) -Codechange: remove a completely pointless file.
2008-05-06 14:24:33 +00:00
maedhros
28e1da6c5d
(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
3260abec08
(svn r12967) -Fix (r12966): my lang update script failed
2008-05-05 23:04:24 +00:00
glx
6509e5ff8a
(svn r12966) -Update: apply english.txt changes from r12965 to other languages
2008-05-05 22:52:49 +00:00
glx
7da190c1e0
(svn r12965) -Codechange: add support for callback 37 in industries directory window
2008-05-05 22:42:06 +00:00
glx
7f8f70f6f0
(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
e7d125de58
(svn r12963) -Fix (r12960): loading some NewGRFs could cause an infinite loop.
2008-05-05 22:35:33 +00:00
smatz
19b20a7dde
(svn r12962) -Fix (r12961): forgot one break
2008-05-05 22:22:12 +00:00
smatz
2e0ec76007
(svn r12961) -Codechange: store the type of savegame we are loading in a global variable
2008-05-05 22:03:01 +00:00
rubidium
f2683a6037
(svn r12960) -Codechange: handle return values of (some) file system related functions.
2008-05-05 21:54:05 +00:00
glx
15ebb1a292
(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
e2c739551c
(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
41aeb7ffa0
(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
8580edbf20
(svn r12956) -Codechange: Code-style application on switch-case aligment
2008-05-05 16:05:36 +00:00
smatz
f0064d5165
(svn r12955) -Fix (r12858): compilation with desync debug was broken
2008-05-05 15:07:09 +00:00
peter1138
78c0929b18
(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items.
2008-05-05 11:36:43 +00:00
peter1138
7e70d9f09f
(svn r12952) -Cleanup: Indenting and codestyle
2008-05-05 11:24:58 +00:00
belugas
24bfbc9472
(svn r12951) -Fix(r9762)[FS#1977): Revert the new difficulty settings of town and industries back to their initial values.
2008-05-05 02:11:12 +00:00
belugas
dcdfb02130
(svn r12950) -Fix: two includes is one too much
2008-05-05 02:02:32 +00:00
rubidium
62259ff665
(svn r12949) -Fix [FS#1978]: no loading/no unloading orders were 'forgotten' during manual replaces.
2008-05-04 22:57:50 +00:00
rubidium
c878af4841
(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.
2008-05-04 22:38:18 +00:00
glx
5b1e423889
(svn r12947) -Fix: keep only first 15 bits for non failed callback results
2008-05-04 22:32:25 +00:00
rubidium
cdf9ada599
(svn r12946) -Fix: do not allocate the OldNames table when creating a new game as it won't be used anyway.
2008-05-04 22:19:44 +00:00
rubidium
a89f533e09
(svn r12945) -Fix: (small) memory leak when joining/exiting threads.
2008-05-04 22:13:47 +00:00
smatz
89a8dc8cf7
(svn r12944) -Codechange: use rev.h instead of externs at many places
2008-05-04 21:53:36 +00:00
rubidium
8fe14f7162
(svn r12943) -Fix: reading/modifying invalid data under some circumstances.
2008-05-04 21:47:36 +00:00
rubidium
4acb8f3a5e
(svn r12942) -Fix [FS#1979]: closing some windows caused recursion in the Window deletion causing the reading invalid/freed data which could cause crashes.
2008-05-04 21:36:37 +00:00
rubidium
0083ce9e1b
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
2008-05-04 10:05:50 +00:00
bjarni
63fea0790b
(svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should include the cargo packets in the vehicle as well
2008-05-04 10:05:35 +00:00
rubidium
b35100e2a9
(svn r12939) -Codechange: do not use the window proc to determine whether a toolbar is a rail toolbar, but use the window number.
2008-05-04 09:39:16 +00:00
rubidium
ec931ba5c6
(svn r12938) -Codechange: coding style fixes. Patch by Alberth.
2008-05-04 08:56:59 +00:00
rubidium
7c93f3bab8
(svn r12937) -Codechange: split allocating and finding the spot to place a window. Patch by Alberth.
2008-05-04 08:49:57 +00:00
rubidium
300c7e459a
(svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth.
2008-05-04 08:38:21 +00:00
rubidium
200e35cd8c
(svn r12935) -Fix [FS#1975]: vehicles forget their manual depot order when stopping at a station. Now we just pass through the station without stopping when a vehicle has been given a depot order.
2008-05-02 08:15:36 +00:00
belugas
5867336b6e
(svn r12934) -Codechange: Before verification of local authority, just make sure airport can physically be built there. Just moving tests
2008-05-02 02:06:57 +00:00
glx
5bd8b6adb0
(svn r12933) -Fix: minor errors related to industries accepted/produced cargo
2008-05-01 22:51:53 +00:00
peter1138
c8e10ac1f8
(svn r12932) -Fix [FS#1970]: Articulated engines ignored GRF engine overrides.
2008-04-30 17:42:08 +00:00
rubidium
f1820a5708
(svn r12930) -Add: build support for NetBSD and HP-UX. Patch by ahoka.
2008-04-30 07:39:46 +00:00
smatz
36bb91cc6d
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
2008-04-29 23:11:55 +00:00
peter1138
45034bc522
(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-29 21:31:29 +00:00
rubidium
6056d1fb31
(svn r12921) -Codechange: coding style fixes and documentation updates.
2008-04-29 18:19:29 +00:00
smatz
299b15c2bf
(svn r12920) -Fix (r12859): town rating was affected even after the test run
2008-04-29 18:08:14 +00:00
smatz
0ddb481a33
(svn r12919) -Fix [FS#1965]: flood road tiles even when there are road works in progress
2008-04-29 16:36:44 +00:00
rubidium
49ded3f2c3
(svn r12918) -Fix [FS#1963] (r12679): last airport would always be shown as buildable even when it was not.
2008-04-29 10:26:22 +00:00
peter1138
8bb0ff0a63
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
2008-04-29 07:11:54 +00:00
smatz
2d7430cf33
(svn r12916) -Fix: let ThreadObject_pthread::IsRunning() behave the same way as ThreadObject_Win32::IsRunning() does
2008-04-28 23:48:45 +00:00
smatz
6181451b13
(svn r12915) -Fix [FS#1960](r12857): don't initialize Station struct with tile=0, buoys will never change that value
2008-04-28 23:34:23 +00:00
peter1138
1a7c1cb84b
(svn r12914) -Fix: Game crash when a spectator/server tried to show an engine with no owner when a NewGRF requested a specific variable.
2008-04-28 11:15:13 +00:00
bjarni
783e20a263
(svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
...
Autoreplace uses this with the following benefits:
-Mass autoreplace (the button in the depot window) will now estimate costs correctly
-Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
Thanks to Ammler for testing this
2008-04-27 20:09:29 +00:00
bjarni
d6c971fd9b
(svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID
2008-04-27 18:05:48 +00:00
peter1138
2d5be0185f
(svn r12910) -Fix: Report reverse sprite status (FD/FE) to NewGRF for manually toggled vehicles.
2008-04-27 10:19:41 +00:00
smatz
bf3542e9f7
(svn r12906) -Fix: vehicle groups, engine replacement rules and player/company names were not properly reset/freed after bankrupt (before new player start)
2008-04-26 14:20:39 +00:00
smatz
f129ba40a7
(svn r12904) -Fix [FS#1953]: remove trams from savegames saved in OTTD without tram support, it is better than to simply crash
2008-04-25 16:33:40 +00:00
rubidium
81859bb7ad
(svn r12898) -Codechange: coding style in unmovable_cmd.cpp.
2008-04-25 15:25:28 +00:00
rubidium
60ed64e909
(svn r12897) -Codechange: some coding style in station_cmd.cpp.
2008-04-25 15:22:32 +00:00
glx
5d8ed6f1c2
(svn r12895) -Fix: restored Icelandic plural form and removed cases from Brazilian Portuguese (again)
2008-04-25 15:05:08 +00:00
rubidium
6ed5c01143
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
2008-04-25 06:15:58 +00:00
belugas
eff775d252
(svn r12875) -Codechange: Use defined const instead of cast magic
2008-04-24 18:30:41 +00:00
belugas
249ea61c7e
(svn r12874) -Codechange: The closest town is already known. Do not search for it again.
2008-04-24 18:17:53 +00:00
rubidium
4016d15bc7
(svn r12873) -Fix [FS#1946]: MSVC is whining because it doesn't understand that bytes should be cast to ints.
2008-04-24 17:53:45 +00:00
peter1138
33f85f80d0
(svn r12872) -Codechange: Remove obsolete unused engine list order function
2008-04-24 15:51:29 +00:00
smatz
0a83a43075
(svn r12870) -Codechange: remove some magic numbers from u.ship.state handling
2008-04-24 13:05:51 +00:00
rubidium
26cea31b1e
(svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable.
2008-04-24 11:11:50 +00:00
smatz
26206fa116
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
2008-04-24 09:55:20 +00:00
miham
1a26e29333
(svn r12861) -Update: WebTranslator2 update to 2008-04-24 10:49:17
...
brazilian_portuguese - 74 fixed, 2 changed by fukumori (38), tucalipe (38)
bulgarian - 59 fixed by thetitan (59)
catalan - 75 fixed by arnaullv (75)
czech - 70 fixed, 42 changed by Hadez (112)
danish - 46 fixed by MiR (46)
dutch - 75 fixed by habell (75)
estonian - 91 fixed, 33 changed by kristjans (124)
french - 74 fixed, 2 changed by glx (76)
italian - 76 fixed, 9 changed by lorenzodv (85)
latvian - 24 fixed, 39 changed by stripe4 (63)
russian - 86 fixed by Smoky555 (86)
slovak - 3 fixed by lengyel (3)
slovenian - 75 fixed by Necrolyte (75)
spanish - 91 fixed, 2 changed by eusebio (93)
swedish - 72 fixed by ChrillDeVille (72)
traditional_chinese - 82 fixed, 4 changed by xbddc (86)
ukrainian - 76 fixed, 36 changed by mad (112)
2008-04-24 08:53:04 +00:00
peter1138
6ac8ced9af
(svn r12860) -Fix [FS#1947]: Train depart animation trigger was not called in some cases.
2008-04-24 07:44:21 +00:00
rubidium
b2717d1426
(svn r12859) -Fix: make the town rating tests use less memory and much quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs.
2008-04-23 22:55:11 +00:00
rubidium
29ce273067
(svn r12858) -Add: small piece of code that can help hunting desyncs. Has to be enabled by --enable-desync-debug=1 though.
2008-04-23 22:17:33 +00:00
rubidium
2b85217bfe
(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
2008-04-23 22:16:41 +00:00
peter1138
7c8fe9791b
(svn r12856) -Fix: Taking r12377 further, ensure that prop 25 is set for all vehicles in the consist before other properties.
2008-04-23 21:55:24 +00:00
rubidium
d56827a9a9
(svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though.
2008-04-23 20:56:08 +00:00
smatz
a204a3b70e
(svn r12854) -Codechange: make drawing of rail catenary a bit faster
2008-04-23 20:22:31 +00:00
smatz
112afdf7d8
(svn r12853) -Fix: catenary on tunnel entrances and middle bridge pieces was drawn twice in some cases
2008-04-23 19:47:23 +00:00
smatz
ac0cfcde33
(svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles
2008-04-23 19:07:18 +00:00
glx
1461ba9d35
(svn r12850) -Fix (r12848): compilation was broken for some platforms
2008-04-23 13:36:52 +00:00
peter1138
b471c5d312
(svn r12848) -Cleanup/Codechange: Use correct variable types, don't prefix with _ for non-globals, and use implicit enum numbering.
2008-04-23 12:03:47 +00:00
peter1138
616cd60651
(svn r12847) -Cleanup: Identing and variable scope
2008-04-23 11:57:58 +00:00
rubidium
420b1b53d3
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
2008-04-23 00:16:21 +00:00
rubidium
97f78133d2
(svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway.
2008-04-23 00:14:49 +00:00
bjarni
80a0435ba8
(svn r12843) -Feature [FS#1945]: The autoreplace window is now resizable in both directions
...
The code to open this window is also unified for all vehicle types
2008-04-22 23:16:36 +00:00
glx
2c057b318e
(svn r12842) -Codechange [FS#1604]: scale message history by map size
2008-04-22 21:18:55 +00:00
peter1138
f767baba58
(svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically.
2008-04-22 18:20:41 +00:00
belugas
931aecda9f
(svn r12837) -Codechange: Alignment of widget array
2008-04-22 14:40:09 +00:00
rubidium
8637e6afa1
(svn r12836) -Fix: SunOS non-dedicated server compilation.
2008-04-21 23:04:05 +00:00
peter1138
a05e9b4c6b
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
2008-04-21 20:50:58 +00:00
frosch
f43661e790
(svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'.
2008-04-21 17:04:17 +00:00
rubidium
e947fde701
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-21 14:33:33 +00:00
rubidium
bbe13a0623
(svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey.
2008-04-21 13:45:03 +00:00
rubidium
5a17e6b395
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
2008-04-21 11:29:01 +00:00