rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
2008-05-08 11:31:41 +00:00
bjarni
5a7fcf9aa3
(svn r13002) -Fix (r13001): [autoreplace] previous fix broke updating of a pointer to the front vehicle in certain cases
...
Now it's updated when it's the front vehicle and it's every time it's the front vehicle and only if it's the front vehicle (nomatter if the replacement works or not)
2008-05-07 23:00:11 +00:00
bjarni
addcd2bb2e
(svn r13001) -Fix [FS#1994](r12913): [autoreplace] we should stop working on vehicles right away if we fail to replace them and certainly not presume their data is valid
2008-05-07 22:08:20 +00:00
glx
d58b5e3caa
(svn r13000) -Fix (r12991): broken win9x compilation
2008-05-07 21:51:13 +00:00
rubidium
054552a30b
(svn r12999) -Fix [FS#1995]: when a Window got deleted on a double click event, we should not send a click event to the now non-existant Window as that causes segfaults.
2008-05-07 21:45:27 +00:00
smatz
8a422e34df
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
2008-05-07 18:31:29 +00:00
smatz
cc107fe0f9
(svn r12994) -Fix (r12976): another case main toolbar wasn't marked dirty
2008-05-07 18:14:09 +00:00
smatz
b6ec43896d
(svn r12993) -Fix (r11175): list used for sorting GRFs wasn't freed
2008-05-07 17:36:28 +00:00
smatz
7927da8fab
(svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed
2008-05-07 15:53:58 +00:00
glx
97cb66d099
(svn r12991) -Codechange: removed some unneeded includes
2008-05-07 14:12:20 +00:00
rubidium
c2256c46f1
(svn r12990) -Fix: silence the redundanct declaration warning when compiling with iconv.
2008-05-07 13:37:53 +00:00
rubidium
e38e1aa631
(svn r12989) -Codechange: move ViewportSign to viewport_type.h.
2008-05-07 13:18:33 +00:00
bjarni
c2a54a60bb
(svn r12988) -Fix [FS#1992](r12913): [autoreplace] failing to replace a road vehicle could free it's slot without the vehicle knowing it (leading to assert)
2008-05-07 13:11:33 +00:00
rubidium
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
e0e1bf76a2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
2008-05-07 09:07:19 +00:00
bjarni
3c82dd6550
(svn r12985) -Fix (r12977): [OSX] fixed missing includes in the cocoa files
2008-05-07 08:38:56 +00:00
rubidium
43328ced46
(svn r12984) -Codechange: some coding style in window.cpp.
2008-05-07 08:27:55 +00:00
belugas
343a1e6afd
(svn r12983) -Codechange [FS#1987] : Unification of all dynamite tools calls to only one. Thanks to Roujin
2008-05-07 00:04:40 +00:00
smatz
93861e78a3
(svn r12982) -Fix: compiler warning when compiling without asserts
2008-05-06 23:45:25 +00:00
glx
3ba47883c0
(svn r12981) -Codechange: remove some useless includes and defines
2008-05-06 23:43:47 +00:00
rubidium
6007500faf
(svn r12980) -Fix: MorphOS threading support. Patch by Fabien Coeurjoly.
2008-05-06 22:50:55 +00:00
rubidium
93441ad552
(svn r12978) -Codechange: "\\0" is not needed for the MorphOS revision string. Patch by tokai.
2008-05-06 22:41:28 +00:00
rubidium
c27f3cfa62
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
9db77e3808
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
2008-05-06 22:08:18 +00:00
rubidium
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
rubidium
7b6ce158fe
(svn r12974) -Codechange: check whether loading/saving highscores goes as it should be.
2008-05-06 21:07:47 +00:00
peter1138
9e977b78ff
(svn r12973) -Codechange: Rename GRMSpriteEntry to GRFLocation, as it is not necessarily specific to GRM sprites...
2008-05-06 17:24:27 +00:00
glx
4e29eedb85
(svn r12972) -Fix (r12971): forgot to close a comment
2008-05-06 15:36:55 +00:00
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
glx
1b9197d6dd
(svn r12970) -Codechange: coding style for some function names
2008-05-06 15:06:19 +00:00
rubidium
1ed3ea4705
(svn r12969) -Codechange: remove a completely pointless file.
2008-05-06 14:24:33 +00:00
maedhros
28e1da6c5d
(svn r12968) -Fix: Don't segfault when adding a server if 0.0.0.0 was entered for the address.
2008-05-06 10:31:50 +00:00
glx
3260abec08
(svn r12967) -Fix (r12966): my lang update script failed
2008-05-05 23:04:24 +00:00
glx
6509e5ff8a
(svn r12966) -Update: apply english.txt changes from r12965 to other languages
2008-05-05 22:52:49 +00:00
glx
7da190c1e0
(svn r12965) -Codechange: add support for callback 37 in industries directory window
2008-05-05 22:42:06 +00:00
glx
7f8f70f6f0
(svn r12964) -Codechange: rewrite callback 37 related code so it will be easier to add supported windows
2008-05-05 22:37:40 +00:00
rubidium
e7d125de58
(svn r12963) -Fix (r12960): loading some NewGRFs could cause an infinite loop.
2008-05-05 22:35:33 +00:00
smatz
19b20a7dde
(svn r12962) -Fix (r12961): forgot one break
2008-05-05 22:22:12 +00:00
smatz
2e0ec76007
(svn r12961) -Codechange: store the type of savegame we are loading in a global variable
2008-05-05 22:03:01 +00:00
rubidium
f2683a6037
(svn r12960) -Codechange: handle return values of (some) file system related functions.
2008-05-05 21:54:05 +00:00
glx
15ebb1a292
(svn r12959) -Fix: don't assume no production when the first produced cargo is invalid in industries directory
2008-05-05 21:09:03 +00:00
peter1138
e2c739551c
(svn r12958) -Codechange: Allocate sprites reserved by GRM in advance of 'Action 1' sprites, giving much less chance of GRM reservation failure if lots of NewGRF sets are loaded.
2008-05-05 19:02:10 +00:00
rubidium
41aeb7ffa0
(svn r12957) -Codechange: do not misuse snprintf when you just want to copy a string, also use DEBUG instead of fprintf in one case.
2008-05-05 18:27:57 +00:00
belugas
8580edbf20
(svn r12956) -Codechange: Code-style application on switch-case aligment
2008-05-05 16:05:36 +00:00
smatz
f0064d5165
(svn r12955) -Fix (r12858): compilation with desync debug was broken
2008-05-05 15:07:09 +00:00
peter1138
78c0929b18
(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items.
2008-05-05 11:36:43 +00:00
peter1138
7e70d9f09f
(svn r12952) -Cleanup: Indenting and codestyle
2008-05-05 11:24:58 +00:00
belugas
24bfbc9472
(svn r12951) -Fix(r9762)[FS#1977): Revert the new difficulty settings of town and industries back to their initial values.
2008-05-05 02:11:12 +00:00
belugas
dcdfb02130
(svn r12950) -Fix: two includes is one too much
2008-05-05 02:02:32 +00:00
rubidium
62259ff665
(svn r12949) -Fix [FS#1978]: no loading/no unloading orders were 'forgotten' during manual replaces.
2008-05-04 22:57:50 +00:00
rubidium
c878af4841
(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.
2008-05-04 22:38:18 +00:00
glx
5b1e423889
(svn r12947) -Fix: keep only first 15 bits for non failed callback results
2008-05-04 22:32:25 +00:00
rubidium
cdf9ada599
(svn r12946) -Fix: do not allocate the OldNames table when creating a new game as it won't be used anyway.
2008-05-04 22:19:44 +00:00
rubidium
a89f533e09
(svn r12945) -Fix: (small) memory leak when joining/exiting threads.
2008-05-04 22:13:47 +00:00
smatz
89a8dc8cf7
(svn r12944) -Codechange: use rev.h instead of externs at many places
2008-05-04 21:53:36 +00:00
rubidium
8fe14f7162
(svn r12943) -Fix: reading/modifying invalid data under some circumstances.
2008-05-04 21:47:36 +00:00
rubidium
4acb8f3a5e
(svn r12942) -Fix [FS#1979]: closing some windows caused recursion in the Window deletion causing the reading invalid/freed data which could cause crashes.
2008-05-04 21:36:37 +00:00
rubidium
0083ce9e1b
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
2008-05-04 10:05:50 +00:00
bjarni
63fea0790b
(svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should include the cargo packets in the vehicle as well
2008-05-04 10:05:35 +00:00
rubidium
b35100e2a9
(svn r12939) -Codechange: do not use the window proc to determine whether a toolbar is a rail toolbar, but use the window number.
2008-05-04 09:39:16 +00:00
rubidium
ec931ba5c6
(svn r12938) -Codechange: coding style fixes. Patch by Alberth.
2008-05-04 08:56:59 +00:00
rubidium
7c93f3bab8
(svn r12937) -Codechange: split allocating and finding the spot to place a window. Patch by Alberth.
2008-05-04 08:49:57 +00:00
rubidium
300c7e459a
(svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth.
2008-05-04 08:38:21 +00:00
rubidium
200e35cd8c
(svn r12935) -Fix [FS#1975]: vehicles forget their manual depot order when stopping at a station. Now we just pass through the station without stopping when a vehicle has been given a depot order.
2008-05-02 08:15:36 +00:00
belugas
5867336b6e
(svn r12934) -Codechange: Before verification of local authority, just make sure airport can physically be built there. Just moving tests
2008-05-02 02:06:57 +00:00
glx
5bd8b6adb0
(svn r12933) -Fix: minor errors related to industries accepted/produced cargo
2008-05-01 22:51:53 +00:00
peter1138
c8e10ac1f8
(svn r12932) -Fix [FS#1970]: Articulated engines ignored GRF engine overrides.
2008-04-30 17:42:08 +00:00
rubidium
f1820a5708
(svn r12930) -Add: build support for NetBSD and HP-UX. Patch by ahoka.
2008-04-30 07:39:46 +00:00
smatz
36bb91cc6d
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
2008-04-29 23:11:55 +00:00
peter1138
45034bc522
(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-29 21:31:29 +00:00
rubidium
6056d1fb31
(svn r12921) -Codechange: coding style fixes and documentation updates.
2008-04-29 18:19:29 +00:00
smatz
299b15c2bf
(svn r12920) -Fix (r12859): town rating was affected even after the test run
2008-04-29 18:08:14 +00:00
smatz
0ddb481a33
(svn r12919) -Fix [FS#1965]: flood road tiles even when there are road works in progress
2008-04-29 16:36:44 +00:00
rubidium
49ded3f2c3
(svn r12918) -Fix [FS#1963] (r12679): last airport would always be shown as buildable even when it was not.
2008-04-29 10:26:22 +00:00
peter1138
8bb0ff0a63
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
2008-04-29 07:11:54 +00:00
smatz
2d7430cf33
(svn r12916) -Fix: let ThreadObject_pthread::IsRunning() behave the same way as ThreadObject_Win32::IsRunning() does
2008-04-28 23:48:45 +00:00
smatz
6181451b13
(svn r12915) -Fix [FS#1960](r12857): don't initialize Station struct with tile=0, buoys will never change that value
2008-04-28 23:34:23 +00:00
peter1138
1a7c1cb84b
(svn r12914) -Fix: Game crash when a spectator/server tried to show an engine with no owner when a NewGRF requested a specific variable.
2008-04-28 11:15:13 +00:00
bjarni
783e20a263
(svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
...
Autoreplace uses this with the following benefits:
-Mass autoreplace (the button in the depot window) will now estimate costs correctly
-Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
Thanks to Ammler for testing this
2008-04-27 20:09:29 +00:00
bjarni
d6c971fd9b
(svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID
2008-04-27 18:05:48 +00:00
peter1138
2d5be0185f
(svn r12910) -Fix: Report reverse sprite status (FD/FE) to NewGRF for manually toggled vehicles.
2008-04-27 10:19:41 +00:00
smatz
bf3542e9f7
(svn r12906) -Fix: vehicle groups, engine replacement rules and player/company names were not properly reset/freed after bankrupt (before new player start)
2008-04-26 14:20:39 +00:00
smatz
f129ba40a7
(svn r12904) -Fix [FS#1953]: remove trams from savegames saved in OTTD without tram support, it is better than to simply crash
2008-04-25 16:33:40 +00:00
rubidium
81859bb7ad
(svn r12898) -Codechange: coding style in unmovable_cmd.cpp.
2008-04-25 15:25:28 +00:00
rubidium
60ed64e909
(svn r12897) -Codechange: some coding style in station_cmd.cpp.
2008-04-25 15:22:32 +00:00
glx
5d8ed6f1c2
(svn r12895) -Fix: restored Icelandic plural form and removed cases from Brazilian Portuguese (again)
2008-04-25 15:05:08 +00:00
rubidium
6ed5c01143
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
2008-04-25 06:15:58 +00:00
belugas
eff775d252
(svn r12875) -Codechange: Use defined const instead of cast magic
2008-04-24 18:30:41 +00:00
belugas
249ea61c7e
(svn r12874) -Codechange: The closest town is already known. Do not search for it again.
2008-04-24 18:17:53 +00:00
rubidium
4016d15bc7
(svn r12873) -Fix [FS#1946]: MSVC is whining because it doesn't understand that bytes should be cast to ints.
2008-04-24 17:53:45 +00:00
peter1138
33f85f80d0
(svn r12872) -Codechange: Remove obsolete unused engine list order function
2008-04-24 15:51:29 +00:00
smatz
0a83a43075
(svn r12870) -Codechange: remove some magic numbers from u.ship.state handling
2008-04-24 13:05:51 +00:00
rubidium
26cea31b1e
(svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable.
2008-04-24 11:11:50 +00:00
smatz
26206fa116
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
2008-04-24 09:55:20 +00:00
miham
1a26e29333
(svn r12861) -Update: WebTranslator2 update to 2008-04-24 10:49:17
...
brazilian_portuguese - 74 fixed, 2 changed by fukumori (38), tucalipe (38)
bulgarian - 59 fixed by thetitan (59)
catalan - 75 fixed by arnaullv (75)
czech - 70 fixed, 42 changed by Hadez (112)
danish - 46 fixed by MiR (46)
dutch - 75 fixed by habell (75)
estonian - 91 fixed, 33 changed by kristjans (124)
french - 74 fixed, 2 changed by glx (76)
italian - 76 fixed, 9 changed by lorenzodv (85)
latvian - 24 fixed, 39 changed by stripe4 (63)
russian - 86 fixed by Smoky555 (86)
slovak - 3 fixed by lengyel (3)
slovenian - 75 fixed by Necrolyte (75)
spanish - 91 fixed, 2 changed by eusebio (93)
swedish - 72 fixed by ChrillDeVille (72)
traditional_chinese - 82 fixed, 4 changed by xbddc (86)
ukrainian - 76 fixed, 36 changed by mad (112)
2008-04-24 08:53:04 +00:00
peter1138
6ac8ced9af
(svn r12860) -Fix [FS#1947]: Train depart animation trigger was not called in some cases.
2008-04-24 07:44:21 +00:00
rubidium
b2717d1426
(svn r12859) -Fix: make the town rating tests use less memory and much quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs.
2008-04-23 22:55:11 +00:00
rubidium
29ce273067
(svn r12858) -Add: small piece of code that can help hunting desyncs. Has to be enabled by --enable-desync-debug=1 though.
2008-04-23 22:17:33 +00:00
rubidium
2b85217bfe
(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
2008-04-23 22:16:41 +00:00
peter1138
7c8fe9791b
(svn r12856) -Fix: Taking r12377 further, ensure that prop 25 is set for all vehicles in the consist before other properties.
2008-04-23 21:55:24 +00:00
rubidium
d56827a9a9
(svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though.
2008-04-23 20:56:08 +00:00
smatz
a204a3b70e
(svn r12854) -Codechange: make drawing of rail catenary a bit faster
2008-04-23 20:22:31 +00:00
smatz
112afdf7d8
(svn r12853) -Fix: catenary on tunnel entrances and middle bridge pieces was drawn twice in some cases
2008-04-23 19:47:23 +00:00
smatz
ac0cfcde33
(svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles
2008-04-23 19:07:18 +00:00
glx
1461ba9d35
(svn r12850) -Fix (r12848): compilation was broken for some platforms
2008-04-23 13:36:52 +00:00
peter1138
b471c5d312
(svn r12848) -Cleanup/Codechange: Use correct variable types, don't prefix with _ for non-globals, and use implicit enum numbering.
2008-04-23 12:03:47 +00:00
peter1138
616cd60651
(svn r12847) -Cleanup: Identing and variable scope
2008-04-23 11:57:58 +00:00
rubidium
420b1b53d3
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
2008-04-23 00:16:21 +00:00
rubidium
97f78133d2
(svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway.
2008-04-23 00:14:49 +00:00
bjarni
80a0435ba8
(svn r12843) -Feature [FS#1945]: The autoreplace window is now resizable in both directions
...
The code to open this window is also unified for all vehicle types
2008-04-22 23:16:36 +00:00
glx
2c057b318e
(svn r12842) -Codechange [FS#1604]: scale message history by map size
2008-04-22 21:18:55 +00:00
peter1138
f767baba58
(svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically.
2008-04-22 18:20:41 +00:00
belugas
931aecda9f
(svn r12837) -Codechange: Alignment of widget array
2008-04-22 14:40:09 +00:00
rubidium
8637e6afa1
(svn r12836) -Fix: SunOS non-dedicated server compilation.
2008-04-21 23:04:05 +00:00
peter1138
a05e9b4c6b
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
2008-04-21 20:50:58 +00:00
frosch
f43661e790
(svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'.
2008-04-21 17:04:17 +00:00
rubidium
e947fde701
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-21 14:33:33 +00:00
rubidium
bbe13a0623
(svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey.
2008-04-21 13:45:03 +00:00
rubidium
5a17e6b395
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
2008-04-21 11:29:01 +00:00
rubidium
23c0017272
(svn r12816) -Fix: the cargo count in the performance rating window could be wrong.
2008-04-21 09:27:47 +00:00
rubidium
c5ac9ee678
(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
4ce50a0d64
(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
47ebab771f
(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
2008-04-21 07:57:51 +00:00
glx
9a8d9c4ae5
(svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace()
2008-04-20 21:49:57 +00:00
peter1138
dbb4dcaf5c
(svn r12809) -Fix (r1704): Possible out of bounds array access.
2008-04-20 21:38:20 +00:00
glx
4a4da1eedf
(svn r12808) -Fix: enforce autorenew values range in command
...
-Fix: typo in english.txt
2008-04-20 21:36:41 +00:00
rubidium
650651064b
(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
8186344628
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
2008-04-20 11:12:07 +00:00
rubidium
40b19f3997
(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
d010ae9408
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
2008-04-20 08:43:31 +00:00
rubidium
ba0532b595
(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
61ba65846a
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
2008-04-19 23:34:42 +00:00
peter1138
3b7558b89c
(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
fa4967d845
(svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own
2008-04-19 22:51:52 +00:00
rubidium
af5775a5ec
(svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did.
2008-04-19 21:51:05 +00:00
rubidium
a63974547b
(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
fa549be09e
(svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp
2008-04-19 19:01:57 +00:00
peter1138
2d659ac8bd
(svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln)
2008-04-19 18:03:24 +00:00
bjarni
db403cbe92
(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
44145548ea
(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
a9775dfcc9
(svn r12790) -Codechange: code style fixes. Patch by Alberth.
2008-04-19 13:28:48 +00:00
rubidium
51c7ba39a4
(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
99733b2b3e
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
2008-04-19 13:07:37 +00:00
rubidium
081f627018
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
2008-04-19 13:05:05 +00:00
rubidium
af34ce0b5d
(svn r12786) -Change: remove more function from functions.h.
2008-04-19 13:04:29 +00:00
rubidium
bfd2cac6e2
(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
0670ec6ee1
(svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp.
2008-04-19 10:18:38 +00:00
rubidium
1b867382d6
(svn r12783) -Codechange: do not statically allocate the 'temporary map3 array' in the oldloader.
2008-04-19 08:34:03 +00:00
rubidium
136e26925e
(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
312d54bc3b
(svn r12780) -Fix: the null blitter did segfault.
2008-04-18 23:32:10 +00:00
rubidium
7e5639ccea
(svn r12779) -Codechange: remove a few constants from openttd.h.
2008-04-18 21:49:38 +00:00
smatz
6813a17d15
(svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions
2008-04-18 21:38:36 +00:00
smatz
3fe8c58257
(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
cd7536123b
(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
36d3553b9b
(svn r12773) -Codechange: replace some magic numbers with enums.
2008-04-18 19:26:52 +00:00
rubidium
c7e2ca8cfd
(svn r12772) -Codechange: some vehicle.cpp coding style.
2008-04-18 17:53:06 +00:00
rubidium
6d25cd50dd
(svn r12771) -Codechange: remove more from variables.h.
2008-04-18 16:51:54 +00:00
rubidium
5c5bd70284
(svn r12769) -Codechange: some coding style cleanups.
2008-04-18 15:18:16 +00:00
rubidium
44128682cf
(svn r12768) -Codechange: move the statusbar GUI to it's own file.
2008-04-18 15:13:45 +00:00
rubidium
bc37ae3f2a
(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
8857f5057f
(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
d46d8d9c9d
(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
f4b07a78c4
(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
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
belugas
d2b55e7afd
(svn r12760) -Fix(r12759): Remove a now useless comment
2008-04-18 03:20:59 +00:00
belugas
13dcf2ed7e
(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
ed497b4fa7
(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
18e64b28e2
(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
fa4b5b1c18
(svn r12756) -Cleanup: variable scope and coding style in station*
2008-04-17 20:03:28 +00:00
glx
72c16c4de7
(svn r12755) -Fix (r12706): aborting map generation was not properly handled
2008-04-17 19:53:13 +00:00
rubidium
6d063c3ad6
(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
ec588da9e8
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
2008-04-17 18:24:45 +00:00
rubidium
b0e687f60c
(svn r12752) -Codechange: replace some magic constants in player_gui.cpp. Patch by Yexo.
2008-04-17 18:12:53 +00:00
rubidium
6dc210b171
(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
c7357bee94
(svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly.
2008-04-17 11:25:12 +00:00
rubidium
2752568d61
(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
9c3725827a
(svn r12747) -Codechange: Add varaction retrieval of station animation frame
2008-04-17 06:53:52 +00:00
peter1138
757d61b22f
(svn r12746) -Codechange: Add map storage for station animation frame
2008-04-17 06:52:56 +00:00
smatz
966e476df8
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
2008-04-17 00:44:20 +00:00
rubidium
61074c4bf8
(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
34f4150b15
(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
1eac80f840
(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
71ebefbbd7
(svn r12738) -Fix (r12736): some sprites could be left unsorted
2008-04-16 19:36:30 +00:00
peter1138
efdf8b8c8a
(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
47365fee11
(svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp.
2008-04-16 18:28:05 +00:00
rubidium
878a7c9ab1
(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
26dcf25238
(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
aedde3ab4a
(svn r12733) -Codechange: Merge two more Widgets arrays (town views ) into one.
2008-04-16 03:05:56 +00:00
smatz
867566f7f0
(svn r12731) -Fix (r12726): copying a 16bit array into 32bit wouldn't work
2008-04-15 23:07:06 +00:00
rubidium
08894026da
(svn r12726) -Fix [FS#1877]: overflow causing strange building behaviour in towns.
2008-04-15 22:27:28 +00:00
frosch
91e53e23ca
(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
93afe81001
(svn r12716) -Fix: Do not compare StationIDs with DepotIDs or WaypointIDs.
2008-04-15 12:25:35 +00:00
rubidium
bd3e5d9c43
(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
5766d4a5c0
(svn r12713) -Fix: misleading comment. Patch by Yexo.
2008-04-14 21:49:13 +00:00
glx
90bd1e45eb
(svn r12711) -Codechange: remove unneeded loops
2008-04-14 20:48:17 +00:00
rubidium
52d83de8d8
(svn r12709) -Feature: show the last joined server. Heavily based on a patch by Yexo.
2008-04-14 20:31:21 +00:00
glx
f63bd286e0
(svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista
2008-04-14 20:14:32 +00:00
rubidium
253a95777c
(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
d022d4af3d
(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
bf1d42c23d
(svn r12705) -Codechange: enumification of some more widgets
2008-04-14 17:50:15 +00:00
belugas
7e601e6bd2
(svn r12704) -Codechange: code style cleanup, mostly switch case alignment
2008-04-14 17:06:36 +00:00
rubidium
cf00e8e1d9
(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
c4496d78e5
(svn r12700) -Cleanup (r12699): Remove an unused string.
2008-04-14 12:42:01 +00:00
maedhros
b0629b31fa
(svn r12699) -Codechange: Unify the order drawing code for orders and timetables.
2008-04-14 12:40:09 +00:00
rubidium
760a57867f
(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
60102c9d73
(svn r12697) -Codechange: give signs_gui.cpp a touch of coding style.
2008-04-13 22:25:18 +00:00
rubidium
b6ce235700
(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
8ab49198b9
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
2008-04-13 19:25:14 +00:00
rubidium
1fe1b5da80
(svn r12694) -Fix: do not call the mouse over callback on already deleted windows.
2008-04-13 19:06:30 +00:00
rubidium
99b51aa235
(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
c36d613b9b
(svn r12692) -Codechange: swap to functions to remove a function declaration.
2008-04-13 18:59:32 +00:00
glx
5a6014d7e3
(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
2008-04-13 17:59:43 +00:00
smatz
b18f330739
(svn r12690) -Cleanup: remove unused table from tgp.cpp
2008-04-13 17:27:36 +00:00
rubidium
a277d2df86
(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
79f4d763ed
(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
22353393cd
(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
0b3a78b927
(svn r12686) -Fix: MSVC signed/unsigned warning
2008-04-13 15:07:36 +00:00
smatz
821ef83af9
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
2008-04-13 14:19:08 +00:00
rubidium
67bb680d26
(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
48d95252d5
(svn r12683) -Fix [FS#1906]: in some cases a news messages would not be shown.
2008-04-13 11:15:48 +00:00
rubidium
1078bc7dd0
(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
6d04b589d8
(svn r12681) -Fix [FS#1921]: aircraft stopping mid-air.
2008-04-13 10:26:39 +00:00
belugas
03f9718489
(svn r12679) -Codechange : a little bit of widget enumification
2008-04-13 01:51:12 +00:00
rubidium
ef1bf22d59
(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
3f7327fcb2
(svn r12676) -Codechange: Reinstate colour selection buses, absent since r6455.
2008-04-12 22:19:34 +00:00
peter1138
66783add65
(svn r12675) -Codechange: Add support for custom drawing of drop down list items.
2008-04-12 22:12:27 +00:00
peter1138
5d755429b4
(svn r12674) -Fix [FS#1902]: Colour remaps on station sprites only worked for company colours.
2008-04-12 22:11:21 +00:00
peter1138
9e69877e70
(svn r12672) -Codechange: Add support for variably-sized drop down list items.
2008-04-12 20:32:18 +00:00
smatz
6a661582d4
(svn r12671) -Fix (r12644): orders window of competitors' vehicles was missing a resizebox
2008-04-12 20:15:57 +00:00
rubidium
7ea682d6eb
(svn r12670) -Add: unconditional/always order 'jump/skip' variable.
2008-04-12 13:07:25 +00:00
rubidium
fec2550803
(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
85354456b9
(svn r12668) -Fix (12667): swapping of variables went wrong.
2008-04-12 12:19:53 +00:00
rubidium
0e40b1013c
(svn r12667) -Feature: conditional 'skip/jump' orders.
2008-04-12 11:58:19 +00:00
rubidium
d02f46b959
(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
5c8444638e
(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
02f8281ce2
(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
89ff74fa73
(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
b21b003f90
(svn r12662) -Codechange: Comment-code style application
2008-04-11 18:00:51 +00:00
rubidium
6fa7001531
(svn r12661) -Add: ability to send a vehicle (using default orders) to the nearest depot.
2008-04-11 15:58:46 +00:00
rubidium
48703f69f4
(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
3c7e23fa8c
(svn r12659) -Cleanup: some style cleanups in vehicle.cpp.
2008-04-11 13:19:44 +00:00
rubidium
daf5a2f1bc
(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.
2008-04-11 08:40:10 +00:00
rubidium
aa8a5b2c39
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
2008-04-11 08:14:43 +00:00
rubidium
23465fa7c4
(svn r12656) -Fix: tooltips for some order buttons are outdated/incorrect.
2008-04-10 22:18:33 +00:00
rubidium
1059f1e9f6
(svn r12655) -Change: show the current state in the drop down 'buttons'.
2008-04-10 22:17:06 +00:00
rubidium
39c5c448b9
(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
bdf606967f
(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
4ad8b95dcc
(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
3badd38914
(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
2964ba2d34
(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
00d5b516bf
(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
e61dcab79d
(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
79cb5ec1c7
(svn r12647) -Codechange: Ooops... Too fast on the job... forgot to indent 3 lines
2008-04-10 02:23:38 +00:00
belugas
3491a3346e
(svn r12646) -Codechange: another run of code-style cleanup
2008-04-10 02:14:14 +00:00
belugas
032924dbd6
(svn r12645) -Codechange: a bit of code-style cleanup
2008-04-10 02:10:26 +00:00
rubidium
845c5d0a49
(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
73392ba85e
(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
183145c0dc
(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
2008-04-09 21:33:36 +00:00
rubidium
2db9a59d8e
(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
2e4044ac81
(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
c93e1293cb
(svn r12639) -Fix: order window was not marked dirty on changed orders.
2008-04-09 17:48:22 +00:00
rubidium
3274ca604f
(svn r12638) -Codechange: give order_gui.cpp a touch of coding style.
2008-04-09 16:16:04 +00:00
rubidium
cd23dd64bf
(svn r12637) -Fix [FS#1913]: possible NULL pointer dereference when reading some NewGRF data.
2008-04-09 14:05:50 +00:00
rubidium
16edbb8635
(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
70dc7edd92
(svn r12635) -Codechange: a bit of a code-style cleanup
2008-04-09 02:16:04 +00:00
belugas
5e11fec66b
(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
d7afec34ac
(svn r12633) -Fix: could not make a (go-to) depot order.
2008-04-08 22:41:14 +00:00
smatz
adc84cd786
(svn r12632) -Fix (r12547): with invisible catenary, trams were be drawn over a bridge
2008-04-08 21:28:47 +00:00
rubidium
c1e6cdbef7
(svn r12631) -Fix [FS#1911]: sometimes aircraft couldn't find their way to their depot.
2008-04-08 18:53:25 +00:00
maedhros
49a515f210
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
2008-04-08 16:15:31 +00:00
frosch
b91781b715
(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
4267797cc8
(svn r12628) -Fix: TTDP compatible non-stop wasn't handled properly.
2008-04-08 13:32:44 +00:00
peter1138
d577b0504a
(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
5967f5b379
(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
337c92090b
(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
2008-04-07 21:02:27 +00:00
rubidium
1dc0af3248
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
2008-04-07 20:28:58 +00:00
rubidium
16cb871398
(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
973997e896
(svn r12617) -Codechange: add type safety to the Order's load and unload types.
2008-04-07 20:03:46 +00:00
smatz
f35612bd21
(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
cf250390c5
(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
0017149c33
(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
c6e8bf41a1
(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.
2008-04-07 15:04:00 +00:00
smatz
7dc63836ea
(svn r12605) -Cleanup: variable scope and coding style in train*
2008-04-07 12:36:50 +00:00
rubidium
4b7ca97056
(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
fcdd44b662
(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
76eaed68a0
(svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining
2008-04-06 23:49:45 +00:00
rubidium
bd432258cb
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
2008-04-06 22:32:20 +00:00
rubidium
949762fc65
(svn r12595) -Codechange: hide Order's flags in the last few cases.
2008-04-06 21:54:22 +00:00
smatz
aaabd59369
(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
53d101cc99
(svn r12593) -Codechange: hide Order's flags in most of the code.
2008-04-06 15:09:45 +00:00
rubidium
e150643d31
(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
54630d0735
(svn r12591) -Codechange: move CommandCost accessors to header file, 8kB of binary size saved
2008-04-06 14:50:37 +00:00
rubidium
935b562074
(svn r12588) -Codechange: do not access the destination of an order directly.
2008-04-06 07:48:51 +00:00
rubidium
a3224512cc
(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
3edb967ecf
(svn r12586) -Codechange: do not access an order's refit variables directly.
2008-04-06 07:07:21 +00:00
rubidium
84e3fa75e1
(svn r12585) -Fix (r12584): assumption that assertions were enabled during compilation/testing was flawed.
2008-04-05 23:46:01 +00:00
rubidium
3b0e3d8d30
(svn r12584) -Codechange: do not access the order type directly.
2008-04-05 23:36:54 +00:00
rubidium
4ff5d2057c
(svn r12583) -Codechange: make AssignOrder a class function of order.
2008-04-05 21:45:05 +00:00
rubidium
21ae6fa444
(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