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
peter1138
4595d2c3b1
(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
57e104f97e
(svn r12952) -Cleanup: Indenting and codestyle
2008-05-05 11:24:58 +00:00
belugas
cdd22af5a1
(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
26f11fd181
(svn r12950) -Fix: two includes is one too much
2008-05-05 02:02:32 +00:00
rubidium
a1e77073fe
(svn r12949) -Fix [FS#1978]: no loading/no unloading orders were 'forgotten' during manual replaces.
2008-05-04 22:57:50 +00:00
rubidium
e6bc8fa3d8
(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
9eb498eb53
(svn r12947) -Fix: keep only first 15 bits for non failed callback results
2008-05-04 22:32:25 +00:00
rubidium
a51e32376e
(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
7a85e26268
(svn r12945) -Fix: (small) memory leak when joining/exiting threads.
2008-05-04 22:13:47 +00:00
smatz
297f99e100
(svn r12944) -Codechange: use rev.h instead of externs at many places
2008-05-04 21:53:36 +00:00
rubidium
0b8b5d1f3b
(svn r12943) -Fix: reading/modifying invalid data under some circumstances.
2008-05-04 21:47:36 +00:00
rubidium
762315c47c
(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
cb680474c3
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
2008-05-04 10:05:50 +00:00
bjarni
dbf6e344a4
(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
8ca1035316
(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
a26b25aecc
(svn r12938) -Codechange: coding style fixes. Patch by Alberth.
2008-05-04 08:56:59 +00:00
rubidium
5b44c68b19
(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
72eb1f100b
(svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth.
2008-05-04 08:38:21 +00:00
rubidium
d1ddff90d9
(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
b49b4f627f
(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
49484eedca
(svn r12933) -Fix: minor errors related to industries accepted/produced cargo
2008-05-01 22:51:53 +00:00
peter1138
3e0b6199c4
(svn r12932) -Fix [FS#1970]: Articulated engines ignored GRF engine overrides.
2008-04-30 17:42:08 +00:00
rubidium
4097d81323
(svn r12930) -Add: build support for NetBSD and HP-UX. Patch by ahoka.
2008-04-30 07:39:46 +00:00
smatz
c76b2be644
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
2008-04-29 23:11:55 +00:00
peter1138
a00371c8db
(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
1d01390fa6
(svn r12921) -Codechange: coding style fixes and documentation updates.
2008-04-29 18:19:29 +00:00
smatz
a870a66877
(svn r12920) -Fix (r12859): town rating was affected even after the test run
2008-04-29 18:08:14 +00:00
smatz
fc60ef874d
(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
9f3351fed4
(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
5ca6fd67fc
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
2008-04-29 07:11:54 +00:00
smatz
868c17a175
(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
dd00683a46
(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
a37ee93f8d
(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
757de2bdf5
(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
9f5f4e59cd
(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
3f2513b5ac
(svn r12910) -Fix: Report reverse sprite status (FD/FE) to NewGRF for manually toggled vehicles.
2008-04-27 10:19:41 +00:00
smatz
9e1b8b69e3
(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
805e1db332
(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
4e80f3f3b1
(svn r12898) -Codechange: coding style in unmovable_cmd.cpp.
2008-04-25 15:25:28 +00:00
rubidium
1aa7d9faff
(svn r12897) -Codechange: some coding style in station_cmd.cpp.
2008-04-25 15:22:32 +00:00
glx
9d7181abd7
(svn r12895) -Fix: restored Icelandic plural form and removed cases from Brazilian Portuguese (again)
2008-04-25 15:05:08 +00:00
rubidium
f1679bcbb7
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
2008-04-25 06:15:58 +00:00
belugas
bf702602c1
(svn r12875) -Codechange: Use defined const instead of cast magic
2008-04-24 18:30:41 +00:00
belugas
fbeaf0389d
(svn r12874) -Codechange: The closest town is already known. Do not search for it again.
2008-04-24 18:17:53 +00:00
rubidium
91fa34ea11
(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
f8612ad5b9
(svn r12872) -Codechange: Remove obsolete unused engine list order function
2008-04-24 15:51:29 +00:00
smatz
345f160978
(svn r12870) -Codechange: remove some magic numbers from u.ship.state handling
2008-04-24 13:05:51 +00:00
rubidium
5ac07a2c34
(svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable.
2008-04-24 11:11:50 +00:00
smatz
9fc355fca5
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
2008-04-24 09:55:20 +00:00
miham
48eda2b6ef
(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
60eb3c034f
(svn r12860) -Fix [FS#1947]: Train depart animation trigger was not called in some cases.
2008-04-24 07:44:21 +00:00
rubidium
9c675afb91
(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
739cb53fff
(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
dce1b33196
(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
2008-04-23 22:16:41 +00:00
peter1138
10ab24a5f1
(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
6939569362
(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
1ba6e3deeb
(svn r12854) -Codechange: make drawing of rail catenary a bit faster
2008-04-23 20:22:31 +00:00
smatz
459259aeec
(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
ccfe024a2a
(svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles
2008-04-23 19:07:18 +00:00
glx
e3ca91dc15
(svn r12850) -Fix (r12848): compilation was broken for some platforms
2008-04-23 13:36:52 +00:00
peter1138
24cccc8333
(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
fff763b5ce
(svn r12847) -Cleanup: Identing and variable scope
2008-04-23 11:57:58 +00:00
rubidium
39a715f1f3
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
2008-04-23 00:16:21 +00:00
rubidium
2d860049a7
(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
501b89b8de
(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
46bd824b3e
(svn r12842) -Codechange [FS#1604]: scale message history by map size
2008-04-22 21:18:55 +00:00
peter1138
c5211354a6
(svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically.
2008-04-22 18:20:41 +00:00
belugas
da134d5a39
(svn r12837) -Codechange: Alignment of widget array
2008-04-22 14:40:09 +00:00
rubidium
845b827fbc
(svn r12836) -Fix: SunOS non-dedicated server compilation.
2008-04-21 23:04:05 +00:00
peter1138
5dcd689f56
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
2008-04-21 20:50:58 +00:00
frosch
173ac52da5
(svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'.
2008-04-21 17:04:17 +00:00
rubidium
5ef8c01ce7
(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
22140d82c6
(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
a40bba8bac
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
2008-04-21 11:29:01 +00:00
rubidium
2a779a5e10
(svn r12816) -Fix: the cargo count in the performance rating window could be wrong.
2008-04-21 09:27:47 +00:00
rubidium
cea98ea0e6
(svn r12815) -Codechange: reshuffle some variables in the CargoPacket struct saving 4 of 36 bytes with a 32 bit compiler and 8 of 48 bytes on 64 bit compiler per cargo packets. There are generally more cargopackets in game than vehicles.
2008-04-21 09:20:42 +00:00
rubidium
dea4738382
(svn r12814) -Codechange: reshuffle some variables in the Vehicle struct saving 20 bytes with a 32 bit compiler and 32 bytes on 64 bit compiler per vehicle.
2008-04-21 08:35:27 +00:00
rubidium
c332c68170
(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
2008-04-21 07:57:51 +00:00
glx
4395bda7b5
(svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace()
2008-04-20 21:49:57 +00:00
peter1138
b418ee5a4c
(svn r12809) -Fix (r1704): Possible out of bounds array access.
2008-04-20 21:38:20 +00:00
glx
f7d3d879c5
(svn r12808) -Fix: enforce autorenew values range in command
...
-Fix: typo in english.txt
2008-04-20 21:36:41 +00:00
rubidium
fccfcd093b
(svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan.
2008-04-20 11:40:33 +00:00
rubidium
b139756e2b
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
2008-04-20 11:12:07 +00:00
rubidium
f55ffd14bd
(svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a uniform naming of the thing instead of using both names for the same thing.
2008-04-20 10:13:54 +00:00
rubidium
181b36ca0b
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
2008-04-20 08:43:31 +00:00
rubidium
15680e477a
(svn r12800) -Codechange: move the animated tile related functions out of texteff.cpp (it isn't a text effect after all). Also remove a few more functions from functions.
2008-04-20 08:22:59 +00:00
peter1138
4f8409daf6
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
2008-04-19 23:34:42 +00:00
peter1138
210d757499
(svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes)
2008-04-19 23:19:12 +00:00
bjarni
de015fbf90
(svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own
2008-04-19 22:51:52 +00:00
rubidium
c884d82e46
(svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did.
2008-04-19 21:51:05 +00:00
rubidium
0e624275ee
(svn r12795) -Fix [FS#1938]: vehicles could break down during loading and keep loading. The intention of the break down code is not to break down when having zero speed, therefor break downs now do not happen when loading.
2008-04-19 21:23:42 +00:00
bjarni
c360e71e3c
(svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp
2008-04-19 19:01:57 +00:00
peter1138
4f2c2656e7
(svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln)
2008-04-19 18:03:24 +00:00
bjarni
01549e1574
(svn r12792) -Codechange: [autoreplace] added a function to figure out if a replacement is needed and if so, to which EngineID
...
It's designed to save a bit of CPU time, specially if the replacement isn't buildable (think autorenew of old vehicle)
2008-04-19 17:47:56 +00:00
bjarni
ad3ef0fb26
(svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
...
This allowed cleaning up the code in MaybeReplaceVehicle()
2008-04-19 15:14:20 +00:00
rubidium
752c8d8f2e
(svn r12790) -Codechange: code style fixes. Patch by Alberth.
2008-04-19 13:28:48 +00:00
rubidium
24b5c91039
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
2008-04-19 13:17:19 +00:00
rubidium
1dcf912f06
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
2008-04-19 13:07:37 +00:00
rubidium
c84fe27ca9
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
2008-04-19 13:05:05 +00:00
rubidium
118a680fd3
(svn r12786) -Change: remove more function from functions.h.
2008-04-19 13:04:29 +00:00
rubidium
222988603f
(svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan.
2008-04-19 12:50:02 +00:00
rubidium
161b588631
(svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp.
2008-04-19 10:18:38 +00:00
rubidium
e0722751c6
(svn r12783) -Codechange: do not statically allocate the 'temporary map3 array' in the oldloader.
2008-04-19 08:34:03 +00:00
rubidium
49cfba55bb
(svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore.
2008-04-19 08:21:55 +00:00
rubidium
15242b1784
(svn r12780) -Fix: the null blitter did segfault.
2008-04-18 23:32:10 +00:00
rubidium
dde68e922a
(svn r12779) -Codechange: remove a few constants from openttd.h.
2008-04-18 21:49:38 +00:00
smatz
14dc60c8a1
(svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions
2008-04-18 21:38:36 +00:00
smatz
f32ecbcadb
(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute
2008-04-18 21:33:21 +00:00
egladil
8e49daf3e1
(svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion.
2008-04-18 21:21:25 +00:00
rubidium
e5eac05c6e
(svn r12773) -Codechange: replace some magic numbers with enums.
2008-04-18 19:26:52 +00:00
rubidium
fb466f4db2
(svn r12772) -Codechange: some vehicle.cpp coding style.
2008-04-18 17:53:06 +00:00
rubidium
7edc9b65c6
(svn r12771) -Codechange: remove more from variables.h.
2008-04-18 16:51:54 +00:00
rubidium
0cecc4af20
(svn r12769) -Codechange: some coding style cleanups.
2008-04-18 15:18:16 +00:00
rubidium
8c2c7c27ea
(svn r12768) -Codechange: move the statusbar GUI to it's own file.
2008-04-18 15:13:45 +00:00
rubidium
dc16b4f2b4
(svn r12767) -Codechange: merge all main toolbar related functions into a single file instead of scattering the functionality over several files.
2008-04-18 15:11:39 +00:00
rubidium
31411d4755
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
2008-04-18 10:58:11 +00:00
rubidium
1b2773445d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
2008-04-18 10:16:51 +00:00
rubidium
acafc26426
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
2008-04-18 04:54:09 +00:00
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
belugas
6daaf0fc55
(svn r12760) -Fix(r12759): Remove a now useless comment
2008-04-18 03:20:59 +00:00
belugas
8e4b259352
(svn r12759) -Fix(r12358): There is no need to mask callback result for pre-version7 since CBID_INDTILE_SHAPE_CHECK (cb2F) is really 15 bits.
2008-04-18 03:17:22 +00:00
belugas
184ffbb976
(svn r12758) -Fix(r4712, r12745): Use a bool when it's about boolean evaluation. a TileIndex is hardly a bool, of course of course. Thanks for good old MSVC warnings.
2008-04-18 01:35:17 +00:00
rubidium
b1d1a4ac66
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
2008-04-17 21:21:01 +00:00
smatz
5050ba84fb
(svn r12756) -Cleanup: variable scope and coding style in station*
2008-04-17 20:03:28 +00:00
glx
a2884f0a3c
(svn r12755) -Fix (r12706): aborting map generation was not properly handled
2008-04-17 19:53:13 +00:00
rubidium
02cdf01507
(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
2008-04-17 19:10:30 +00:00
smatz
059e94e355
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
2008-04-17 18:24:45 +00:00
rubidium
e098b50379
(svn r12752) -Codechange: replace some magic constants in player_gui.cpp. Patch by Yexo.
2008-04-17 18:12:53 +00:00
rubidium
00f0bf98ee
(svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory.
2008-04-17 11:47:22 +00:00
rubidium
5796fb3b34
(svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly.
2008-04-17 11:25:12 +00:00
rubidium
c31287206d
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
2008-04-17 09:42:44 +00:00
peter1138
0cd14f9ebb
(svn r12747) -Codechange: Add varaction retrieval of station animation frame
2008-04-17 06:53:52 +00:00
peter1138
b2095f37ac
(svn r12746) -Codechange: Add map storage for station animation frame
2008-04-17 06:52:56 +00:00
smatz
9488db56d4
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
2008-04-17 00:44:20 +00:00
rubidium
1367c90161
(svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this.
2008-04-16 21:06:21 +00:00
rubidium
4703eb2036
(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.
2008-04-16 20:39:35 +00:00
rubidium
5254131d9c
(svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw.
2008-04-16 20:01:04 +00:00
smatz
1f22f47b3b
(svn r12738) -Fix (r12736): some sprites could be left unsorted
2008-04-16 19:36:30 +00:00
peter1138
7957bdde13
(svn r12737) -Codechange: Replace vector with a cut down class to allocate space as necessary. This avoids copying data around for vector's push_back() function.
2008-04-16 19:01:09 +00:00
rubidium
208dd15c91
(svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp.
2008-04-16 18:28:05 +00:00
rubidium
6ab158f9d9
(svn r12735) -Codechange: use a vector instead of allocating memory in a byte array for TileSpriteToDraw.
2008-04-16 14:18:15 +00:00
rubidium
0c9120a882
(svn r12734) -Codechange: use a vector instead of allocating memory in a big byte array for StringSpriteToDraw.
2008-04-16 14:15:00 +00:00
belugas
8a669f04cd
(svn r12733) -Codechange: Merge two more Widgets arrays (town views ) into one.
2008-04-16 03:05:56 +00:00
smatz
dccf5b4509
(svn r12731) -Fix (r12726): copying a 16bit array into 32bit wouldn't work
2008-04-15 23:07:06 +00:00
rubidium
9d3a08523a
(svn r12726) -Fix [FS#1877]: overflow causing strange building behaviour in towns.
2008-04-15 22:27:28 +00:00
frosch
9346e067f3
(svn r12717) -Fix (r11107): Check the TILE_NOT_SLOPED flag of the _north_ tile of multi-tile houses to decide if autoslope is allowed.
2008-04-15 13:10:01 +00:00
frosch
7ba1d9076f
(svn r12716) -Fix: Do not compare StationIDs with DepotIDs or WaypointIDs.
2008-04-15 12:25:35 +00:00
rubidium
fd38b3f850
(svn r12714) -Fix [FS#1904]: do not move windows below the toolbar on resizes unless they would go behind the toolbar.
2008-04-14 23:26:31 +00:00
rubidium
2152e1c420
(svn r12713) -Fix: misleading comment. Patch by Yexo.
2008-04-14 21:49:13 +00:00
glx
3a84a74f4d
(svn r12711) -Codechange: remove unneeded loops
2008-04-14 20:48:17 +00:00
rubidium
172237e326
(svn r12709) -Feature: show the last joined server. Heavily based on a patch by Yexo.
2008-04-14 20:31:21 +00:00
glx
62c178f326
(svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista
2008-04-14 20:14:32 +00:00
rubidium
be7e36e0b9
(svn r12707) -Fix: do not crash very hard on unrecognised savegames, just go back to the intro menu instead.
2008-04-14 20:00:28 +00:00
rubidium
12188e7a5d
(svn r12706) -Merge: the thread rewrite from NoAI. The rewrite makes the threading we have better extendable.
2008-04-14 19:54:33 +00:00
belugas
a8008db23d
(svn r12705) -Codechange: enumification of some more widgets
2008-04-14 17:50:15 +00:00
belugas
8418bc5050
(svn r12704) -Codechange: code style cleanup, mostly switch case alignment
2008-04-14 17:06:36 +00:00
rubidium
fc1f32a693
(svn r12701) -Codechange: do not explicitly number a widget enum because that causes a big diff when adding something.
2008-04-14 13:23:16 +00:00
maedhros
c0fbfd03ac
(svn r12700) -Cleanup (r12699): Remove an unused string.
2008-04-14 12:42:01 +00:00
maedhros
1f59821020
(svn r12699) -Codechange: Unify the order drawing code for orders and timetables.
2008-04-14 12:40:09 +00:00
rubidium
14b307a621
(svn r12698) -Codechange: skip orders to stations that do not have a train part anymore, just like is done for road vehicles and ships.
2008-04-14 07:08:43 +00:00
rubidium
304cb0e1e2
(svn r12697) -Codechange: give signs_gui.cpp a touch of coding style.
2008-04-13 22:25:18 +00:00
rubidium
4f0bfa91ab
(svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems.
2008-04-13 19:46:26 +00:00
rubidium
9a73b698d4
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
2008-04-13 19:25:14 +00:00
rubidium
04138ddffc
(svn r12694) -Fix: do not call the mouse over callback on already deleted windows.
2008-04-13 19:06:30 +00:00
rubidium
2310557716
(svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert.
2008-04-13 19:01:26 +00:00
rubidium
87ddcb0d5a
(svn r12692) -Codechange: swap to functions to remove a function declaration.
2008-04-13 18:59:32 +00:00
glx
668e218600
(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
2008-04-13 17:59:43 +00:00
smatz
a5c456e75e
(svn r12690) -Cleanup: remove unused table from tgp.cpp
2008-04-13 17:27:36 +00:00
rubidium
e8ee93b593
(svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles.
2008-04-13 16:54:19 +00:00
rubidium
145ea54474
(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
2008-04-13 16:50:55 +00:00
rubidium
af3723e217
(svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading.
2008-04-13 16:48:28 +00:00
glx
5e2a5953a4
(svn r12686) -Fix: MSVC signed/unsigned warning
2008-04-13 15:07:36 +00:00
smatz
305dc1001b
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
2008-04-13 14:19:08 +00:00
rubidium
e1ab9c2eea
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
2008-04-13 11:35:57 +00:00
rubidium
d7bae069e1
(svn r12683) -Fix [FS#1906]: in some cases a news messages would not be shown.
2008-04-13 11:15:48 +00:00
rubidium
372830b731
(svn r12682) -Fix [FS#1920]: removing road pieces from a town gave you twice the intended penalty.
2008-04-13 10:32:29 +00:00
rubidium
9349767e1d
(svn r12681) -Fix [FS#1921]: aircraft stopping mid-air.
2008-04-13 10:26:39 +00:00
belugas
604c5bbfb7
(svn r12679) -Codechange : a little bit of widget enumification
2008-04-13 01:51:12 +00:00
rubidium
ed43ffe435
(svn r12678) -Fix [FS#1918]: when a road vehicle has a tram only stop multiple times in a row in it's orders, only the first one would be skipped.
2008-04-12 22:40:56 +00:00
peter1138
a3e2d8f577
(svn r12676) -Codechange: Reinstate colour selection buses, absent since r6455.
2008-04-12 22:19:34 +00:00
peter1138
447a31b702
(svn r12675) -Codechange: Add support for custom drawing of drop down list items.
2008-04-12 22:12:27 +00:00
peter1138
a45c1d45e5
(svn r12674) -Fix [FS#1902]: Colour remaps on station sprites only worked for company colours.
2008-04-12 22:11:21 +00:00
peter1138
711909fa0c
(svn r12672) -Codechange: Add support for variably-sized drop down list items.
2008-04-12 20:32:18 +00:00
smatz
f44aa5e088
(svn r12671) -Fix (r12644): orders window of competitors' vehicles was missing a resizebox
2008-04-12 20:15:57 +00:00
rubidium
ed250cc7b5
(svn r12670) -Add: unconditional/always order 'jump/skip' variable.
2008-04-12 13:07:25 +00:00
rubidium
8c89250f58
(svn r12669) -Fix (r12667): crash when a vehicle has never been to a station and the load percentage conditional variable is evaluated.
2008-04-12 12:51:16 +00:00
rubidium
8410bff078
(svn r12668) -Fix (12667): swapping of variables went wrong.
2008-04-12 12:19:53 +00:00
rubidium
ac94b6384b
(svn r12667) -Feature: conditional 'skip/jump' orders.
2008-04-12 11:58:19 +00:00
rubidium
04b9600920
(svn r12666) -Fix: the time table GUI did not show some data in the correct manner.
2008-04-12 11:15:25 +00:00
rubidium
e9014c99b3
(svn r12665) -Codechange: make the internal speed <-> display speed conversions available to a bigger part of the code.
2008-04-12 10:00:52 +00:00
rubidium
8226c92c8a
(svn r12664) -Codechange: do not force the 'color' pointer to be non-NULL when trying to get the load percentage.
2008-04-12 09:59:58 +00:00
rubidium
00d23c57b3
(svn r12663) -Codechange: move the definition from 'order_d' to a more appropriate place and do not misuse it for the time table GUI.
2008-04-11 21:19:03 +00:00
belugas
02a907f306
(svn r12662) -Codechange: Comment-code style application
2008-04-11 18:00:51 +00:00
rubidium
cebe2001ba
(svn r12661) -Add: ability to send a vehicle (using default orders) to the nearest depot.
2008-04-11 15:58:46 +00:00
rubidium
3919c30c2d
(svn r12660) -Codechange: make the creation of depot order strings a little more modular (instead of causing a string explosion).
2008-04-11 14:27:18 +00:00
rubidium
00051b2721
(svn r12659) -Cleanup: some style cleanups in vehicle.cpp.
2008-04-11 13:19:44 +00:00
rubidium
570519d79b
(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.
2008-04-11 08:40:10 +00:00
rubidium
62bdc381e7
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
2008-04-11 08:14:43 +00:00
rubidium
3a0cb23548
(svn r12656) -Fix: tooltips for some order buttons are outdated/incorrect.
2008-04-10 22:18:33 +00:00
rubidium
d781fc7cc9
(svn r12655) -Change: show the current state in the drop down 'buttons'.
2008-04-10 22:17:06 +00:00
rubidium
5d6ef7bc6e
(svn r12654) -Codechange: remove some unneeded right click handling due to the splitting of the load/refit button.
2008-04-10 22:07:24 +00:00
rubidium
31f982f1f9
(svn r12653) -Codechange: disable load/unload dropdowns when there is a 'via' non-stop order to emphasize that loading/unloading will not be done.
2008-04-10 17:52:48 +00:00
rubidium
ba0a5814c2
(svn r12652) -Codechange: rework the order GUI a little more to make it a little more clear that 'transfer' is just an unload type.
2008-04-10 17:23:51 +00:00
peter1138
63116691a9
(svn r12651) -Fix (r12644) [FS#1915]: Dropdown widget width should be one pixel less than window width, not one more.
2008-04-10 11:59:18 +00:00
rubidium
6379c30d26
(svn r12650) -Feature: ability to force a vehicle to not load at a station.
...
-Feature: ability to force a vehicle to not unload at a station.
2008-04-10 10:18:03 +00:00
rubidium
3974bf2199
(svn r12649) -Fix: refit orders not being shown.
...
-Fix: unusable non-stop orders shown for waypoints and depots.
2008-04-10 10:02:15 +00:00
rubidium
5992dad01f
(svn r12648) -Feature: allow four different non-stop types in a single game instead of two. The "TTDP compatible order" setting now only sets the default behaviour of new trains.
...
-Feature: allow three different load type in a single game instead of two. One can choose full load all and full load any instead of full load being governed by the "full load any" patch setting.
2008-04-10 08:30:15 +00:00
belugas
fa1359ebc6
(svn r12647) -Codechange: Ooops... Too fast on the job... forgot to indent 3 lines
2008-04-10 02:23:38 +00:00
belugas
ccd49d81a8
(svn r12646) -Codechange: another run of code-style cleanup
2008-04-10 02:14:14 +00:00
belugas
f484b2e1c7
(svn r12645) -Codechange: a bit of code-style cleanup
2008-04-10 02:10:26 +00:00
rubidium
2ac6af4e48
(svn r12644) -Codechange: rework the order gui a little to prepare it for some future changes.
2008-04-09 23:00:12 +00:00
rubidium
c9e9e6005b
(svn r12643) -Codechange: be more explicit about the orders a vehicle has (non stop and full load are ambiguous and depend on some patch settings).
2008-04-09 22:01:23 +00:00
smatz
e075ade119
(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
2008-04-09 21:33:36 +00:00
rubidium
70f3413a36
(svn r12641) -Codechange: do not use the same button for two completely distinct tasks, just make an extra button for it and hide them when not needed.
2008-04-09 19:52:33 +00:00
rubidium
82155367f6
(svn r12640) -Codechange: let GetLoadType make a difference between full load and full load any based on the patch setting instead of using the patch setting directly.
2008-04-09 18:26:19 +00:00
rubidium
d178345947
(svn r12639) -Fix: order window was not marked dirty on changed orders.
2008-04-09 17:48:22 +00:00
rubidium
55f0d01235
(svn r12638) -Codechange: give order_gui.cpp a touch of coding style.
2008-04-09 16:16:04 +00:00
rubidium
ab7b05da50
(svn r12637) -Fix [FS#1913]: possible NULL pointer dereference when reading some NewGRF data.
2008-04-09 14:05:50 +00:00
rubidium
c41624bb94
(svn r12636) -Codechange: make CmdModifyOrder a little more flexible and remove 'hack' that used the full load flag to set the service if needed flag.
2008-04-09 12:46:43 +00:00
belugas
caa3b659b0
(svn r12635) -Codechange: a bit of a code-style cleanup
2008-04-09 02:16:04 +00:00
belugas
25e5e5b1a9
(svn r12634) -Feature: Financial and Player Selection Face windows are now remembering their position when toggling sizes
2008-04-09 02:02:39 +00:00
rubidium
d8f88f06d4
(svn r12633) -Fix: could not make a (go-to) depot order.
2008-04-08 22:41:14 +00:00
smatz
627322b9f7
(svn r12632) -Fix (r12547): with invisible catenary, trams were be drawn over a bridge
2008-04-08 21:28:47 +00:00
rubidium
3abf0eea7c
(svn r12631) -Fix [FS#1911]: sometimes aircraft couldn't find their way to their depot.
2008-04-08 18:53:25 +00:00
maedhros
85e5053b68
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
2008-04-08 16:15:31 +00:00
frosch
96700d5605
(svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
...
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
2008-04-08 15:48:32 +00:00
rubidium
71a2dd21fd
(svn r12628) -Fix: TTDP compatible non-stop wasn't handled properly.
2008-04-08 13:32:44 +00:00
peter1138
310170364f
(svn r12624) -Codechange: Make drawing of catenary an attribute of rail types, instead of deciding by the rail type directly.
2008-04-08 07:19:29 +00:00
rubidium
b0ca38e20a
(svn r12622) -Fix: infinite loop in case your compiler decides that enums are unsigned by default. Patch by Dominik.
2008-04-07 22:15:31 +00:00
rubidium
d31dee2717
(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
2008-04-07 21:02:27 +00:00
rubidium
ee02dd7dad
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
2008-04-07 20:28:58 +00:00
rubidium
f04ecd2e4a
(svn r12618) -Codechange: as load and unload type are now split, some case statements got ugly.
2008-04-07 20:18:51 +00:00
rubidium
d74c6ffb62
(svn r12617) -Codechange: add type safety to the Order's load and unload types.
2008-04-07 20:03:46 +00:00
smatz
42a66ef990
(svn r12616) -Codechange: r12591 didn't work as expected for NDS, move one function back to cpp
2008-04-07 20:02:36 +00:00
rubidium
f1cd7ef5ee
(svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness.
2008-04-07 19:18:56 +00:00
belugas
45165fe075
(svn r12609) -Codechange: Remove wrong comments and give more comments on the drawing part of subsidies
2008-04-07 17:02:39 +00:00
rubidium
77dca1f023
(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.
2008-04-07 15:04:00 +00:00
smatz
ac389e16d2
(svn r12605) -Cleanup: variable scope and coding style in train*
2008-04-07 12:36:50 +00:00
rubidium
f46ae97d8e
(svn r12601) -Fix (r12587): do not reset the index of orders (causes loading ancient savegames to loop infinitively.
2008-04-07 11:45:53 +00:00
rubidium
c57a1d74c3
(svn r12600) -Codechange: make GetNonStopType return a more augmented type; not is there a non-stop order but the kind of non-stop order, so one doesn't need to check _patches.new_nonstop type everywhere.
2008-04-07 08:59:04 +00:00
smatz
6af1fb2bdd
(svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining
2008-04-06 23:49:45 +00:00
rubidium
1bd5a29df5
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
2008-04-06 22:32:20 +00:00
rubidium
d90a041230
(svn r12595) -Codechange: hide Order's flags in the last few cases.
2008-04-06 21:54:22 +00:00
smatz
c0a5fa9eea
(svn r12594) -Codechange: move large functions from driver.h to driver.cpp to reduce binary size and compile time
2008-04-06 16:49:02 +00:00
rubidium
fb1c4eccd8
(svn r12593) -Codechange: hide Order's flags in most of the code.
2008-04-06 15:09:45 +00:00
rubidium
5d8e3adccc
(svn r12592) -Fix (r12580): aircraft's go-to-depot handling is a mess, which assumes destination to be a station even when it did not set a destination yet.
2008-04-06 14:50:47 +00:00
smatz
aaa1b0744a
(svn r12591) -Codechange: move CommandCost accessors to header file, 8kB of binary size saved
2008-04-06 14:50:37 +00:00
rubidium
d6623cf654
(svn r12588) -Codechange: do not access the destination of an order directly.
2008-04-06 07:48:51 +00:00
rubidium
8cd1795fe3
(svn r12587) -Codechange: unduplicate some code in the Unpack*Order functions and move the 'normal' case Pack/Unpack to Order.
2008-04-06 07:22:26 +00:00
rubidium
e68b2088ce
(svn r12586) -Codechange: do not access an order's refit variables directly.
2008-04-06 07:07:21 +00:00
rubidium
630d5ad766
(svn r12585) -Fix (r12584): assumption that assertions were enabled during compilation/testing was flawed.
2008-04-05 23:46:01 +00:00
rubidium
5b47f81b0f
(svn r12584) -Codechange: do not access the order type directly.
2008-04-05 23:36:54 +00:00
rubidium
56e63a6044
(svn r12583) -Codechange: make AssignOrder a class function of order.
2008-04-05 21:45:05 +00:00
rubidium
669b4bc609
(svn r12582) -Codechange: move some (needlessly) static inlined functions from order_base.h to order_cmd.cpp.
2008-04-05 20:57:01 +00:00
rubidium
84211a8fea
(svn r12581) -Fix (r12580): trains would not stop correctly on intermediate stations when non-stop was not enabled.
2008-04-05 19:51:51 +00:00
rubidium
aef20ec54d
(svn r12580) -Codechange: merge some logical related to non-stop orders.
2008-04-05 15:30:15 +00:00
smatz
d977461d10
(svn r12579) -Change: reset cursor when the Plant trees GUI is opened
2008-04-05 12:30:48 +00:00
rubidium
5eb5889954
(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.
2008-04-05 12:01:34 +00:00
smatz
65fedf0cfb
(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
2008-04-05 11:35:32 +00:00
smatz
b2e4adc2b8
(svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate
2008-04-05 11:27:50 +00:00
rubidium
bdd64495cd
(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.
2008-04-05 10:55:50 +00:00
rubidium
e9661fb420
(svn r12574) -Fix: binding to a specific IP could cause OpenTTD to not register properly with the masterserver if one has multiple external interfaces.
2008-04-04 21:09:28 +00:00
smatz
fb379b522d
(svn r12573) -Codechange: use defined constants instead of numbers in math_func.hpp
2008-04-04 20:34:09 +00:00
smatz
a7d885e4c6
(svn r12572) -Fix (r12192): min() has 32bit arguments, clamping of 64bit values didn't work
2008-04-04 20:03:49 +00:00
rubidium
c5814a72ce
(svn r12571) -Fix: MorphOS misses INT16_MAX/INT16_MIN.
2008-04-04 19:10:45 +00:00
smatz
d1c0e57901
(svn r12570) -Cleanup: further variable scope in road_gui.cpp
2008-04-04 18:55:24 +00:00
smatz
b78e8f82e1
(svn r12569) -Cleanup: variable scope and coding style in road*.cpp
2008-04-04 18:41:16 +00:00
smatz
e5d4ee30d3
(svn r12565) -Cleanup: variable scope in misc\*.cpp
2008-04-04 17:27:38 +00:00
smatz
8a2762978c
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
2008-04-04 16:52:29 +00:00
smatz
c49f813e7f
(svn r12563) -Cleanup: variable scope and a bit of coding style in landscape.cpp
2008-04-04 16:32:27 +00:00
smatz
0aeefe164d
(svn r12562) -Cleanup: variable scope in terraform_cmd.cpp
2008-04-04 15:48:15 +00:00
smatz
99b2536351
(svn r12561) -Fix: do not affect town rating change by the order in which we examine stations
2008-04-04 15:10:54 +00:00
smatz
42ed287506
(svn r12560) -Cleanup: town_cmd.cpp and header files - variable scope and a bit of coding style
2008-04-04 14:53:06 +00:00
belugas
2675db8d70
(svn r12558) -Feature: subsidy window can now be resized.
2008-04-04 02:24:44 +00:00
smatz
110584808d
(svn r12557) -Cleanup: use MAX_PATH at two more places
2008-04-04 00:06:51 +00:00
smatz
c745ca21a3
(svn r12556) -Fix (r6001): remove fences with fields when loading old savegames, looks better
2008-04-03 23:52:43 +00:00
smatz
b9b99d3150
(svn r12553) -Fix (r11547): redraw the signal GUI when the signal drag density changes in the patch settings and vice versa
2008-04-03 22:31:57 +00:00
smatz
ff7e8fb2dd
(svn r12550) -Change: the signal GUI is now persistent - has the same data when it is reopened
2008-04-03 21:54:31 +00:00
smatz
277df6d622
(svn r12549) -Fix [FS#1900](r11547): respect type of selected signal when building more signals using the GUI
...
-Fix: do not check patch settings but check if the Signal GUI window is open instead
2008-04-03 21:01:01 +00:00
smatz
86c72ab927
(svn r12548) -Cleanup: remove strings removed in r12547 from all language files
2008-04-03 20:00:07 +00:00
smatz
febc5150c9
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
2008-04-03 19:55:40 +00:00
glx
83f9e141e0
(svn r12546) -Fix: completely remove cases from Brazilian Portuguese translation
2008-04-03 16:16:52 +00:00
frosch
87e5d85d6e
(svn r12545) -Cleanup: Replace some tables of magic values with already existing functions.
2008-04-03 14:21:17 +00:00
miham
f219eb5653
(svn r12543) -Update: WebTranslator2 update to 2008-04-03 08:42:55
...
brazilian_portuguese - 18 fixed by fukumori (18)
bulgarian - 17 fixed by thetitan (17)
catalan - 11 fixed by arnaullv (11)
dutch - 19 fixed by habell (19)
french - 11 fixed by glx (11)
hungarian - 5 fixed by miham (5)
icelandic - 24 fixed, 2 changed by scrooge (26)
italian - 11 fixed, 1 changed by lorenzodv (12)
korean - 17 fixed, 3 changed by leejaeuk5 (20)
slovak - 18 fixed by lengyel (18)
slovenian - 19 fixed by Necrolyte (19)
swedish - 33 fixed by daishan (33)
turkish - 18 fixed by jnmbk (18)
ukrainian - 17 fixed by mad (17)
2008-04-03 07:20:32 +00:00
frosch
fa68e5f770
(svn r12541) -Codechange: Declare Slope enum as bit set, and remove some (then) unneeded casts.
2008-04-02 14:13:15 +00:00
frosch
5e5e074a5d
(svn r12540) -Codechange: Enumify some values in original pathfinder and remove an unused variable.
2008-04-02 13:57:25 +00:00
smatz
b0ee311780
(svn r12537) -Cleanup: comment newgrf_config.h a bit
2008-04-02 00:13:44 +00:00
rubidium
8e83627991
(svn r12536) -Codechange: some stack allocations were too large for NDS, so use the SmallStackSafeStackAlloc wrapper. Allocate on the stack by default and on the heap for NDS (or other devices that have a very small stack).
2008-04-01 21:12:51 +00:00
belugas
81b6125ac2
(svn r12535) -Fix: A little typo and 4 omissions on bridge sprites.
2008-04-01 17:21:24 +00:00
skidd13
584bbfd7e7
(svn r12534) -Feature: Add a new type of town road layouts - random for each town
2008-04-01 16:27:01 +00:00
frosch
4329223476
(svn r12533) -Cleanup: Remove some wizardry from default ai by using existings enums and helper functions.
2008-04-01 15:03:59 +00:00
frosch
549d05dc4d
(svn r12532) -Cleanup: Replace two tables of magic values with already existing functions.
2008-04-01 14:47:57 +00:00
frosch
15a9fba867
(svn r12531) -Codechange: Rename some variables for consistency.
2008-04-01 14:03:20 +00:00
skidd13
9d914a803c
(svn r12516) -Revert r2583: Removed mersenne PRNG cause it is not used and won't be used in the future
2008-03-31 16:07:50 +00:00
skidd13
4cc6140619
(svn r12513) -Codechange: rename OriginalTileRandomiser something more descriptive
2008-03-31 15:10:24 +00:00
rubidium
a0895d57fa
(svn r12501) -Codechange: split signs.h.
2008-03-31 07:25:49 +00:00
rubidium
b1e1c13420
(svn r12499) -Codechange: some coding style tweaks for network_internal.h.
2008-03-31 07:11:18 +00:00
rubidium
7c759731dc
(svn r12498) -Codechange: bring a little 'order' to openttd.cpp's includes and do not 'define' VARDEF for files that do not have them anymore.
2008-03-31 07:03:35 +00:00
rubidium
6f15d34fe5
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
2008-03-31 06:42:26 +00:00
rubidium
ef2be7d0fc
(svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-03-31 00:17:39 +00:00
rubidium
2edd403656
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
rubidium
4a1035ab95
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
2008-03-30 23:24:18 +00:00
rubidium
9598b1ecaf
(svn r12486) -Fix: the copyright date wasn't set correctly in ottdres.rc.
2008-03-30 17:37:50 +00:00
bjarni
a81a572434
(svn r12482) -Fix: [build train] we don't need to have a depot in order to just check the price of a rail vehicle so don't check for compatible rails on the tile either
...
also wagons will only need tracks they can drive on in order to be build so there is no reason to check for power in the depot
2008-03-28 22:59:43 +00:00
peter1138
f8294b1386
(svn r12479) -Codechange [FS#1723]: Simplify the method used to resize the industry view window. The window is now shown the correct size so the resize button is also removed.
2008-03-28 19:37:12 +00:00
rubidium
d51347a04d
(svn r12477) -Fix [FS#1883]: timetable times for aircraft were always doubled.
2008-03-28 18:43:01 +00:00
rubidium
93d59fe448
(svn r12476) -Codechange: split type engine related types from engine.h (and openttd.h) to engine_type.h.
2008-03-28 18:00:38 +00:00
rubidium
d97c16ee8b
(svn r12475) -Codechange: cleanup coding style in news_gui.cpp.
2008-03-28 16:45:20 +00:00
rubidium
f4d48f0e5b
(svn r12474) -Codechange: split type related stuff from waypoints from waypoint.h (and openttd.h) to waypoint_type.h.
2008-03-28 16:41:12 +00:00
rubidium
cdd5f90e64
(svn r12473) -Codechange: move EngineList to a more logical location.
2008-03-28 16:39:19 +00:00
rubidium
ff3a401404
(svn r12472) -Codechange: remove unneeded declaration of ViewPort and DrawPixelInfo.
2008-03-28 16:38:18 +00:00
rubidium
0f552a88a7
(svn r12471) -Codechange: move SignID to a more logical location.
2008-03-28 16:36:59 +00:00
rubidium
4c63dd074e
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
2008-03-28 16:36:32 +00:00
rubidium
878489e38d
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
2008-03-28 16:34:50 +00:00
rubidium
58e6e75320
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
2008-03-28 16:33:28 +00:00
rubidium
7f139373aa
(svn r12467) -Codechange: move DepotID to a more logical location.
2008-03-28 16:32:27 +00:00
rubidium
450d234745
(svn r12466) -Codechange: move DestinationID to a more logical location.
2008-03-28 16:31:26 +00:00
rubidium
cb96caa3d2
(svn r12464) -Change: remove an include that doesn't define anything anyway.
2008-03-28 11:09:14 +00:00
rubidium
b4dafb3036
(svn r12460) -Change: rename src/namegen.h to src/namegen_func.h so MSVC can have both files in it's treelist.
2008-03-28 09:15:08 +00:00
rubidium
eeabab4555
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
2008-03-28 08:53:36 +00:00
rubidium
d8cfb4f064
(svn r12458) -Codechange: split acquiring the sprite ID for cargos from the actual drawing of them.
2008-03-28 04:57:32 +00:00
belugas
79f033c78f
(svn r12457) -Codechange: Move signal enums on their own header.
2008-03-28 03:23:49 +00:00
glx
64797f06eb
(svn r12456) -Update: apply english.txt changes from r12455 to other languages
2008-03-28 02:47:54 +00:00
glx
226e48cf83
(svn r12455) -Codechange: Implement NewGRF callback 37 (cargo sub-type display for industries)
2008-03-28 02:30:10 +00:00
glx
d4f7f5e5fe
(svn r12454) -Fix (r12452): incorrect calculation for 'first vehicle in this chain of vehicles with the same ID' (thx DaleStan)
...
-Fix (r12452): wrong loading of random action 2 type 84 for non vehicle (though it shouldn't happen, but who knows ;))
2008-03-28 02:10:25 +00:00
peter1138
b8ac06b462
(svn r12453) -Fix [FS#1880]: Remove broken endian-dependent code and unnecessary rgb to bgr swapping.
2008-03-28 01:22:47 +00:00
glx
bbdb831301
(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.
2008-03-27 21:36:16 +00:00
peter1138
5ddb78af9f
(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
2008-03-27 19:02:18 +00:00
peter1138
7df7a3069c
(svn r12450) -Codechange: Use a pointer instead of several array dereferences.
2008-03-27 17:51:20 +00:00
belugas
3343586c84
(svn r12449) -Feature[newGRF]: Add support for var A2/22 for action 7/9/D: Diificulty level
2008-03-27 17:06:35 +00:00
rubidium
692ac96625
(svn r12447) -Add: company colours to hangars and road depots; train depots already have them.
2008-03-27 15:59:56 +00:00
peter1138
9676d90a95
(svn r12446) -Feature: Add +/- toggle buttons to station cargo waiting list to show/hide the detailed transferred cargo information.
2008-03-27 15:51:11 +00:00
peter1138
ffe07b9292
(svn r12445) -Fix: Add missing compile asserts for window data structs
2008-03-27 15:48:54 +00:00
belugas
3256b24dd6
(svn r12444) -Fix: A little typo
2008-03-27 15:46:58 +00:00
rubidium
63ab877c27
(svn r12443) -Add: OpenTTDs version to openttd.cfg, just so we do not need to keep to ask people for their version number because it's likely they give you the wrong answer anyway.
2008-03-27 15:29:42 +00:00
skidd13
2405ffd855
(svn r12442) -Feature: Allow build leveled roads on slopes for the old ai
2008-03-27 14:46:27 +00:00
rubidium
e9dad7637e
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
2008-03-27 14:34:29 +00:00
skidd13
b490a21e50
(svn r12440) -Fix [FS#1694]: Make the road building and road removing conditions more union
...
-Feature: Allow to build/remove more road-piece combinations directly
2008-03-27 14:26:31 +00:00
rubidium
3d03eab9bc
(svn r12439) -Fix [FS#1871]: do not 'disable' the drawing of autorail overlays when the tile is 'error'-marked (red pulsating selection). Patch by Icosikai.
2008-03-27 14:10:09 +00:00
rubidium
67c1e00aea
(svn r12438) -Fix-ish: typo spotted by Biblo.
2008-03-27 13:59:35 +00:00
peter1138
f9e7b70f91
(svn r12436) -Cleanup: minor coding style
2008-03-26 19:18:30 +00:00
rubidium
989f967509
(svn r12435) -Fix: do not remove the case from the Brazilian Portuguese translation while it is still in use.
2008-03-26 16:46:33 +00:00
rubidium
3d8bd6245e
(svn r12428) -Fix [FS#1878]: loading from the config file could fail even when the data is correct. Patch by Dominik.
2008-03-26 11:50:53 +00:00
rubidium
f241b0acd4
(svn r12426) -Cleanup: sprinkle some coding style over a few files.
2008-03-26 10:38:31 +00:00
rubidium
327e870962
(svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
2008-03-26 10:08:17 +00:00
bjarni
06c0e5df5a
(svn r12421) -Feature: [autoreplace] the autoreplace button in train depots will now also replace wagons even if they aren't connected to a locomotive
...
fixed estimated cost in CmdDepotMassAutoReplace() (will still not estimate wagon removal profits)
Made it possible to command CmdDepotMassAutoReplace() to either replace everything or nothing (the button will still happily replace just some of the vehicles if cash premits)
2008-03-25 21:58:13 +00:00
maedhros
97fb7fb8d9
(svn r12420) -Cleanup: Fix the indentation, improve a variable name, and add a NOT_REACHED to DeterminePluralForm.
2008-03-25 19:56:16 +00:00
skidd13
82eebc20c0
(svn r12419) -Cleanup: of the internal road-piece building and removing.
2008-03-25 18:59:25 +00:00
maedhros
2023f59541
(svn r12417) -Fix: Add a new plural rule for Icelandic.
2008-03-25 17:39:02 +00:00
peter1138
6184676ec7
(svn r12410) -Codechange: abstract out the test for catenary on electric rails
2008-03-25 12:10:13 +00:00
miham
237524f960
(svn r12408) -Update: WebTranslator2 update to 2008-03-25 09:44:24
...
brazilian_portuguese - 1 fixed by fukumori (1)
bulgarian - 1 fixed by thetitan (1)
catalan - 8 fixed by arnaullv (8)
czech - 1 fixed by Hadez (1)
french - 8 fixed by glx (8)
hungarian - 10 fixed by miham (10)
icelandic - 9 fixed, 1 changed by scrooge (10)
italian - 8 fixed by lorenzodv (8)
korean - 1 fixed by darkttd (1)
russian - 8 fixed by Smoky555 (8)
ukrainian - 1 fixed by mad (1)
2008-03-25 08:45:21 +00:00
glx
fed6a25799
(svn r12407) -Add [FS#1866]: more language flags for servers
2008-03-24 20:30:08 +00:00
rubidium
4a16a8b948
(svn r12405) -Codechange: some coding style and 'untodoifying' some comments that were certainly not todos.
2008-03-24 06:52:52 +00:00
rubidium
67190b2906
(svn r12404) -Codechange: rename the string buffer used for network GUIs to something more unique than what it is called now.
2008-03-24 06:38:20 +00:00
rubidium
516282fe3c
(svn r12403) -Codechange: unmisuse a variable in the chat window and make the code a little cleaner.
2008-03-24 06:32:53 +00:00
rubidium
37d961c8e7
(svn r12402) -Fix: some toolbars didn't seem to show anymore.
2008-03-24 05:59:42 +00:00
glx
3f3598bd76
(svn r12401) -Fix (r9754): when loading TTD savegame some data were lost (profits, ...) due to a 'reallocation' for vehicle type conversion. The conversion is now done before loading the vehicle chunk.
2008-03-24 00:52:28 +00:00
rubidium
83fec1b297
(svn r12399) -Fix: some old DOS savegame didn't load properly due to 'garbage' that was sprinkled in some places.
2008-03-23 21:31:43 +00:00
rubidium
65c7ef9629
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
2008-03-23 07:35:29 +00:00
rubidium
fb755e6e87
(svn r12397) -Codechange [FS#1856]: enumify widget number for time tables. Patch by Phil Sophus.
2008-03-23 06:56:33 +00:00
rubidium
c7d4c0e269
(svn r12396) -Codechange: change a few things to reflect that we aren't aiming for 0.6 anymore in trunk.
2008-03-22 19:54:50 +00:00
rubidium
4094e9b495
(svn r12393) -Fix [FS#1872]: Vehicle lists related to stations not closed when the station is deleted.
2008-03-22 16:23:47 +00:00
maedhros
389d89ea49
(svn r12392) -Fix (r12391): Remove yapf/follow_track.cpp again.
2008-03-22 11:29:03 +00:00
maedhros
292cfc56f6
(svn r12391) -Feature: Show whether a town is a "city" in the town description title bar.
2008-03-22 11:27:46 +00:00
rubidium
f0538b4b62
(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.
2008-03-22 10:56:08 +00:00
rubidium
5d747802f2
(svn r12389) -Codechange: remove unneeded code from the Cheat window handling and bring it in line with the coding guidelines.
2008-03-22 10:50:50 +00:00
maedhros
9dffdaca0d
(svn r12388) -Fix (r12352): Callback 14 (station sprite layout) is a 15-bit callback.
2008-03-21 11:10:36 +00:00
miham
55dcd4f94d
(svn r12387) -Update: WebTranslator2 update to 2008-03-21 00:20:05
...
german - 1 fixed by moewe2 (1)
icelandic - 346 fixed by scrooge (346)
korean - 2 fixed by darkttd (2)
portuguese - 6 fixed by nars (6)
russian - 15 fixed by Smoky555 (15)
slovenian - 6 fixed by Necrolyte (6)
2008-03-20 23:20:46 +00:00
smatz
ac4ec8c2d2
(svn r12386) -Fix [FS#1841](r2428): train could break apart when reversed while partially in a depot
2008-03-19 20:50:19 +00:00
peter1138
ab7542e912
(svn r12385) -Fix [FS#ln]: Non-breaking spaces should not be broken.
2008-03-19 20:46:56 +00:00
smatz
031c9da01c
(svn r12384) -Fix (r2428): do not disconnect train when reversing, it may 'think' it is whole in a depot
2008-03-19 20:42:05 +00:00
peter1138
d27ab363a7
(svn r12383) -Fix [FS#1860]: Check return of AfterLoadGame for success or failure when loading TTD games.
2008-03-18 23:01:33 +00:00
glx
faa1483ee6
(svn r12382) -Fix [FS#1864]: use 'items' unit for batteries, fizzy drinks, toys and bubbles in total cargo tab
2008-03-18 16:57:05 +00:00
skidd13
a887b79f90
(svn r12381) -Fix [FS1835] [FS1535] (r11855): The number of houses wasn't computed right. A few other things regaring the updating had to be changed. Big thanks for support to frosch123 and SmatZ, to name just a few. (Inspired by a patch of bilbo)
2008-03-18 12:28:21 +00:00
glx
985dbaa093
(svn r12380) -Fix: update train acceleration and max speed after setting cached value to ensure the correct max speed is used with disabled real acceleration
2008-03-17 22:13:00 +00:00
glx
fbf70d53ec
(svn r12379) -Codechange: removed now redondant InvalidateWindow() calls
2008-03-17 22:04:15 +00:00
glx
2b86efea74
(svn r12378) -Fix: refresh vehicle details window when cached values are updated
2008-03-17 21:50:53 +00:00
glx
e2ec1e7032
(svn r12377) -Fix [FS#1854]: set cached value for vehicle property 25 before other cached values
2008-03-17 21:49:14 +00:00
peter1138
e27de79990
(svn r12374) -Fix (r11892): Don't close a dropmenu when clicking on a dropdown widget
2008-03-15 21:35:48 +00:00
glx
013d7db19f
(svn r12373) -Fix [FS#1849]: win32 music driver fails if path is too long (128 chars is too much for mci it seems), so retry using the short path name (8.3 style) if available
2008-03-15 21:20:40 +00:00
glx
1abd2bd700
(svn r12372) -Fix: win32 music driver fails if path contains non-latin chars
2008-03-15 21:12:08 +00:00
smatz
756e0d9b6e
(svn r12371) -Fix [FS#1823]: do not let window hide behind the main toolbar after resizing the screen
2008-03-15 20:32:42 +00:00
peter1138
058724b768
(svn r12370) -Fix [FS#1853]: Close language drop down when parent window is clicked/closed.
2008-03-15 19:50:06 +00:00
smatz
89e9bbfa98
(svn r12369) -Fix (r1681): reset train speed limits when _patches.realistic_acceleration changes
2008-03-15 19:24:13 +00:00
smatz
bfae49aeb2
(svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script
2008-03-15 13:21:31 +00:00
smatz
5db7288ea9
(svn r12367) -Fix [FS#1650](r707): commands were sent to clients waiting for map download causing 'executing command from the past' error
2008-03-15 00:31:10 +00:00
glx
f8bae50bf5
(svn r12366) -Codechange: use MAX_PATH instead hardcoded value
2008-03-14 18:31:37 +00:00
skidd13
9a96f89646
(svn r12365) -Fix: missing redraw call in the road gui
2008-03-13 18:53:49 +00:00
peter1138
d205e53392
(svn r12364) -Fix (r12361): Case attribute for brazilian_portuguese got lost.
2008-03-12 20:03:21 +00:00
smatz
902320d7cb
(svn r12363) -Fix: do not allow building 'zero' road bits
2008-03-12 18:10:45 +00:00
frosch
84385f187b
(svn r12362) -Fix (r11985, r12006): Randomize variable 8F only once per callback 28.
2008-03-12 15:56:56 +00:00
miham
761224a4f6
(svn r12361) -Update: WebTranslator2 update to 2008-03-12 09:46:45
...
brazilian_portuguese - 2 fixed by fukumori (2)
bulgarian - 3 fixed, 1 changed by kokobongo (3), thetitan (1)
catalan - 2 fixed by arnaullv (2)
czech - 2 fixed by Hadez (2)
danish - 15 fixed by ThomasA (15)
dutch - 2 fixed, 1 changed by habell (3)
estonian - 2 fixed by kristjans (2)
french - 2 fixed by glx (2)
german - 15 fixed, 1 changed by moewe2 (16)
italian - 2 fixed by lorenzodv (2)
portuguese - 9 fixed, 6 changed by nars (15)
slovak - 2 fixed by lengyel (2)
slovenian - 9 fixed by Necrolyte (9)
spanish - 2 fixed, 2 changed by eusebio (4)
turkish - 22 fixed by jnmbk (22)
ukrainian - 2 fixed, 18 changed by mad (20)
2008-03-12 08:47:44 +00:00
glx
7056428d15
(svn r12360) -Fix: openttdd.grf was using the wrong colours for glyphs due to a grfcodec bug (fixed in grfcodec 0.9.10 r1837)
2008-03-12 01:49:21 +00:00
frosch
ec59843136
(svn r12358) -Fix: Callback 2F returns 15 bit results starting from grf version 7.
2008-03-11 12:55:41 +00:00
frosch
51bbf0c84f
(svn r12352) -Fix: Some callback-results were treated as 8 bit, when they were 15 bit, and vice versa.
...
Var 0x7E procedure-results are always 15 bit.
Callbacks 0x2A, 0x2C, 0x36 (sometimes), 0x39 and 0x145 are 15 bit.
Non-varaction2-calculated callback-results are also affected by the 8bit masking.
2008-03-10 15:31:07 +00:00
glx
220b2a1ae1
(svn r12350) -Fix [FS#1836](r11947): do not try ti flood water tile (performance increase)
2008-03-08 18:32:01 +00:00
belugas
82e340c325
(svn r12349) -Change[FS#1826]: Remove the need to include the afxres.h header when all that was needed was just the definition if IDC_STATIC.
...
Only valid for MSVC compilers.
2008-03-07 02:40:10 +00:00
smatz
2c74f39273
(svn r12348) -Fix (r7573): NTP skipped junction just after bridge end
2008-03-07 00:47:42 +00:00
frosch
08f0179916
(svn r12347) -Feature(ette): Increase house animation frame number from 32 to 128.
2008-03-06 14:21:10 +00:00
frosch
8f556828f0
(svn r12346) -Fix [FS#1748, FS#1825](r9874, r11872): Remove duplicated and inconsistent code wrt. autoreplace with rules in both vehicles' group and ALL_GROUP.
2008-03-06 10:39:26 +00:00
glx
1976d2d37c
(svn r12345) -Fix [FS#1828](r12296): don't try to restore backupped timetable when timetabling is disabled
2008-03-05 22:05:22 +00:00
skidd13
442efcffb0
(svn r12344) -Codechange: Check uint64 bitsize on compiletime too.
2008-03-05 18:51:26 +00:00
peter1138
b4a51cd28d
(svn r12343) -Fix (r12293): Slow helicopters never got the 'chance' to finish the landing routine.
2008-03-05 18:33:31 +00:00
belugas
cd411ab75a
(svn r12342) -Fix(r12340): In order to avoid confusion, SIGN should be used for signs and SIGNAL for signals :)
...
Always check your terms with your nearest british ;)
2008-03-05 11:41:26 +00:00
peter1138
f08cf32216
(svn r12341) -Fix (r11224) [FS#1827]: GRM buffer for cargos was incorrect size.
2008-03-05 09:37:43 +00:00
belugas
a6ee46a5a0
(svn r12340) -Codechange: Remove some magic numbers (sprite IDs here) with some more meaningful values.
...
This allows to remove an unnecessary subtraction in the MAYBE_DAW_SIGNAL macro, who was waiting for an offset, at the first place.
2008-03-05 02:49:06 +00:00
peter1138
bc8ad5c743
(svn r12339) -Fix (r12331): Recalculate cached train data after clearing reversing flag when entering depot.
2008-03-04 21:49:40 +00:00
peter1138
9674ff71de
(svn r12336) -Fix [FS#1733]: Don't pause/unpause the game when showing load/save windows when the game is paused due to missing GRFs.
2008-03-04 12:15:33 +00:00
peter1138
3907ac518b
(svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned...
2008-03-04 12:14:34 +00:00
peter1138
e1cc80b01c
(svn r12334) -Codechange: Don't change road owner without DC_EXEC. Didn't affect anything in this case but is bad form.
2008-03-04 12:13:15 +00:00
frosch
6e3ae628fc
(svn r12333) -Fix: Switch grfstatus from 'activated' back to 'will-be-active' between reservation- and activation-stage.
...
This fixes action7/9 conditions 0x06 to 0x0A to return the same in those two stages.
2008-03-04 10:41:16 +00:00
peter1138
6bb37edfb6
(svn r12332) -Fix (r12331): Invalidate cached data and update image after setting flag.
2008-03-03 21:42:37 +00:00
glx
b64f637c72
(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8
2008-03-03 20:56:30 +00:00
glx
cf0e6d4cb4
(svn r12330) -Feature: [NewGRF] vehicle variable FE bit 5 and 6
2008-03-03 20:41:47 +00:00
peter1138
5049fbb081
(svn r12329) -Fix [FS#1819]: Disallow building level crossings over one-way roads as this allowed competitors to remove the one-way state.
2008-03-03 19:15:53 +00:00
belugas
56ed79e448
(svn r12328) -Fix(r3447): Wrong Y pillar specified for girder with arch bridge. Spotted and fixed by a lot of people ;)
2008-03-03 18:20:42 +00:00
smatz
620695587d
(svn r12324) -Fix (r6789): vehicles could be sorted in a wrong order when a vehicle name changed - cached name was not invalidated
2008-03-02 00:25:54 +00:00
smatz
8dacca9a71
(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
2008-03-01 23:53:58 +00:00
glx
c4e023bd6e
(svn r12322) -Fix (r9874): endian issue when saving/loading group owner
2008-02-29 22:55:57 +00:00
peter1138
f87b1df566
(svn r12320) -Fix [FS#1817]: Wrong transparency options could be saved after toggling all.
2008-02-29 15:20:02 +00:00
peter1138
3bba6e4abd
(svn r12319) -Cleanup: Comment fixes (Roujin)
2008-02-29 13:57:50 +00:00
peter1138
9ccce57438
(svn r12317) -Fix [FS#1815]: Map string IDs that are embedded from other strings.
2008-02-29 08:48:01 +00:00
peter1138
6bdc8e5fae
(svn r12316) -Codechange: Support loading full range of 0xD0xx NewGRF strings which
...
includes 0xD000 to 0xD3FF (yes, 0xD0xx makes a lot of sense, really...)
and handle 0xD400 to 0xD7FF strings which map to 0xD000 to 0xD3FF
(obviously).
2008-02-29 08:40:49 +00:00
peter1138
034649e7f5
(svn r12314) -Fix (r4896): Include prop 25 data for all train parts, not just those that carry cargo.
2008-02-28 21:44:13 +00:00
frosch
35fd0dfd4e
(svn r12313) -Fix: YAPF and NTP did not apply penalty for uphill tracks on steep slopes.
2008-02-28 17:34:34 +00:00
glx
86a4d377b1
(svn r12304) -Codechange: use IsValidTile() where it should be used
2008-02-28 00:17:49 +00:00
glx
35195bb2bc
(svn r12303) -Codechange: move IsValidTile() in a more suitable place and make it static inline
2008-02-28 00:10:08 +00:00
glx
459fd42e1d
(svn r12296) -Fix [FS#1549]: restore timetable from backupped orders and add group ID to the backup
2008-02-27 21:46:57 +00:00
peter1138
6aea2454c8
(svn r12295) -Codechange: Make plane speed option available to NewGRFs
2008-02-27 21:33:52 +00:00
peter1138
926f5d548d
(svn r12293) -Feature: Ability to change aircraft speed factor, from so
...
called 'realistic' (matching other vehicles) (1/1) to original TTD
speed (1/4). Note this option defaults to original TTD speed.
2008-02-27 21:07:12 +00:00
belugas
8f47b642b6
(svn r12290) -Fix[FS#1807]: Do not draw trees nor lamps between tram tracks.(Roujin)
2008-02-27 15:35:24 +00:00
belugas
46a3508f50
(svn r12289) -Fix(r12288)[FS#1808]: Wrong bridge head table associated
2008-02-27 14:55:16 +00:00
belugas
202f1046f6
(svn r12288) -Fix(r12287): forgot to include two sprite renames out of consistency.
...
And obviously forgot to compile before committing, as the array rename would have been evident.
2008-02-27 04:26:25 +00:00
belugas
7c14dedeb6
(svn r12287) -Codechange: Give meaning to two other bridges sprites arrays.
...
A bit of re-indenting too
2008-02-27 04:00:25 +00:00
belugas
7e74fca7d8
(svn r12272) -Codechange: A bit of code style fixes (tabs instead of spaces), one space too many before macro definition and rename marco MB (MakeBridge) for MBR(MakeBRidge)
2008-02-26 18:24:46 +00:00
belugas
0a92b3366c
(svn r12263) -Codechange: Give meaning to the concrete bridge sprites arrays.
...
Add macro MR (PALETTE_TO_STRUCT_RED) for easier viewing.
Still more to come.
2008-02-26 03:35:44 +00:00
belugas
3764aa5134
(svn r12262) -Codechange: Give meaning to the wooden bridge sprites arrays.
...
Add macro MN for easier viewing.
More to come.
2008-02-26 00:06:21 +00:00
glx
62d9bf8d0f
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
2008-02-25 23:12:55 +00:00
glx
4a4be744b6
(svn r12258) -Fix: GetProductionAroundTiles() may fail if only the second production slot exists
2008-02-25 16:30:12 +00:00
KUDr
e41df385d7
(svn r12252) -Fix [FS#1801]: Broken FollowTrack_t related functions (thanks michi_cc).
...
-Fixed by removing FollowTrack_t structure and all related functions. Their purpose was to allow to call track followers from C code. They were:
1. never used
2. obsoleted by switching to C++
2008-02-25 15:09:22 +00:00
frosch
93b3a66678
(svn r12247) -Fix (r9315): Town variables 0x9E to 0xAD (company ratings) returned wrong values.
2008-02-25 13:48:23 +00:00
frosch
c2f3e0e326
(svn r12246) -Fix (r10460): Proper usage of Clamp().
2008-02-25 13:38:11 +00:00
smatz
27284db36f
(svn r12244) -Fix (r12150): typo resulting in no players are given the engine preview offer
2008-02-25 02:09:04 +00:00
glx
f352512c8d
(svn r12239) -Fix [FS#1800] (r9729): inverted comments for SetRailType() and GetTrackBits() (michi_cc)
2008-02-24 22:20:31 +00:00
bjarni
8290a798fc
(svn r12231) -Cleanup (r12230): [autoreplace] moved Vehicle::NeedsAutorenewing() and added comments
2008-02-23 22:23:06 +00:00
bjarni
089969e1ca
(svn r12230) -Codechange: [autoreplace] made a function to detect if a vehicle needs autorenewing
...
This will remove duplicated code and ensure that the check is consistent
2008-02-23 22:01:55 +00:00
miham
e821b3a9b8
(svn r12218) -Update: WebTranslator2 update to 2008-02-23 12:39:10
...
brazilian_portuguese - 13 fixed, 51 changed by fukumori (64)
bulgarian - 12 fixed by thetitan (12)
catalan - 13 fixed by arnaullv (13)
czech - 13 fixed, 8 changed by Hadez (21)
dutch - 13 fixed by habell (13)
estonian - 13 fixed, 3 changed by kristjans (16)
french - 13 fixed, 20 changed by glx (33)
hungarian - 13 fixed by miham (13)
italian - 13 fixed, 8 changed by lorenzodv (21)
japanese - 13 fixed by ickoonite (13)
korean - 14 fixed by leejaeuk5 (14)
portuguese - 2 fixed by nars (2)
slovak - 13 fixed by lengyel (13)
slovenian - 1 fixed by Necrolyte (1)
spanish - 13 fixed by eusebio (13)
swedish - 1 fixed by ChrillDeVille (1)
ukrainian - 13 fixed, 1 deleted, 124 changed by mad (138)
2008-02-23 11:42:41 +00:00
peter1138
dda6cab17a
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
2008-02-21 19:09:10 +00:00
belugas
c0544563a6
(svn r12208) -Codechange: Alignment of params makes the code easier to read.
2008-02-21 16:05:33 +00:00
peter1138
577b0cc260
(svn r12207) -Change: rail running costs are engine class, not rail type
2008-02-21 14:30:36 +00:00
belugas
1b73417e5f
(svn r12206) -Fix: A comma is not a rare resource. Do not hesitate to use it when needed.
2008-02-20 21:08:27 +00:00
peter1138
79b6b9cb66
(svn r12205) -Codechange: rename RailVehicleInfo::running_cost_base to running_cost, inline with other vehicle types (It is the factor, not the base)
2008-02-20 20:56:54 +00:00
smatz
db9d5a909f
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
2008-02-20 19:42:06 +00:00
frosch
1e74834441
(svn r12203) -Fix (r12199): Make trains pay attention to signals again.
2008-02-20 19:37:46 +00:00
peter1138
e90cf8509a
(svn r12202) -Fix: When loading a savegame fails, don't start creating a new game, just go straight back to the intro screen.
2008-02-20 19:37:02 +00:00
smatz
a47b4631ea
(svn r12201) -Fix (r12060): compilation warnings - uninitialized variable when compiling with assert disabled
2008-02-20 19:34:53 +00:00
smatz
767e1cc37e
(svn r12200) -Fix: force AI to build rail or road instead of bridges if possible, so it doesn't build bridges everywhere
2008-02-20 17:56:36 +00:00
frosch
b7993793c8
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
2008-02-20 17:49:50 +00:00
peter1138
9e65157548
(svn r12198) -Fix [FS#1789]: "Transparent buildings" now only toggles buildings, so show tick when buildings are transparent.
2008-02-20 17:12:08 +00:00
smatz
a190606f2e
(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
...
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-20 17:06:58 +00:00
smatz
e95a85315c
(svn r12195) -Fix [FS#1787](r12100): there can be oil rigs at map borders, do not set water class for them
2008-02-20 16:24:56 +00:00
smatz
73a6525129
(svn r12194) -Codechange: apply coding style on enum TrainSubtype
2008-02-20 15:18:35 +00:00
frosch
f5929d413b
(svn r12193) -Codechange: Rename a magic variable, give it a decent type, and remove a 'goto'.
2008-02-20 15:13:42 +00:00
smatz
ca46154068
(svn r12192) -Fix: clamp various town variables to 16bit prior to returning the value
2008-02-20 14:30:53 +00:00
frosch
0e9e94a94b
(svn r12191) -Fix: Do not start overtaking if the RV reaches wrong-way one-way-road in the next tiles.
2008-02-20 14:07:45 +00:00
smatz
2b8d1bcb51
(svn r12190) -Fix [FS#1786](r8080): YAPF always shows 0ms PF time in debug for debug level 2 (patch by IguannaB)
2008-02-20 12:31:28 +00:00
smatz
169ac7c91d
(svn r12189) -Codechange: mark some functions in train_cmd.cpp inline (called once or very short)
2008-02-20 12:07:22 +00:00
smatz
595d9357c3
(svn r12188) -Codechange [FS#1782]: do not check twice for correct rail owner (patch by Vikthor)
2008-02-20 11:00:17 +00:00
belugas
b4b5c09ff9
(svn r12187) -Add: frosch as dev. Last, but not least
2008-02-19 17:52:30 +00:00
smatz
6e9b952623
(svn r12186) -Fix [FS#1784](r12169): assert when trying to play tile sound at NW border of map (placing buyos, leveling land)
2008-02-19 17:45:30 +00:00
smatz
adf1227290
(svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc)
2008-02-18 23:37:16 +00:00
smatz
578e833284
(svn r12184) -Fix: take into account possible loan when AI is deciding which bridge to build, so it won't build wooden bridges everytime
2008-02-18 22:50:58 +00:00
smatz
0821df8537
(svn r12183) -Codechange: give a better error message when building road over existing road with vehicle on it, or do not fail at all
2008-02-18 22:12:27 +00:00
peter1138
a4c14fb442
(svn r12180) -Fix: Test purchase list loading/loaded sprites instead of unconditionally returning a possibly non-existant sprite.
2008-02-18 19:20:37 +00:00
smatz
509b3a3247
(svn r12179) -Codechange: use GetCrossingRailTrack() and GetCrossingRailAxis() to improve code readability
2008-02-18 18:35:36 +00:00
smatz
c7a8080c3a
(svn r12178) -Codechange: use the 'side' parameter in TrainController and TrainCheckIfLineEnds to simplify the code
2008-02-18 16:35:38 +00:00
smatz
29125c0e68
(svn r12177) -Codechange: use 'side' parameter in GetTileTrackStatus so there can be less checks in pathfinders for depots/stations/tunnels/bridges
2008-02-18 16:11:31 +00:00
smatz
a0a225ab02
(svn r12176) -Codechange: one division less when playing sounds (patch by Dominik)
2008-02-18 14:59:30 +00:00
peter1138
a0fda5b969
(svn r12175) -Fix (r12174): Ensure the patches window is centred properly.
2008-02-18 13:19:57 +00:00
peter1138
b3f304cde3
(svn r12174) -Codechange: Make the patches window dynamically resize to the largest patch tab, so adding patch options is simply a case of adding to the lists.
2008-02-18 12:36:10 +00:00
peter1138
06de1215c1
(svn r12173) -Cleanup: Minor codestyle fixes.
2008-02-18 11:47:53 +00:00
peter1138
db0eb9570c
(svn r12172) -Codechange: Allow buttons to resize in NewGRF settings window
2008-02-18 09:16:02 +00:00
smatz
38969fe46d
(svn r12171) -Fix [FS#609]: return correct bridge price for AI when DC_QUERY_COST is set (patch by Raimar Falke)
...
It never happens in current code, but it is better to be ready for it
2008-02-18 01:42:21 +00:00
smatz
d75cccf5d5
(svn r12170) -Fix: do not draw trees along road and street lights under low bridges (spotted by _minime_)
2008-02-17 21:27:44 +00:00
smatz
6bf44158c5
(svn r12169) -Change [FS#1696]: play sounds when there is only small part of tile/vehicle visible too (original idea by Dominik)
...
It improves the game appearance when playing with very small screen resolution
2008-02-17 20:15:20 +00:00
smatz
505951e9fa
(svn r12168) -Fix: behave a bit better when 'R' is pressed during rail station dragging
2008-02-17 18:19:33 +00:00
smatz
8b56e7544e
(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed
2008-02-17 17:00:43 +00:00
smatz
291931bf50
(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC)
2008-02-17 12:21:05 +00:00
glx
16e23a75fe
(svn r12165) -Fix [FS#1652, FS#1773]: buffer overflow when drawing scrolling news
2008-02-17 00:47:39 +00:00
peter1138
7394b9d030
(svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in
2008-02-16 23:09:33 +00:00
smatz
13781ec11b
(svn r12163) -Fix [FS#1705]: if a train is 'stopping' when entering a depot, do not let it leave again
2008-02-16 22:29:30 +00:00
smatz
ebe03109ad
(svn r12162) -Fix [FS#1757]: towns shouldn't build over houses owned by another town
2008-02-16 17:54:29 +00:00
smatz
4b7a812e55
(svn r12161) -Fix: towns will no longer build houses > 1x1 there where should be road (with 2x2, 3x3 grid town layouts)
2008-02-16 17:10:14 +00:00
smatz
058f39fe18
(svn r12160) -Fix [FS#1744]: remove the arbitrary limit of 64 waypoints per town, so weird things won't happen anymore
2008-02-16 16:40:47 +00:00
belugas
e7173d3ba4
(svn r12159) -Codechange: Enumify some widget magical numbers
...
-Cleanup: apply a bit of code style. Mostly re-indenting switch cases
2008-02-16 03:12:57 +00:00
belugas
245fccf22d
(svn r12158) -Codechange: merge all the sprite recolouring mapping under a single function
...
-Fix: Handle the bridge recolouring mapping as the other features. Although not specified by the specs, it seems to be implicit.
2008-02-16 03:01:05 +00:00
belugas
b8f8d0ca51
(svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
...
-Codechange: Replace two magic numbers with according sprite names
2008-02-16 02:37:31 +00:00
smatz
b4f58ebae4
(svn r12156) -Fix (r11454): Chance16I was now biased towards zero - round to nearest now
2008-02-16 00:46:38 +00:00
glx
044ca2bbf6
(svn r12155) -Fix (r12154): some warnings (always compile before commit)
2008-02-16 00:10:03 +00:00
glx
3e70ee6ed7
(svn r12154) -Codechange: removed a magic number
2008-02-15 23:57:03 +00:00
smatz
a5f99154b7
(svn r12150) -Fix (r12143): compiler warnings - possible use of uninitialised variable
2008-02-15 21:05:46 +00:00
frosch
a40d761d7f
(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
2008-02-15 18:40:42 +00:00
frosch
fd0f57a794
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
2008-02-15 18:34:26 +00:00
frosch
cedca22c60
(svn r12147) -Codechange: Use macros to build DrawTileSprites-tables in station_land and unmovable_land.
2008-02-15 18:21:04 +00:00
frosch
ef354e074f
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
2008-02-15 18:00:30 +00:00
belugas
65a13a3022
(svn r12145) -Codechange: includes should be at the top of the source file
...
-Codechange: undefine a defined macro once work is finished, just in case
2008-02-15 17:38:18 +00:00
peter1138
ac5433a924
(svn r12144) -Codechange: Adjust aircraft slowing algorithm so that very fast
...
aircraft slow down more rapidly than slower aircraft. This prevents them
from reaching the end of the runway at high speed, and also stops slow
aircraft from slowing down too much at the start of the runway.
2008-02-15 13:28:13 +00:00
peter1138
d1c741db4c
(svn r12143) -Fix (r8038): Engine::preview_player does not contain a Player ID. Rename this to preview_player_rank and change back to a uint8 to avoid confusion.
2008-02-15 11:02:50 +00:00
frosch
4164d2488f
(svn r12142) -Fix [FS#1766]: Callback 0x3D always gets a cargobit in var 0x18, independent of grf version.
2008-02-15 10:52:10 +00:00
frosch
43c0f7ea8e
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
2008-02-14 15:59:16 +00:00
belugas
739b118c6b
(svn r12140) -Codechange: A bit of code style fixes(Geektoo).
2008-02-14 15:13:36 +00:00
peter1138
859d768bb7
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
2008-02-14 11:58:36 +00:00
smatz
bb81de3c4c
(svn r12138) -Fix: do not allow adding tram to rail-road crossing when there is a vehicle on it
2008-02-14 10:19:16 +00:00
peter1138
3371d02449
(svn r12137) -Fix [FS#1769]: Show cargo capacity for articulated vehicles correctly in the purchase list. Multiple cargo types can also now been shown.
2008-02-14 07:25:24 +00:00
belugas
539c635efd
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
2008-02-14 03:10:22 +00:00
belugas
81b3652f37
(svn r12135) -Codechange: Road and rail bridge selection windows were identical apart the caption. So remove one window definition and set manually the caption accordingly.
...
-Codechange: prepare the "type" of bridge parameter only once, at the beginning of the selection process. Makes less magic around.
2008-02-14 02:57:38 +00:00
smatz
a0ddc43e92
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
...
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-02-13 19:24:40 +00:00
peter1138
b7cd791988
(svn r12133) -Fix: Vehicle sorting by max speed did not work properly for trains. Instead of trying to work it out again, just use the cached values...
2008-02-13 18:11:19 +00:00
smatz
fd51465c8b
(svn r12132) -Cleanup: convert pathfinder selection from if/else to switch/case at many places
2008-02-13 17:54:11 +00:00
smatz
480036254b
(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
2008-02-13 16:49:25 +00:00
smatz
0d1e4237cf
(svn r12130) -Cleanup (r12129): remove now unused strings from all language files
2008-02-13 14:31:13 +00:00
smatz
507728f46b
(svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick)
2008-02-13 14:21:36 +00:00
peter1138
df7327b453
(svn r12128) -Codechange: Replace last use of TrainPlayLeaveStationSound(v) with v->PlayLeaveStationSound(), and remove wrapper function.
2008-02-13 09:34:56 +00:00
belugas
6bb9c474dd
(svn r12127) -Codechange: Use a variable instead of calling the same function a few times. Again. Just a different value.
2008-02-13 03:21:19 +00:00
belugas
c95ff294fb
(svn r12126) -Codechange: Use a variable instead of calling the same function a few times
2008-02-13 03:02:02 +00:00
peter1138
63e306006b
(svn r12125) -Codechange: Remove redundant signal lookup table, and document why normal electric signals are handled specially.
2008-02-12 20:14:14 +00:00
frosch
c2bad6d22c
(svn r12124) -Codechange: Move newgrf-variables that are common to VarAction2 and Action7/9/D to their own function.
...
-Fix: Add some variables that were missing in one or both cases.
2008-02-12 15:43:10 +00:00
peter1138
4d0c443953
(svn r12122) -Codechange: Add framework for generic feature callbacks, along with some parts for AI use.
2008-02-12 13:23:57 +00:00
peter1138
9f6fd72c09
(svn r12121) -Fix [FS#1764]: Drop down item indexes are now an int instead of a byte (Yexo)
2008-02-12 12:54:51 +00:00
peter1138
592e22cc3a
(svn r12120) -Cleanup: const-ify parameters when checking for same cargopacket source.
2008-02-12 11:46:29 +00:00
peter1138
e76f7c9359
(svn r12119) -Codechange: Rename grfspec_feature to match code style, and expose in header for use elsewhere.
2008-02-12 11:08:47 +00:00
belugas
f4334301e8
(svn r12118) -Codechange: Put the two descriptions of bridges in an array instead of two single variables, following the transport type it represents
2008-02-12 03:05:27 +00:00
smatz
f19eca0905
(svn r12115) -Codechange: move malloc/realloc error messages to separate file to spare 4-8kB of binary size
2008-02-11 20:23:38 +00:00
peter1138
f175e46208
(svn r12114) -Fix (r12111): missed one Bridge -> BridgeSpec
2008-02-11 19:10:33 +00:00
belugas
cc2b8b574a
(svn r12111) -Codechange: Rename Bridge to BridgeSpec, out of consistensy with other Specs in used.
2008-02-11 17:35:15 +00:00
smatz
1011ac353b
(svn r12109) -Fix [FS#1745](r8973): use tile index 0 for planes in the air, so it cannot have an invalid tile index
2008-02-11 12:42:49 +00:00
peter1138
fb6accfcb7
(svn r12108) -Fix [FS#1753]: X/Y axis swap for station tiles in GetNearbyTile() was wrong way around.
2008-02-11 11:21:29 +00:00
belugas
4f0e6ab0ea
(svn r12107) -Codechange: Add and use the typedef BridgeType
2008-02-11 04:12:30 +00:00
belugas
d8b3526840
(svn r12106) -Fix(r12105): Kill warnings and raise an error when the transport type is not supported
2008-02-11 03:22:44 +00:00
belugas
9a50fcd281
(svn r12105) -Codechange: Use TransportType instead of guessing what kind of bridge we are preparing to build
2008-02-11 01:06:44 +00:00
smatz
9e0a93d286
(svn r12104) -Fix (r12103): remember loading indicators transparency settings and make in switchable by Ctrl+9
2008-02-10 18:31:33 +00:00
smatz
8a768652c8
(svn r12103) -Feature(tte): separate catenary transparency settings from building transparency settings
2008-02-10 15:53:26 +00:00
maedhros
4e839aacf6
(svn r12102) -Feature: Allow locking individual transparency settings so they will not be changed by pressing 'x'. (Roujin)
2008-02-10 14:49:44 +00:00
smatz
e075cf5500
(svn r12101) -Fix (r12100): there are void tiles at MapMaxX,Y - have to substract one to be on water border tiles
2008-02-10 14:16:25 +00:00
smatz
ad933e1ddb
(svn r12100) -Fix (r12042): check for water class of surrounding tiles fails for buoys at map borders
2008-02-10 14:00:52 +00:00
smatz
9deab65bae
(svn r12098) -Fix: make snow appear on rail tiles dependant on track height, not on height of the lowest part of the tile
2008-02-10 11:35:05 +00:00
glx
efe831934a
(svn r12097) -Fix (r654, r1525): loading old, pre savegame version 2, savegames.
2008-02-10 05:21:08 +00:00
smatz
d9af979d6a
(svn r12096) -Fix: remove leftover property when loading older savegames
2008-02-09 17:36:21 +00:00
smatz
e3301db213
(svn r12095) -Fix [FS#1703]: when a company bankrupts, remove drive-through road stops, ship depots and buoys too. Update owners of water and road.
2008-02-09 17:30:13 +00:00
smatz
802c949755
(svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player property to allow further fixes
2008-02-09 15:07:31 +00:00
smatz
221494bd3f
(svn r12093) -Fix: do not set station owner for buoys when merging company
2008-02-09 12:20:50 +00:00
belugas
cebb86777a
(svn r12092) -Fix(r11532)[FS#1755]: Make sure the production level will not get out of delimited boundaries, while using var result 0D/0E and than multiplying/dividing it.
...
And use multiply/divide operations instead of shifting. It does the same, just adds a bit more readability
2008-02-09 03:12:05 +00:00
belugas
a782ab3903
(svn r12091) -Codechange : remove all production level magic numbers and replace them by enums
2008-02-09 03:03:09 +00:00
belugas
cf9447c15b
(svn r12090) -Codechange : removed a magic number and code style application on enum ExpensesType
2008-02-09 02:49:33 +00:00
smatz
8195e57fd4
(svn r12088) -Fix: assert when loading savegame with wrong tiletype at south map borders
2008-02-08 19:57:56 +00:00
glx
e2de86f951
(svn r12087) -Fix: MSVC warnings
2008-02-08 17:53:01 +00:00
glx
731137678c
(svn r12086) -Fix [FS#1747] (r11425): check overrides only for industries when mapping newgrf entities to 'real' entities
2008-02-08 16:56:52 +00:00
frosch
7b9efcea21
(svn r12085) -Fix(r12058): Road vehicles could get stuck, when NPF told them to reverse on junction tiles. (spotted by SmatZ)
2008-02-08 16:25:55 +00:00
frosch
2173b03144
(svn r12084) -Fix: 'Early retirement'-properties are signed.
2008-02-08 15:34:54 +00:00
belugas
034150c199
(svn r12081) -Codechange: Rename table/roadveh.h to table/roadveh_movment.h
...
It is more descriptive name and it will not upset the generate script anymore
2008-02-07 17:01:06 +00:00
glx
b68f398cac
(svn r12080) -Fix: update waypoint signs when changing language
2008-02-07 16:17:00 +00:00
peter1138
1bcc1927b1
(svn r12079) -Fix: Use search paths when opening console scripts.
2008-02-07 10:01:18 +00:00
glx
eb0d50aaff
(svn r12076) -Fix: when reusing a renamed deleted waypoint, keep the new name
2008-02-07 01:56:39 +00:00
peter1138
a187d92d87
(svn r12075) -Codechange: Remove explicit numbering on command enum, and remove blanks from command list where old commands have been removed.
2008-02-06 23:08:49 +00:00
smatz
8606e70819
(svn r12074) -Cleanup: use C++ variable scope and declaration in DrawTile_Trees()
2008-02-06 23:08:04 +00:00
smatz
c0c9b80db3
(svn r12073) -Codechange: stop drawing trees a bit earlier when they are invisible
2008-02-06 22:59:31 +00:00
frosch
918591c05b
(svn r12072) -Fix: Make docks at sea flood neighboured tiles.
2008-02-06 16:19:28 +00:00
frosch
7860d8d18a
(svn r12071) -Feature(ette): Draw river- and canal-edges under docks and shipdepots.
2008-02-06 16:12:23 +00:00
frosch
e95e887772
(svn r12070) -Cleanup(r12042): Water-owner of shipdepots is no longer needed. Removed.
2008-02-06 15:32:06 +00:00
belugas
94f4217984
(svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge.
2008-02-06 03:01:29 +00:00
belugas
5049ff8e8e
(svn r12068) -Fix(r12067): forgot a return
2008-02-06 02:43:42 +00:00
peter1138
f29c748d4c
(svn r12067) -Cleanup: Codestyle on loading object references
2008-02-05 23:22:34 +00:00
belugas
62b3520e51
(svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpec
...
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec
-Codechange: Rationalize the use of Bridge type pointer
2008-02-05 05:21:02 +00:00
belugas
80daad8d4d
(svn r12065) -Codechange : removed a now useless declaration ( orig_bridge )
2008-02-05 05:03:50 +00:00
belugas
3003986e67
(svn r12064) -Codechange : Give grf bridges their own ResetBridges function, and put bridge spec in table/bridge_land.h, where it should be.
2008-02-05 04:48:56 +00:00
smatz
c261218cf5
(svn r12063) -Cleanup: use C++ indenting and variable scope/declaration in BuildTownHouse()
2008-02-05 00:30:58 +00:00
smatz
146779b158
(svn r12062) -Fix: possible deadlock when there are no houses available to build at given tile
...
-Fix: houses with zero probability could be built
2008-02-04 23:24:22 +00:00
smatz
23c669fe50
(svn r12061) -Cleanup: since r12060, DC_FORCETEST is not used anymore
2008-02-04 22:44:05 +00:00
smatz
dbfdc5df94
(svn r12060) -Fix: do not clear tiles when the town won't be able to build any buildings anyway
...
-Fix: allow building 2x2 building on slopes if not explicitly forbidden
-Fix: it was possible to build 2x1 and 1x2 buildings on slopes even if it was not allowed
2008-02-04 22:15:48 +00:00
glx
b35611dae3
(svn r12059) -Fix (r12041): industries prop 24 is a word
2008-02-04 16:48:00 +00:00
frosch
5e7c8012ec
(svn r12058) -Fix: Teach NPF where road vehicles and trams can reverse.
...
-Fix: Ships can drive through opponents' ship depots. (Thanks SmatZ)
-Codechange: Split NPFFollowTrack() in smaller parts.
2008-02-04 16:24:25 +00:00
smatz
04ef38ec60
(svn r12057) -Fix: slowdown train when approaching 90deg turn when 90deg turns are forbidden
2008-02-04 15:56:39 +00:00
frosch
2a2aa1d22a
(svn r12056) -Fix [FS#1704]: Enable YAPF to start searching inside a wormhole.
2008-02-04 15:26:35 +00:00
smatz
b206e50f80
(svn r12055) -Fix: another way to fix AI trying to build road through depots
2008-02-04 14:08:02 +00:00
peter1138
a528dc89c7
(svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types...
2008-02-04 11:28:12 +00:00
maedhros
2588879c6d
(svn r12052) -Fix [FS#1737] (r11494): The cargo translation table was loaded at the right time, but all the other global variables were now loaded too early. ;)
2008-02-03 20:23:59 +00:00
rubidium
20e9abed47
(svn r12050) -Fix: random_func broke for desync debug.
2008-02-03 16:21:19 +00:00
smatz
0ca3977af8
(svn r12049) -Fix (r10496)(r10619): memset on multibyte array with wrong byte count
2008-02-03 12:41:06 +00:00
belugas
1e51090e74
(svn r12048) -Cleanup: Move some strings in the original bridge array, adjust documentation a bit.
2008-02-03 03:37:33 +00:00
belugas
90973cdcef
(svn r12045) -Feature-ette(newGRF): Add support for var 12, Variational Action 2
2008-02-03 00:24:53 +00:00
rubidium
612ba5c787
(svn r12044) -Fix [FS#1741]: crash when centering on a vehicle (aircraft) that is outside of the map.
2008-02-02 21:09:05 +00:00
smatz
f3663fd25c
(svn r12043) -Fix [FS#1736]: allow building transmitters and lighthouses on tree tiles
2008-02-02 20:15:20 +00:00
peter1138
1d891a8b15
(svn r12042) -Fix [FS#1676]: Reimplement how rivers and canals are stored in the map, allowing the sea/river/canal status to also be
...
stored for buoys, docks, locks and depots. All these are now allowed on rivers and removal of them will revert to the
original water type.
2008-02-02 09:28:43 +00:00
belugas
7cf2c83462
(svn r12041) -Codechange: Add the loader and the property for action 00 industries, prop 24, nearby station name.
...
No assignation yet, no real work either.
2008-02-02 03:23:26 +00:00
belugas
fc4f6dcfb1
(svn r12040) -Codechange: Change IsOrderListShared from a simple function to a class member(MagicBuzz).
2008-02-02 02:45:09 +00:00
peter1138
7a78a1b51a
(svn r12038) -Fix: Change ownership of or remove statues when merging/bankrupting companies.
2008-02-01 22:13:59 +00:00
glx
525409b0fc
(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) with an OnNewDay method in the Vehicle class
2008-02-01 22:02:14 +00:00
peter1138
67782add11
(svn r12036) -Fix: For station tiles, only get road types for road stops.
2008-02-01 20:10:57 +00:00
frosch
45b79bc9f1
(svn r12035) -Fix [FS#1702]: Teach YAPF where trams can reverse, and where not.
2008-02-01 17:27:45 +00:00
belugas
803a1e2353
(svn r12034) -Codechange: A bit of code style cleaning, regarding comments.
...
Thanks to MagicBuzz who spotted yet another non-converted file
2008-02-01 17:22:24 +00:00
smatz
6537d13c8a
(svn r12033) -Fix: do not show train speed as zero after loading paused game
2008-02-01 15:09:55 +00:00
peter1138
e0849acc5a
(svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player.
2008-01-31 23:04:45 +00:00
peter1138
be548ee224
(svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing.
2008-01-31 21:16:40 +00:00
miham
f3ecaf796e
(svn r12030) -Update: WebTranslator2 update to 2008-01-31 19:43:58
...
brazilian_portuguese - 1 changed by tucalipe (1)
italian - 2 changed by lorenzodv (2)
japanese - 7 fixed by ickoonite (7)
2008-01-31 18:44:28 +00:00
frosch
a1c543e064
(svn r12029) -Feature: Allow trees on shore.
2008-01-31 17:54:13 +00:00
frosch
fe9891c8ec
(svn r12028) -Codechange: Split common part of station var 0x67, house var 0x62, indtile var 0x60 and industry var 0x62 to 'newgrf_commons.cpp'.
2008-01-31 17:46:08 +00:00
orudge
2ef11e0b8b
(svn r12026) -Update: 'exit' is consistent with UK English in OpenTTD, 'quit' with US English
2008-01-30 19:07:41 +00:00
miham
bc1542d483
(svn r12025) -Update: WebTranslator2 update to 2008-01-30 19:43:26
...
czech - 1 fixed by Hadez (1)
estonian - 11 changed by kristjans (11)
french - 2 changed by belugas (2)
korean - 1 changed by darkttd (1)
spanish - 5 fixed by eusebio (5)
2008-01-30 18:43:59 +00:00
frosch
1608d67030
(svn r12024) -Codechange: Reduce code duplication inside tree_cmd.
...
-CodeChange: When rocks get removed while planting trees, barren the ground.
-Fix: In one case trees could spread under bridges.
2008-01-30 18:40:42 +00:00
frosch
a2b35067dd
(svn r12023) -Fix [FS#1690]: Put a better suited text in the quit-dialog.
2008-01-30 17:56:19 +00:00
belugas
caf7e8655c
(svn r12022) -Revert(r12018): Invisible trees are now separate from the building concept.
...
So when you want invisible trees, just select the option of the same name in the Patch Options and toggle transparency of trees.
More to come on the saga of Invisibility. So stay tuned.
2008-01-30 17:36:28 +00:00
skidd13
953c3cb6df
(svn r12021) -Cleanup: Make some parts of the town growth a bit more descriptive
...
-Codechange: Remove some needless checks
2008-01-30 17:31:39 +00:00
frosch
46589fa827
(svn r12020) -Documentation: Correct description of TropicZone.
2008-01-30 17:22:06 +00:00
peter1138
1cdee354b4
(svn r12019) -Codechange: Add support for passenger engine designation for AI-use, NewGRF property 0x08 for trains.
2008-01-30 10:27:45 +00:00
belugas
94aa04948c
(svn r12018) -Fix(FS#1721,r9563): Restore initial intent on the invisible tree while transparent building patch setting
2008-01-30 03:34:24 +00:00
rubidium
44f4ebffed
(svn r12017) -Fix: when you have more than 9 network interfaces you'll enter the wonderfull world of overflows.
2008-01-29 21:43:22 +00:00
egladil
be6737a2db
(svn r12016) -Fix (r12003): os x compilation was broken again ;)
2008-01-29 19:23:31 +00:00
peter1138
fb8973c64a
(svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings.
2008-01-29 17:09:00 +00:00
rubidium
a736e8500a
(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
2008-01-29 14:19:07 +00:00
frosch
9c4cb84c03
(svn r12013) -Fix: When modifying watered tiles, mark neighboured canals and rivers dirty in more cases.
2008-01-29 14:17:13 +00:00
frosch
7cf4f09c26
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
2008-01-29 14:02:18 +00:00
frosch
cda0e9f91c
(svn r12011) -Fix [FS#1701]: Do not consider one-corner-raised-shores to be watered tiles from all sides.
2008-01-29 13:54:52 +00:00
smatz
379f89fc7e
(svn r12010) -Fix (r11994): build tramway window should use STR_WHITE_TRAMWAY_CONSTRUCTION
2008-01-29 13:52:55 +00:00
peter1138
b20d220333
(svn r12009) -Fix [FS#1707]: Avoid loading sample.cat if it 'looks' incorrect, and avoid later null pointer dereferences by moving volume lookup deeper.
2008-01-29 13:27:31 +00:00
miham
02f774793b
(svn r12008) -Update: WebTranslator2 update to 2008-01-29 14:07:31
...
brazilian_portuguese - 5 fixed, 5 changed by fukumori (4), tucalipe (6)
bulgarian - 7 fixed by thetitan (7)
catalan - 1 fixed by arnaullv (1)
danish - 9 fixed by ThomasA (9)
dutch - 5 fixed by habell (5)
estonian - 7 fixed, 12 changed by kristjans (19)
french - 1 fixed by glx (1)
german - 6 fixed by moewe2 (6)
italian - 1 fixed by lorenzodv (1)
korean - 6 fixed, 11 changed by leejaeuk5 (17)
russian - 9 fixed by Smoky555 (9)
slovak - 7 fixed by lengyel (7)
slovenian - 7 fixed by Necrolyte (7)
swedish - 6 fixed by ChrillDeVille (6)
ukrainian - 7 fixed by mad (7)
2008-01-29 13:13:19 +00:00
glx
fdd71514b2
(svn r12007) -Fix (r12003): win32 compilation was broken again ;)
2008-01-29 00:45:24 +00:00
rubidium
1629699094
(svn r12006) -Fix: implement FS#1697 without the nasty side effects as specified in FS#1712.
2008-01-29 00:36:55 +00:00
rubidium
c9a9103566
(svn r12005) -Fix [FS#1717]: possible reading from an invalid pointer. Patch by PhilSophus.
2008-01-29 00:29:28 +00:00
rubidium
3b2145aafe
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
2008-01-29 00:27:25 +00:00
rubidium
fde33b5547
(svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places.
2008-01-29 00:26:31 +00:00
peter1138
1a9b741e43
(svn r12002) -Cleanup (r11981): Remove obsolete code to skip sprites from indexed GRFs.
2008-01-28 17:51:45 +00:00
frosch
d3c7a35d22
(svn r12001) -Fix: When skipping Action 11 or 12, also skip belonging sprites.
2008-01-28 15:55:59 +00:00
frosch
abc6e70447
(svn r12000) -Fix (r11926): If no river NewGRF is loaded, use sloped water from locks.
2008-01-28 15:19:35 +00:00
frosch
a1b98cda59
(svn r11999) -Fix: Do entrance-slope-check for every tile of railstations.
2008-01-28 14:36:54 +00:00
smatz
a9031cc5f5
(svn r11998) -Fix [FS#1692](r10053): possible remote assert by setting bit 6 of p1 for CMD_REMOVE_ROAD
2008-01-28 12:40:31 +00:00
belugas
0253b1d02a
(svn r11997) -Fix(FS#1712, r11985): Remove the code temporary, until a better scheme is implemented.
2008-01-28 03:33:41 +00:00
smatz
c8ba8d930b
(svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero speed
2008-01-27 20:20:53 +00:00
maedhros
c5b81c9382
(svn r11995) -Cleanup (r11994): Change the string names in all the other languages.
2008-01-27 17:34:08 +00:00
maedhros
21eef65e77
(svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs.
2008-01-27 17:32:12 +00:00
peter1138
0847def759
(svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long.
2008-01-27 11:01:10 +00:00
bjarni
7b29dcde3c
(svn r11992) -Fix (r9905): When building two rail stations close to each other (with control) so they looked like one long track trains would see them as one (spotted and fixed by eddi)
2008-01-27 02:09:46 +00:00
peter1138
97a1cbdfa1
(svn r11991) -Cleanup: Remove strings removed in r11990
2008-01-26 22:41:24 +00:00
peter1138
c6656d6b2f
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
...
cargo waiting list instead of just one. The station view window is now
resizable to cope with the extra information.
2008-01-26 22:15:39 +00:00
peter1138
2fc2188127
(svn r11989) -Fix: Resize autoreplace window to fit purchase information text if it is too large.
2008-01-26 21:02:35 +00:00
peter1138
c99eb9e456
(svn r11988) -Codechange: Add a generic way of changing a widget's size and adjust the widgets around it to suit.
2008-01-26 20:55:04 +00:00
belugas
d3990083d3
(svn r11987) -Feature[newGRF]: Allow the industry view window to be resized only when callback 3A (Show additional text in industry window) is available for the current industry.
...
This now allows grf authors to specify longer than 3 lines of text.
2008-01-26 03:11:27 +00:00
belugas
e214e03c28
(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
2008-01-25 18:13:04 +00:00
frosch
b329781ab2
(svn r11984) -Fix: Also draw corner shores under rail tracks.
2008-01-25 16:51:35 +00:00
frosch
6f6708e844
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
2008-01-25 15:47:58 +00:00
frosch
d11aeb118c
(svn r11982) -Revert (r8738): Now we have shores in corners. No need to remove them from TTDP games.
2008-01-25 13:54:27 +00:00
peter1138
eeeeeb9336
(svn r11981) -Fix [FS#1698]: Use unicode glyph mapping to fix up missing/shuffled sprites in original data files instead of shuffling or skipping
...
sprites directly. Some required glyphs were not loaded.
-Fix: Large capital U with grave (Ù) along with some other glyphs are broken in the original data files, so do no display them.
2008-01-25 13:48:39 +00:00
rubidium
bbdc5a9314
(svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken in such a manner that it triggers an internal compiler error without any clue what of the code is wrong. Even trying to bisect the problem does not give a single line of code that causes the trouble.
2008-01-24 18:47:05 +00:00
skidd13
4991dcecc7
(svn r11978) -Codechange: Replace some global variables with window owned ones
2008-01-24 18:35:35 +00:00
belugas
44d085af6c
(svn r11977) -Fix(r11976): not a typo, not a bug. Just a removal that should have been done.
...
Would help to compile first...
2008-01-24 18:28:52 +00:00
belugas
1fc0c0d2dc
(svn r11976) -Fix: It seems that industries using results 0D/0E on callback cb29/35 were a bit too eager to close down.
2008-01-24 18:16:04 +00:00
frosch
da754951f1
(svn r11974) -Fix [FS#1684]: Shore and sea tiles under bridges were converted to canals in old savegames.
2008-01-24 14:57:43 +00:00
frosch
79aa7247c0
(svn r11973) -Fix (r11726, r11947)[FS#1683]: Use grass tiles for corner shores, if shores got replaced by ActionA.
2008-01-24 14:49:40 +00:00
smatz
5f9a877376
(svn r11972) -Fix: old AI shouldn't build fast planes with a small airport in orders
2008-01-24 14:22:10 +00:00
peter1138
697b07c99c
(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
2008-01-24 10:47:44 +00:00
peter1138
9c65bcea7d
(svn r11970) -Cleanup: Remove old comment
2008-01-24 10:41:12 +00:00
smatz
541247c830
(svn r11969) -Codechange: documentation update, there are no 'track bits under bridge' anymore
2008-01-23 23:22:47 +00:00
smatz
5a7c903770
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
2008-01-23 22:34:04 +00:00
smatz
b5641ae0f2
(svn r11967) -Fix (r1400): MP_ROAD can have railbits too - OPF searching over rail of diffent owner behind crossing
2008-01-23 20:02:30 +00:00
smatz
e40944f8e0
(svn r11966) -Fix: OPF was searching through depots and normal road stops
...
In effect, it also fixes old AI bugs like FS#1403 and FS#1506
2008-01-23 19:31:11 +00:00
smatz
4cb91fa591
(svn r11965) -Codechange: simplified tunnel/bridge code in TPFMode1
2008-01-23 18:24:04 +00:00
peter1138
b718cae67d
(svn r11964) -Fix [FS#1685]: Tropic zone data was returned incorrectly.
2008-01-23 17:45:48 +00:00
belugas
9c16461c29
(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
2008-01-23 17:40:37 +00:00
smatz
d6eaf1a11a
(svn r11962) -Cleanup: OPF is no longer used to update signals
2008-01-23 17:30:28 +00:00
belugas
4a3e135086
(svn r11961) -Feature[newGRF]: Add support for Action 0D, var 13: informations about current map size.
2008-01-23 17:08:35 +00:00
smatz
0b888ccc00
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
2008-01-23 14:51:36 +00:00
peter1138
9515328962
(svn r11959) -Codechange: Use macro to loop for specific engine types instead of using specific indexes each time.
...
-Codechange: Minor scope changes in said loops.
2008-01-23 13:20:51 +00:00
smatz
a31ebdb2be
(svn r11958) -Fix (r11204): NewAI couldn't build any road vehicles when there were any tram grfs loaded
2008-01-23 13:06:00 +00:00
peter1138
e35cf20a23
(svn r11957) -Codechange [FS#1678]: Minor simplification and optimisation when checking for available road/rail types (bilbo)
2008-01-23 09:43:53 +00:00
peter1138
0f966a316a
(svn r11956) -Fix [FS#1675]: Disallow building locks and docks on rapids.
2008-01-23 08:47:49 +00:00
peter1138
ff0891426f
(svn r11955) -Fix (r11926): Prevent bridge and tunnel ends being placed on rivers.
2008-01-23 08:28:19 +00:00
smatz
983fdb8a4f
(svn r11953) -Fix (r11172): do not allow modifying roadbits when other roadtypes would need different foundation
2008-01-23 00:36:48 +00:00
peter1138
da53070a38
(svn r11952) -Fix (r11926): Prevent industries from being built on rivers, unless they require water.
2008-01-22 22:17:28 +00:00
smatz
3a423a8747
(svn r11951) -Fix (r11279): loading of very old savegames was broken
2008-01-22 21:01:35 +00:00
peter1138
39f6173401
(svn r11949) -Codechange: add river icon and cursor, drawn by skidd13.
2008-01-22 20:04:30 +00:00
frosch
49d2087d7f
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
...
Tiles which only consist of shore do not flood anymore, instead they get removed if they are no longer connected to flooding water.
2008-01-22 17:48:08 +00:00
frosch
b99c83246b
(svn r11946) -Fix: slope detection of bridge ramps.
...
YAPF failed for steep slopes.
Trolly failed for a lot.
2008-01-22 16:08:17 +00:00
glx
7d1e3086b8
(svn r11945) -Fix: FileExists() failed for non latin paths (win32)
2008-01-22 15:47:40 +00:00
smatz
96a18d859f
(svn r11944) -Fix: allow building drive-through road/tram stops at road/tram track that has no owner
2008-01-22 15:40:29 +00:00
rubidium
59ec5e62ce
(svn r11943) -Codechange: add and use a simple structure to support small stacks by allocating it on the heap or pushing a few kB of data onto the stack when there is a large stack.
2008-01-22 12:09:12 +00:00
peter1138
30bac58bde
(svn r11942) -Codechange: Merge chars.grf into openttd[d|w].grf using action 12. Remove obsolete tables used for index mapping.
2008-01-22 08:47:30 +00:00
peter1138
ffec79bbcf
(svn r11940) -Codechange: Store short filename once per open file instead of once per sprite cache entry. Not all file types need this, but most of the time no sprite cache entry needed it either.
2008-01-22 07:27:06 +00:00
rubidium
9444eb4484
(svn r11939) -Codechange: some type fixes and very initial steps into supporting NDS by default. Based on work by Dominik.
2008-01-21 23:55:57 +00:00
peter1138
ca1b3e7b4e
(svn r11938) -Codechange: support loading of canal/river properties (though still ignored)
2008-01-21 20:41:04 +00:00
frosch
0a6425926b
(svn r11937) -Feature: Allow building bridge heads on more slopes.
...
These are SLOPE_NW, SLOPE_SW, SLOPE_SE, SLOPE_NE (with bridge perpendicular to the slope) and SLOPE_NS, SLOPE_EW.
2008-01-21 15:48:00 +00:00
frosch
f23e71f22f
(svn r11936) -Fix: 'BRIDGE_TOO_LOW_FOR_TERRAIN'-check was wrong for steep slopes.
2008-01-21 15:20:58 +00:00
bjarni
000117aa19
(svn r11935) -Fix (r11875)[FS#1672]: autosend aircraft to hangar for replacement check inverted the check for autorenew
...
Now it triggers when renew setting is on and only if it's on
Note: aircraft already enroute to hangars due to this bug will still go there. They will only head there once though
2008-01-21 10:31:27 +00:00
peter1138
9ca929c812
(svn r11934) -Codechange: add persistent random data for river and canal tiles.
2008-01-20 18:30:53 +00:00
miham
ffb9ca164e
(svn r11933) -Update: WebTranslator2 update to 2008-01-20 18:42:56
...
brazilian_portuguese - 2 fixed by fukumori (2)
catalan - 6 fixed by arnaullv (6)
croatian - 4 changed by blozo (4)
czech - 6 fixed by Hadez (6)
dutch - 2 fixed by habell (2)
french - 6 fixed by glx (6)
hungarian - 15 fixed by miham (15)
italian - 6 fixed by lorenzodv (6)
portuguese - 5 fixed, 2 changed by nars (7)
russian - 1 changed by HMage (1)
spanish - 3 fixed by eusebio (3)
2008-01-20 17:43:38 +00:00
belugas
2c5c97346b
(svn r11932) -Codechange: Forgot two occurences of widget enumification
2008-01-20 04:01:28 +00:00
belugas
3423032dbb
(svn r11931) -Codechange: enumify the widgets numbers. Give breathing room on the case switches too...
2008-01-20 03:56:15 +00:00
belugas
90a770250f
(svn r11930) -Codechange: a bit of code style application
2008-01-20 03:11:14 +00:00
bjarni
e91230415d
(svn r11929) -Fix (r9981)[FS#1624]: [autoreplace] fixed a case where a single headed locomotive caused an assert when being replaced to a dualheaded one
...
This triggered if the player had enough money to replace and refit one of them but not enough to refit the last one as well
2008-01-19 23:34:52 +00:00
bjarni
2f6ee3a4a1
(svn r11928) -Fix (r6393): [autoreplace] autoreplace could refit train engines to the wrong cargo type if the old engine had no cargo capacity and the new one had
...
Now autoreplace will always look at the wagons to figure out what to replace to (as originally intended)
2008-01-19 22:47:07 +00:00
peter1138
a580c8d059
(svn r11927) -Fix (r11926): unable to place canals in game
2008-01-19 18:24:20 +00:00
peter1138
4a2f7db99b
(svn r11926) -Feature: Rivers. Graphics must be provided by NewGRF else rivers are drawn as canals. Rivers can currently only be placed with-in the scenario editor.
2008-01-19 17:00:54 +00:00
rubidium
aa0412e0bc
(svn r11925) -Fix (r122, r9867): loading old, pre savegame version 2, savegames.
2008-01-19 14:00:04 +00:00
peter1138
02c9484ebb
(svn r11924) -Codechange: All dropdowns now use the dropdown widget, so compatibility code can be removed
2008-01-19 11:08:06 +00:00
glx
1712a8a0e1
(svn r11923) -Cleanup: Remove strings removed from english.txt in r11919
2008-01-18 22:55:02 +00:00
smatz
730dda867b
(svn r11922) -Codechange: use MaybeBarCrossingWithSound() to bar crossing with sound
2008-01-18 21:44:20 +00:00
peter1138
14416791af
(svn r11921) -Cleanup: correct indenting and switch case line spacing.
2008-01-18 21:33:19 +00:00
glx
600046f3d7
(svn r11920) -Fix (r11844): train count was incorrect in network lobby window (and 'players' command)
2008-01-18 21:25:18 +00:00
peter1138
b6d0684826
(svn r11919) -Codechange: Assign numbered parameters to world generator widgets to avoid separate DrawString()s, and do the same for the scenario flat-land window.
2008-01-18 21:08:40 +00:00
peter1138
70025a149d
(svn r11918) -Codechange: Draw engine lists at widget positions instead of fixed pixel positions
2008-01-18 18:18:39 +00:00
smatz
22a7b95c10
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
2008-01-18 14:48:57 +00:00
smatz
1d59439166
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
...
-Fix: refit button widget was not correctly updated
2008-01-18 13:02:47 +00:00
peter1138
68707808c0
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
2008-01-18 10:36:55 +00:00
glx
b7f50533c2
(svn r11914) -Documentation: fix some @file statement
2008-01-18 03:48:29 +00:00
smatz
0b3db1a92d
(svn r11913) -Fix (r11871): update signals after company bankrupt and disaster too
2008-01-18 02:16:39 +00:00
peter1138
307b0e8e7a
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
2008-01-17 21:57:20 +00:00
peter1138
ada41b7b3f
(svn r11911) -Codechange: use enum for autoreplace window widgets
2008-01-17 21:44:52 +00:00
smatz
8d077b16d8
(svn r11910) -Fix: play 'ding-ding' crossing sound in more cases (except gameload and crossing construction)
...
-Fix: crossing sound is bound to tile, not to vehicle
2008-01-17 20:41:33 +00:00
peter1138
ac0fa7f69f
(svn r11909) -Codechange: use dropdown widget for player livery, network lobby/setup and news settings windows
2008-01-17 20:00:13 +00:00
smatz
822242f411
(svn r11908) -Fix: update crossing when merging a company, when building a crossing and after loading older savegame
2008-01-17 19:49:06 +00:00
peter1138
35135222b5
(svn r11907) -Codechange: clean up of worldgen/heightmap ui: replace many separate DrawString() calls with widgets, use dropdown widgets, and use consistent positioning/sizing.
2008-01-17 19:41:05 +00:00
miham
17c9ea9ca3
(svn r11906) -Fix: fixed a typo in german language (reported by Botcher0)
2008-01-17 19:35:37 +00:00
peter1138
6d3aa07a24
(svn r11905) -Codechange: add widget enums for player finances and player livery windows
2008-01-17 19:12:53 +00:00
peter1138
d80e04d6f6
(svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
2008-01-17 18:49:39 +00:00
smatz
44a4ff835d
(svn r11903) -Fix: try to fix MorphOS compilation
2008-01-17 18:21:31 +00:00
peter1138
ad54075acc
(svn r11902) -Codechange: use new dropdown widget for game options window
2008-01-17 18:10:27 +00:00
peter1138
c313676c66
(svn r11901) -Add: add two widgets for dropdowns, one raised and one inset, to eventually replace use of two widgets for each dropdown control.
2008-01-17 18:09:15 +00:00
smatz
c74cf439fa
(svn r11900) -Fix: set correctly crossing state after train reversal, train leaving crossing, train crash
...
Fixes several ways to leave crossing red forever or to leave it unbarred when there is a train on crossing
2008-01-17 17:57:39 +00:00
frosch
35f3421842
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
2008-01-17 17:35:59 +00:00
frosch
c579bffed2
(svn r11898) -Fix: Update neighboured canals + signals when flooding non-flat tiles, too.
2008-01-17 17:13:47 +00:00
frosch
978a7ca56a
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
2008-01-17 16:55:13 +00:00
glx
4f31704e2e
(svn r11896) -Fix (r11886): a missing const broke compilation with MSVC
2008-01-17 16:46:41 +00:00
glx
f37174f0e2
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
2008-01-17 16:41:02 +00:00
peter1138
a9c71ce375
(svn r11894) -Cleanup: Remove strings removed from english.txt in r11893
2008-01-17 14:06:49 +00:00
peter1138
68fc3b35da
(svn r11893) -Codechange: build map size drop downs dynamically and remove unneeded strings
2008-01-17 14:00:17 +00:00
peter1138
f788298209
(svn r11892) -Fix (r11879): View switched from ungrouped to all vehicles as ungrouped is not technically a valid group, and ensure dropdown is removed
...
on any click in the window.
2008-01-17 13:37:28 +00:00
rubidium
08c01e64b8
(svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo.
2008-01-17 02:10:55 +00:00
glx
3d61a1adc5
(svn r11888) -Codechange: simplify sorting of the strings in town names dropdown
2008-01-17 02:10:26 +00:00
rubidium
f658b79e15
(svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI.
2008-01-17 02:09:34 +00:00
glx
69c18efdca
(svn r11886) -Add: sort the strings in languages dropdown
2008-01-17 00:21:43 +00:00
peter1138
4d9a9bf6ff
(svn r11885) -Cleanup: Remove gotos from widget drawing code. A side affect is that it is now possible for any widget type to be shown disabled.
2008-01-17 00:06:36 +00:00
peter1138
bc438a3033
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
2008-01-16 23:46:46 +00:00
smatz
c8178d43c1
(svn r11883) -Fix (r11864): assert when trying to remove rail from a house or industry tile
2008-01-16 22:26:45 +00:00
smatz
ac7bc24b0e
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
2008-01-16 21:17:31 +00:00
peter1138
69cb009075
(svn r11881) -Cleanup: Code style for global variables.
2008-01-16 18:34:53 +00:00
peter1138
330ec8bdd6
(svn r11880) -Codechange: Generate vehicle group action dropdown dynamically, and assign an enum for the function return codes.
2008-01-16 18:25:23 +00:00
peter1138
abac83795d
(svn r11879) -Fix: Only update group action drop down list when clicking on the dropdown text/button. Other times is not needed and caused a double free.
2008-01-16 17:43:46 +00:00
peter1138
019ffe29b8
(svn r11878) -Fix: Crash in MP in vehicle group window if the currently selected group is deleted by another player.
2008-01-16 16:52:50 +00:00
smatz
692fbb3c05
(svn r11877) -Fix: another way to crash competitors' train in a station
...
-Codechange: increase the speed train is approaching line end/semaphore in non-diagonal direction a bit
2008-01-16 15:48:36 +00:00
frosch
5659cbe6fe
(svn r11876) -Fix: Start industry tile animation also for overridden industry tiles. (Will only apply to new games or newly build industries.)
2008-01-16 15:06:48 +00:00
bjarni
beb1b07f5f
(svn r11875) -Fix: automatically sending aircraft to depot for autoreplace/renew is now triggered by the correct conditions
...
Now it triggers by the following conditions:
- aircraft is old enough for renew or needs to be autoreplaced
- player has 2*cost of new aircraft+autorenew money (we don't want to send many aircraft to hangars when there is only money for replacing one)
- aircraft has no hangars in it's order list
- new aircraft is buildable (imagine autorenewing a retired design)
This triggers right after a helicopter takes off or when a plane touches the ground while landing
Another effect of this change is that this functionality no longer generates network traffic
2008-01-16 13:59:08 +00:00
rubidium
2817e5425b
(svn r11874) -Fix [FS#1655]: all wagons of maglev/monorail trains would get the livery colour of the engine instead of their wagon type.
2008-01-16 11:25:15 +00:00