Commit Graph

3748 Commits (1b7fcf0171ab4bc39b6cbb6b144ab7433f72ce1e)

Author SHA1 Message Date
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.
16 years ago
peter1138 26ee8f3ca1 (svn r13250) -Codechange: Use VehicleList in SendAllVehiclesToDepot() 16 years ago
smatz c9ef11159f (svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent 16 years ago
peter1138 6d65ce0c8b (svn r13248) -Codechange: Use VehicleList for depot GUI. 16 years ago
rubidium c5e38037f0 (svn r13247) -Codechange: small amount of coding style for settings.cpp. 16 years ago
peter1138 449a03be4b (svn r13246) -Fix (r13245): incorrect parameters to memcpy 16 years ago
peter1138 bcd05a4bce (svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat. 16 years ago
smatz 8d51e95c44 (svn r13244) -Fix: allow only one town directory window to be opened 16 years ago
rubidium ce821b1ada (svn r13242) -Codechange: remove _opt_ptr. 16 years ago
peter1138 4ea34e778c (svn r13241) -Codechange: Simplify CmdDepotSellAllVehicles() a bit 16 years ago
peter1138 0a9e8854ec (svn r13240) -Codechange: More const-ness for GUI code. 16 years ago
smatz 7672a059c9 (svn r13239) -Fix: certain compilers give false warning about uninitialized variable 16 years ago
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.
16 years ago
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.
16 years ago
peter1138 ca244cbd06 (svn r13232) -Codechange: Simplify BuildDepotVehicleList() 16 years ago
rubidium eb3347e9d8 (svn r13231) -Codechange: split the core console code and the console GUI. 16 years ago
frosch 9da2cd6e02 (svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows. 16 years ago
rubidium 080af12d8b (svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums. 16 years ago
rubidium bf3b61cfa3 (svn r13228) -Codechange: split console.h. 16 years ago
peter1138 5f625acb1a (svn r13227) -Codechange: Apply code style 16 years ago
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
16 years ago
peter1138 cfc45e97ab (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
16 years ago
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'. 16 years ago
smatz 8841f3be40 (svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes 16 years ago
smatz 9e2490abb2 (svn r13221) -Fix (r8747): old AI failed to build oil rig routes 16 years ago
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 16 years ago
smatz 11e80b2794 (svn r13216) -Codechange [FS#2026]: enumify and comment Editor Terraform Toolbar widgets (Roujin) 16 years ago
smatz 6a4dad27fe (svn r13215) -Codechange [FS#2029]: enumify and comment Build Dock widgets (Roujin) 16 years ago
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 16 years ago
belugas 165df7420b (svn r13209) -Codechange: Privatize what should be private. 16 years ago
smatz 0df8060a64 (svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns 16 years ago
smatz 6b4f70099e (svn r13207) -Fix: misleading comments (michi_cc) 16 years ago
frosch 7f80552293 (svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window. 16 years ago
peter1138 42f78d2fc3 (svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro. 16 years ago
glx 41adc28093 (svn r13202) -Fix (r13149): MSVC signed/unsigned warning 16 years ago
smatz c1e45bcb01 (svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window 16 years ago
smatz ebe6a8b0df (svn r13190) -Cleanup: remove unused variable 16 years ago
rubidium 162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium ad29064cf3 (svn r13184) -Codechange: make a window class of the signs list. 16 years ago
rubidium df6446c07c (svn r13183) -Codechange: make a window class of the VehicleViewWindow. 16 years ago
rubidium 8560c8f16f (svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth. 16 years ago
rubidium 03f1292332 (svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan. 16 years ago
peter1138 b9cfaa6637 (svn r13180) -Codechange: make a window class of the TownDirectoryWindow. 16 years ago
smatz 17e4e33aee (svn r13179) -Fix (r13173): r13178 applies to the main toolbar in Scenario Editor, too 16 years ago
smatz d00d718b41 (svn r13178) -Fix (r13173): the main toolbar didn't respect patch settings, it was always positioned on the right side 16 years ago
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 16 years ago
smatz 1d9ad55eda (svn r13176) -Fix (r13153): town window was glitchy while opening 16 years ago
glx 4e11e0785a (svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening 16 years ago
glx dc1c529a31 (svn r13174) -Codechange: make a class of the IndustryDirectoryWindow. 16 years ago
rubidium 01a569f0d7 (svn r13173) -Codechange: make windows of the main toolbars. 16 years ago
rubidium c2014c8250 (svn r13172) -Codechange: make a window class of the terraform toolbars. 16 years ago
rubidium d60d22f45f (svn r13171) -Codechange: make a class of the Build[Air|Rail|Road|Dock]ToolbarWindows. 16 years ago
rubidium 3f53c2fd0e (svn r13170) -Codechange: make classes of the EnginePreview and BuyCompany windows. 16 years ago
rubidium a21d3fc63b (svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors. 16 years ago
smatz 23b9852480 (svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort() 16 years ago
rubidium 97293e5cbb (svn r13167) -Codechange: prepend _ to a global variable. 16 years ago
rubidium 78eb7d66b1 (svn r13166) -Codechange: CmdSetRoadDriveSide belongs in road_cmd.cpp, not settings_gui.cpp. 16 years ago
rubidium 3ee2556585 (svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData. 16 years ago
glx dc69a7c51b (svn r13163) -Codechange: remove unused code 16 years ago
smatz 119b892f95 (svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded 16 years ago
glx ca27e25ab0 (svn r13161) -Fix: free the blitter list when the last blitter is removed. 16 years ago
rubidium 4d5b9e38d6 (svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent. 16 years ago
skidd13 cbd09e4f57 (svn r13159) -Feature: Add the ability to sort availible bridges in the build bridge GUI 16 years ago
rubidium 6891469e87 (svn r13158) -Codechange: make a class of the GameOptionsWindow. 16 years ago
rubidium 9155d641cb (svn r13156) -Codechange: make classes of the GraphWindows. 16 years ago
rubidium 77059f7b5d (svn r13155) -Codechange: make a window class of the company league and graph legenda windows. 16 years ago
rubidium 8846d4380f (svn r13154) -Codechange: make a window class of the news message history window. 16 years ago
rubidium 4268afe340 (svn r13153) -Codechange: make classes of the TownViewWindow and the ScenarioEditorTownGenerationWindow. 16 years ago
rubidium 37386287f8 (svn r13152) -Codechange: make a class of the subsidy window. 16 years ago
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. 16 years ago
glx b101faea20 (svn r13150) -Codechange: make classes of the Music[TrackSelection]Window. 16 years ago
skidd13 bd742920b4 (svn r13149) -Codechange: make a class of the BuildBridgeWindow. 16 years ago
glx fb97874bc7 (svn r13148) -Codechange: make a class of the SelectGameWindow. 16 years ago
rubidium 4db10034fd (svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp. 16 years ago
rubidium 8ff56af53d (svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h. 16 years ago
glx 107371a26b (svn r13145) -Codechange: make classes of the BuildDocks[Depot|Station]Window. 16 years ago
glx e0e2b4b55a (svn r13144) -Codechange: make classes of the BuildRoad[Depot|Station]Window. 16 years ago
smatz acd36adf0b (svn r13143) -Fix (r13142): the Build Waypoint window wasn't resized when it was opened 16 years ago
glx f9935785f7 (svn r13142) -Codechange: make classes of the Build[RailDepot|RailStation|RailWaypoint|Signal]Window 16 years ago
rubidium ac8f0fdc7b (svn r13141) -Codechange: remove an unused variable from Window. 16 years ago
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. 16 years ago
rubidium a89b5721a8 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 16 years ago
rubidium 7f6ccdc624 (svn r13138) -Codechange: remove the need for IsWindowOfPrototype. 16 years ago
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. 16 years ago
rubidium a21692bdc1 (svn r13136) -Codechange: make a window class of the console window. 16 years ago
rubidium 6f45805af0 (svn r13135) -Codechange: make a class of the NetworkJoinStatusWindow. 16 years ago
belugas 47d9a8aa21 (svn r13134) -Codechange: make a class of the Airport Picker Window. 16 years ago
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
16 years ago
glx a4c5f94658 (svn r13132) -Codechange: make a class of the GenerateProgressWindow. 16 years ago
glx 0e9eb5bacb (svn r13131) -Codechange: make a class of the ErrmsgWindow. 16 years ago
rubidium 758f4a358d (svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore. 16 years ago
rubidium 0b61b6c1d0 (svn r13129) -Codechange: remove the WP macro and it's related variables. 16 years ago
peter1138 e03193f9d7 (svn r13128) -Codechange: Make a class of the refit window 16 years ago
glx 6741af92d3 (svn r13127) -Fix (r13122): of course WIN32_LEAN_AND_MEAN excludes too much stuff 16 years ago
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. 16 years ago
bjarni 13954aaaff (svn r13125) -Fix [FS#2000](r12913): [autoreplace] failing replacement and restoring a vehicle will no longer decrease the vehicle count in groups 16 years ago
glx 892759c396 (svn r13124) -Codechange: make a class of the OrdersWindow. 16 years ago
rubidium 483ad8d02a (svn r13123) -Codechange: passing the bankrupt type via data_b is not needed anymore. Patch by Cirdan. 16 years ago
glx bbb9dafa32 (svn r13122) -Fix: WIN32_LEAN_AND_MEAN define is needed for all WIN32 compilers 16 years ago
rubidium adb5a09cb3 (svn r13121) -Codechange: make a class of the PerformanceRatingDetailWindow. 16 years ago
rubidium a7c7067c4f (svn r13120) -Codechange: make a class of the VehicleDetailsWindow. 16 years ago
rubidium cbdcc7cc3b (svn r13119) -Codechange: make a class of the timetable window. 16 years ago
rubidium e7b3c3fa34 (svn r13118) -Codechange: make classes of the EndGameWindow and the HighScoreWindow. 16 years ago
rubidium 5a85fb104e (svn r13117) -Codechange: make a window class of the PlayerFinancesWindow. 16 years ago
rubidium 804b9f1d3a (svn r13116) -Codechange: make a window class of the statusbar window. 16 years ago
rubidium 349aec37e6 (svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow. 16 years ago
rubidium 083d7e8726 (svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar. 16 years ago
rubidium 5b712cf81e (svn r13113) -Codechange: make a class of the TownAuthorityWindow. 16 years ago
rubidium 045aaae1c7 (svn r13112) -Codechange: make classes of the patches and custom currency windows. 16 years ago
rubidium 01e79dde73 (svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan. 16 years ago
rubidium 2704b12f2b (svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly. 16 years ago
rubidium 447ed7a2a5 (svn r13109) -Codechange: make a class out of the CheatWindow. 16 years ago
rubidium 439b328f41 (svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus. 16 years ago
glx 07e10eade8 (svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow. 16 years ago
rubidium d87fc4d534 (svn r13106) -Codechange: rework the toolbar code a little so functions do not have to return the Window they just created. 16 years ago
rubidium 7c10fb0023 (svn r13105) -Fix [FS#2015]: the title of a query window would (sometimes) change when the on screen keyboard was opened. 16 years ago
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. 16 years ago
rubidium 31ab1e815a (svn r13103) -Codechange: make a class of the PlayerCompanyWindow. 16 years ago
rubidium ca8d282eff (svn r13102) -Codechange: make a class of the NewsWindow. 16 years ago
rubidium f8d02c7d71 (svn r13101) -Codechange: remove a unused global function. 16 years ago
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. 16 years ago
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. 16 years ago
rubidium 35c14f45be (svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot. 16 years ago
glx 7096f20ec5 (svn r13097) -Codechange: make a class of the GameDifficultyWindow. 16 years ago
glx 1c77928886 (svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes 16 years ago
glx 3a88f38b65 (svn r13095) -Codechange: make a class of the SelectPlayerLiveryWindow. 16 years ago
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. 16 years ago
glx 5704d59314 (svn r13093) -Codechange: make a class of AboutWindow. 16 years ago
glx e812c8223f (svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it 16 years ago
smatz f0e2d800ee (svn r13091) -Fix: certain compilers give false warning about uninitialized variable 16 years ago
smatz 2be223fc03 (svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits 16 years ago
smatz c90cda6c1c (svn r13089) -Fix (r13072): MorphOS compilation was broken 16 years ago
smatz 9b8d16b7ff (svn r13088) -Codechange: use SigSegState enum instead of bool variable (michi_cc) 16 years ago
peter1138 2475959196 (svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc) 16 years ago
smatz e4dee736c5 (svn r13086) -Fix: do not crash badly after loading a newgrf with engines in-game that often 16 years ago
glx ab0aa4e080 (svn r13083) -Fix (r13042): another segmentation fault when OskWindow's parent closes it 16 years ago
glx 015dbc6e7b (svn r13082) -Fix (r13042): segmentation fault due to too early deletion of OskWindow. 16 years ago
glx 1ce52ef5cb (svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+ 16 years ago
smatz dac285a74b (svn r13080) -Fix: warning about unused variable when compiling without asserts 16 years ago
smatz bea03ab5e7 (svn r13079) -Fix: certain compilers give false warning about uninitialized variable 16 years ago
rubidium 0d2e74fb71 (svn r13078) -Fix: group gui used the vehicle type before it was actually set. 16 years ago
smatz f92a48c24b (svn r13077) -Codechange: move function that updates cached num_engines to engine.cpp, make it run only 1 loop 16 years ago
rubidium 316d3fbe1d (svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train. 16 years ago
peter1138 2c02810b3a (svn r13075) -Codechange: Allow any value for a dropdown item instead of just positive. 16 years ago
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. 16 years ago
peter1138 3f0895872f (svn r13073) -Codechange: make classes of the NewGRF windows 16 years ago
smatz 3670a25e3a (svn r13072) -Fix (r12995): possible out-of-bounds access 16 years ago
rubidium 6ae37e6339 (svn r13071) -Codechange: make also a class of the MainWindow. 16 years ago
rubidium c18c9689a1 (svn r13070) -Fix (r13069): do save before commit... 16 years ago
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. 16 years ago