belugas
931aecda9f
(svn r12837) -Codechange: Alignment of widget array
17 years ago
rubidium
8637e6afa1
(svn r12836) -Fix: SunOS non-dedicated server compilation.
17 years ago
peter1138
a05e9b4c6b
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
17 years ago
frosch
f43661e790
(svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'.
17 years ago
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.
17 years ago
rubidium
bbe13a0623
(svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey.
17 years ago
rubidium
5a17e6b395
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
17 years ago
rubidium
23c0017272
(svn r12816) -Fix: the cargo count in the performance rating window could be wrong.
17 years ago
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.
17 years ago
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.
17 years ago
rubidium
47ebab771f
(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
17 years ago
glx
9a8d9c4ae5
(svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace()
17 years ago
peter1138
dbb4dcaf5c
(svn r12809) -Fix (r1704): Possible out of bounds array access.
17 years ago
glx
4a4da1eedf
(svn r12808) -Fix: enforce autorenew values range in command
...
-Fix: typo in english.txt
17 years ago
rubidium
650651064b
(svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan.
17 years ago
rubidium
8186344628
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
17 years ago
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.
17 years ago
rubidium
d010ae9408
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
17 years ago
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.
17 years ago
peter1138
61ba65846a
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
17 years ago
peter1138
3b7558b89c
(svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes)
17 years ago
bjarni
fa4967d845
(svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own
17 years ago
rubidium
af5775a5ec
(svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did.
17 years ago
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.
17 years ago
bjarni
fa549be09e
(svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp
17 years ago
peter1138
2d659ac8bd
(svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln)
17 years ago
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)
17 years ago
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()
17 years ago
rubidium
a9775dfcc9
(svn r12790) -Codechange: code style fixes. Patch by Alberth.
17 years ago
rubidium
51c7ba39a4
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
17 years ago
rubidium
99733b2b3e
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
17 years ago
rubidium
081f627018
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
17 years ago
rubidium
af34ce0b5d
(svn r12786) -Change: remove more function from functions.h.
17 years ago
rubidium
bfd2cac6e2
(svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan.
17 years ago
rubidium
0670ec6ee1
(svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp.
17 years ago
rubidium
1b867382d6
(svn r12783) -Codechange: do not statically allocate the 'temporary map3 array' in the oldloader.
17 years ago
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.
17 years ago
rubidium
312d54bc3b
(svn r12780) -Fix: the null blitter did segfault.
17 years ago
rubidium
7e5639ccea
(svn r12779) -Codechange: remove a few constants from openttd.h.
17 years ago
smatz
6813a17d15
(svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions
17 years ago
smatz
3fe8c58257
(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute
17 years ago
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.
17 years ago
rubidium
36d3553b9b
(svn r12773) -Codechange: replace some magic numbers with enums.
17 years ago
rubidium
c7e2ca8cfd
(svn r12772) -Codechange: some vehicle.cpp coding style.
17 years ago
rubidium
6d25cd50dd
(svn r12771) -Codechange: remove more from variables.h.
17 years ago
rubidium
5c5bd70284
(svn r12769) -Codechange: some coding style cleanups.
17 years ago
rubidium
44128682cf
(svn r12768) -Codechange: move the statusbar GUI to it's own file.
17 years ago
rubidium
bc37ae3f2a
(svn r12767) -Codechange: merge all main toolbar related functions into a single file instead of scattering the functionality over several files.
17 years ago
rubidium
8857f5057f
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
17 years ago
rubidium
d46d8d9c9d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
17 years ago
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).
17 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
belugas
d2b55e7afd
(svn r12760) -Fix(r12759): Remove a now useless comment
17 years ago
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.
17 years ago
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.
17 years ago
rubidium
18e64b28e2
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
17 years ago
smatz
fa4b5b1c18
(svn r12756) -Cleanup: variable scope and coding style in station*
17 years ago
glx
72c16c4de7
(svn r12755) -Fix (r12706): aborting map generation was not properly handled
17 years ago
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.
17 years ago
smatz
ec588da9e8
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
17 years ago
rubidium
b0e687f60c
(svn r12752) -Codechange: replace some magic constants in player_gui.cpp. Patch by Yexo.
17 years ago
rubidium
6dc210b171
(svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory.
17 years ago
rubidium
c7357bee94
(svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly.
17 years ago
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.
17 years ago
peter1138
9c3725827a
(svn r12747) -Codechange: Add varaction retrieval of station animation frame
17 years ago
peter1138
757d61b22f
(svn r12746) -Codechange: Add map storage for station animation frame
17 years ago
smatz
966e476df8
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
17 years ago
rubidium
61074c4bf8
(svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this.
17 years ago
rubidium
34f4150b15
(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.
17 years ago
rubidium
1eac80f840
(svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw.
17 years ago
smatz
71ebefbbd7
(svn r12738) -Fix (r12736): some sprites could be left unsorted
17 years ago
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.
17 years ago
rubidium
47365fee11
(svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp.
17 years ago
rubidium
878a7c9ab1
(svn r12735) -Codechange: use a vector instead of allocating memory in a byte array for TileSpriteToDraw.
17 years ago
rubidium
26dcf25238
(svn r12734) -Codechange: use a vector instead of allocating memory in a big byte array for StringSpriteToDraw.
17 years ago
belugas
aedde3ab4a
(svn r12733) -Codechange: Merge two more Widgets arrays (town views ) into one.
17 years ago
smatz
867566f7f0
(svn r12731) -Fix (r12726): copying a 16bit array into 32bit wouldn't work
17 years ago
rubidium
08894026da
(svn r12726) -Fix [FS#1877]: overflow causing strange building behaviour in towns.
17 years ago
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.
17 years ago
frosch
93afe81001
(svn r12716) -Fix: Do not compare StationIDs with DepotIDs or WaypointIDs.
17 years ago
rubidium
bd3e5d9c43
(svn r12714) -Fix [FS#1904]: do not move windows below the toolbar on resizes unless they would go behind the toolbar.
17 years ago
rubidium
5766d4a5c0
(svn r12713) -Fix: misleading comment. Patch by Yexo.
17 years ago
glx
90bd1e45eb
(svn r12711) -Codechange: remove unneeded loops
17 years ago
rubidium
52d83de8d8
(svn r12709) -Feature: show the last joined server. Heavily based on a patch by Yexo.
17 years ago
glx
f63bd286e0
(svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista
17 years ago
rubidium
253a95777c
(svn r12707) -Fix: do not crash very hard on unrecognised savegames, just go back to the intro menu instead.
17 years ago
rubidium
d022d4af3d
(svn r12706) -Merge: the thread rewrite from NoAI. The rewrite makes the threading we have better extendable.
17 years ago
belugas
bf1d42c23d
(svn r12705) -Codechange: enumification of some more widgets
17 years ago
belugas
7e601e6bd2
(svn r12704) -Codechange: code style cleanup, mostly switch case alignment
17 years ago
rubidium
cf00e8e1d9
(svn r12701) -Codechange: do not explicitly number a widget enum because that causes a big diff when adding something.
17 years ago
maedhros
c4496d78e5
(svn r12700) -Cleanup (r12699): Remove an unused string.
17 years ago
maedhros
b0629b31fa
(svn r12699) -Codechange: Unify the order drawing code for orders and timetables.
17 years ago
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.
17 years ago
rubidium
60102c9d73
(svn r12697) -Codechange: give signs_gui.cpp a touch of coding style.
17 years ago
rubidium
b6ce235700
(svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems.
17 years ago
rubidium
8ab49198b9
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
17 years ago
rubidium
1fe1b5da80
(svn r12694) -Fix: do not call the mouse over callback on already deleted windows.
17 years ago
rubidium
99b51aa235
(svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert.
17 years ago
rubidium
c36d613b9b
(svn r12692) -Codechange: swap to functions to remove a function declaration.
17 years ago
glx
5a6014d7e3
(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
17 years ago
smatz
b18f330739
(svn r12690) -Cleanup: remove unused table from tgp.cpp
17 years ago
rubidium
a277d2df86
(svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles.
17 years ago
rubidium
79f4d763ed
(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
17 years ago
rubidium
22353393cd
(svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading.
17 years ago
glx
0b3a78b927
(svn r12686) -Fix: MSVC signed/unsigned warning
17 years ago
smatz
821ef83af9
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
17 years ago
rubidium
67bb680d26
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
17 years ago
rubidium
48d95252d5
(svn r12683) -Fix [FS#1906]: in some cases a news messages would not be shown.
17 years ago
rubidium
1078bc7dd0
(svn r12682) -Fix [FS#1920]: removing road pieces from a town gave you twice the intended penalty.
17 years ago
rubidium
6d04b589d8
(svn r12681) -Fix [FS#1921]: aircraft stopping mid-air.
17 years ago
belugas
03f9718489
(svn r12679) -Codechange : a little bit of widget enumification
17 years ago
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.
17 years ago
peter1138
3f7327fcb2
(svn r12676) -Codechange: Reinstate colour selection buses, absent since r6455.
17 years ago
peter1138
66783add65
(svn r12675) -Codechange: Add support for custom drawing of drop down list items.
17 years ago
peter1138
5d755429b4
(svn r12674) -Fix [FS#1902]: Colour remaps on station sprites only worked for company colours.
17 years ago
peter1138
9e69877e70
(svn r12672) -Codechange: Add support for variably-sized drop down list items.
17 years ago
smatz
6a661582d4
(svn r12671) -Fix (r12644): orders window of competitors' vehicles was missing a resizebox
17 years ago
rubidium
7ea682d6eb
(svn r12670) -Add: unconditional/always order 'jump/skip' variable.
17 years ago
rubidium
fec2550803
(svn r12669) -Fix (r12667): crash when a vehicle has never been to a station and the load percentage conditional variable is evaluated.
17 years ago
rubidium
85354456b9
(svn r12668) -Fix (12667): swapping of variables went wrong.
17 years ago
rubidium
0e40b1013c
(svn r12667) -Feature: conditional 'skip/jump' orders.
17 years ago
rubidium
d02f46b959
(svn r12666) -Fix: the time table GUI did not show some data in the correct manner.
17 years ago
rubidium
5c8444638e
(svn r12665) -Codechange: make the internal speed <-> display speed conversions available to a bigger part of the code.
17 years ago
rubidium
02f8281ce2
(svn r12664) -Codechange: do not force the 'color' pointer to be non-NULL when trying to get the load percentage.
17 years ago
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.
17 years ago
belugas
b21b003f90
(svn r12662) -Codechange: Comment-code style application
17 years ago
rubidium
6fa7001531
(svn r12661) -Add: ability to send a vehicle (using default orders) to the nearest depot.
17 years ago
rubidium
48703f69f4
(svn r12660) -Codechange: make the creation of depot order strings a little more modular (instead of causing a string explosion).
17 years ago
rubidium
3c7e23fa8c
(svn r12659) -Cleanup: some style cleanups in vehicle.cpp.
17 years ago
rubidium
daf5a2f1bc
(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.
17 years ago
rubidium
aa8a5b2c39
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
17 years ago
rubidium
23465fa7c4
(svn r12656) -Fix: tooltips for some order buttons are outdated/incorrect.
17 years ago
rubidium
1059f1e9f6
(svn r12655) -Change: show the current state in the drop down 'buttons'.
17 years ago
rubidium
39c5c448b9
(svn r12654) -Codechange: remove some unneeded right click handling due to the splitting of the load/refit button.
17 years ago
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.
17 years ago
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.
17 years ago
peter1138
3badd38914
(svn r12651) -Fix (r12644) [FS#1915]: Dropdown widget width should be one pixel less than window width, not one more.
17 years ago
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.
17 years ago
rubidium
00d5b516bf
(svn r12649) -Fix: refit orders not being shown.
...
-Fix: unusable non-stop orders shown for waypoints and depots.
17 years ago
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.
17 years ago
belugas
79cb5ec1c7
(svn r12647) -Codechange: Ooops... Too fast on the job... forgot to indent 3 lines
17 years ago
belugas
3491a3346e
(svn r12646) -Codechange: another run of code-style cleanup
17 years ago
belugas
032924dbd6
(svn r12645) -Codechange: a bit of code-style cleanup
17 years ago
rubidium
845c5d0a49
(svn r12644) -Codechange: rework the order gui a little to prepare it for some future changes.
17 years ago
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).
17 years ago
smatz
183145c0dc
(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
17 years ago
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.
17 years ago
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.
17 years ago
rubidium
c93e1293cb
(svn r12639) -Fix: order window was not marked dirty on changed orders.
17 years ago
rubidium
3274ca604f
(svn r12638) -Codechange: give order_gui.cpp a touch of coding style.
17 years ago
rubidium
cd23dd64bf
(svn r12637) -Fix [FS#1913]: possible NULL pointer dereference when reading some NewGRF data.
17 years ago
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.
17 years ago
belugas
70dc7edd92
(svn r12635) -Codechange: a bit of a code-style cleanup
17 years ago
belugas
5e11fec66b
(svn r12634) -Feature: Financial and Player Selection Face windows are now remembering their position when toggling sizes
17 years ago
rubidium
d7afec34ac
(svn r12633) -Fix: could not make a (go-to) depot order.
17 years ago
smatz
adc84cd786
(svn r12632) -Fix (r12547): with invisible catenary, trams were be drawn over a bridge
17 years ago
rubidium
c1e6cdbef7
(svn r12631) -Fix [FS#1911]: sometimes aircraft couldn't find their way to their depot.
17 years ago
maedhros
49a515f210
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
17 years ago
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.
17 years ago
rubidium
4267797cc8
(svn r12628) -Fix: TTDP compatible non-stop wasn't handled properly.
17 years ago
peter1138
d577b0504a
(svn r12624) -Codechange: Make drawing of catenary an attribute of rail types, instead of deciding by the rail type directly.
17 years ago
rubidium
5967f5b379
(svn r12622) -Fix: infinite loop in case your compiler decides that enums are unsigned by default. Patch by Dominik.
17 years ago
rubidium
337c92090b
(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
17 years ago
rubidium
1dc0af3248
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
17 years ago
rubidium
16cb871398
(svn r12618) -Codechange: as load and unload type are now split, some case statements got ugly.
17 years ago
rubidium
973997e896
(svn r12617) -Codechange: add type safety to the Order's load and unload types.
17 years ago
smatz
f35612bd21
(svn r12616) -Codechange: r12591 didn't work as expected for NDS, move one function back to cpp
17 years ago
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.
17 years ago
belugas
0017149c33
(svn r12609) -Codechange: Remove wrong comments and give more comments on the drawing part of subsidies
17 years ago
rubidium
c6e8bf41a1
(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.
17 years ago
smatz
7dc63836ea
(svn r12605) -Cleanup: variable scope and coding style in train*
17 years ago
rubidium
4b7ca97056
(svn r12601) -Fix (r12587): do not reset the index of orders (causes loading ancient savegames to loop infinitively.
17 years ago
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.
17 years ago
smatz
76eaed68a0
(svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining
17 years ago
rubidium
bd432258cb
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
17 years ago
rubidium
949762fc65
(svn r12595) -Codechange: hide Order's flags in the last few cases.
17 years ago
smatz
aaabd59369
(svn r12594) -Codechange: move large functions from driver.h to driver.cpp to reduce binary size and compile time
17 years ago
rubidium
53d101cc99
(svn r12593) -Codechange: hide Order's flags in most of the code.
17 years ago
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.
17 years ago
smatz
54630d0735
(svn r12591) -Codechange: move CommandCost accessors to header file, 8kB of binary size saved
17 years ago
rubidium
935b562074
(svn r12588) -Codechange: do not access the destination of an order directly.
17 years ago
rubidium
a3224512cc
(svn r12587) -Codechange: unduplicate some code in the Unpack*Order functions and move the 'normal' case Pack/Unpack to Order.
17 years ago
rubidium
3edb967ecf
(svn r12586) -Codechange: do not access an order's refit variables directly.
17 years ago
rubidium
84e3fa75e1
(svn r12585) -Fix (r12584): assumption that assertions were enabled during compilation/testing was flawed.
17 years ago
rubidium
3b0e3d8d30
(svn r12584) -Codechange: do not access the order type directly.
17 years ago
rubidium
4ff5d2057c
(svn r12583) -Codechange: make AssignOrder a class function of order.
17 years ago
rubidium
21ae6fa444
(svn r12582) -Codechange: move some (needlessly) static inlined functions from order_base.h to order_cmd.cpp.
17 years ago
rubidium
b5a73c77de
(svn r12581) -Fix (r12580): trains would not stop correctly on intermediate stations when non-stop was not enabled.
17 years ago
rubidium
ed2acd6f3d
(svn r12580) -Codechange: merge some logical related to non-stop orders.
17 years ago
smatz
f8b2e84537
(svn r12579) -Change: reset cursor when the Plant trees GUI is opened
17 years ago
rubidium
ba0a9538cf
(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.
17 years ago
smatz
c830c4a369
(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
17 years ago
smatz
d0fdbce6d2
(svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate
17 years ago
rubidium
3fdddeac40
(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.
17 years ago
rubidium
fcf888799f
(svn r12574) -Fix: binding to a specific IP could cause OpenTTD to not register properly with the masterserver if one has multiple external interfaces.
17 years ago
smatz
c3399b6848
(svn r12573) -Codechange: use defined constants instead of numbers in math_func.hpp
17 years ago
smatz
6a501c85fc
(svn r12572) -Fix (r12192): min() has 32bit arguments, clamping of 64bit values didn't work
17 years ago
rubidium
1db6c4d55e
(svn r12571) -Fix: MorphOS misses INT16_MAX/INT16_MIN.
17 years ago
smatz
33a97141d5
(svn r12570) -Cleanup: further variable scope in road_gui.cpp
17 years ago
smatz
4c84f76dd5
(svn r12569) -Cleanup: variable scope and coding style in road*.cpp
17 years ago
smatz
2185591156
(svn r12565) -Cleanup: variable scope in misc\*.cpp
17 years ago
smatz
9532cde5ff
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
17 years ago
smatz
21981bca85
(svn r12563) -Cleanup: variable scope and a bit of coding style in landscape.cpp
17 years ago
smatz
f5e445a252
(svn r12562) -Cleanup: variable scope in terraform_cmd.cpp
17 years ago
smatz
401c7b6752
(svn r12561) -Fix: do not affect town rating change by the order in which we examine stations
17 years ago
smatz
39dc3d3eda
(svn r12560) -Cleanup: town_cmd.cpp and header files - variable scope and a bit of coding style
17 years ago
belugas
ad877852d4
(svn r12558) -Feature: subsidy window can now be resized.
17 years ago
smatz
0cceb0cb3e
(svn r12557) -Cleanup: use MAX_PATH at two more places
17 years ago
smatz
673055d27f
(svn r12556) -Fix (r6001): remove fences with fields when loading old savegames, looks better
17 years ago
smatz
cc775d809c
(svn r12553) -Fix (r11547): redraw the signal GUI when the signal drag density changes in the patch settings and vice versa
17 years ago
smatz
8ed3f5fd5e
(svn r12550) -Change: the signal GUI is now persistent - has the same data when it is reopened
17 years ago
smatz
4caeac0cb8
(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
17 years ago
smatz
99f4e979db
(svn r12548) -Cleanup: remove strings removed in r12547 from all language files
17 years ago
smatz
fcf4a7067d
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
17 years ago
glx
b8e3bbe039
(svn r12546) -Fix: completely remove cases from Brazilian Portuguese translation
17 years ago
frosch
525ef7ae6f
(svn r12545) -Cleanup: Replace some tables of magic values with already existing functions.
17 years ago
miham
06ac5eaa37
(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)
17 years ago
frosch
3e9baa7dfb
(svn r12541) -Codechange: Declare Slope enum as bit set, and remove some (then) unneeded casts.
17 years ago
frosch
ae01e263ad
(svn r12540) -Codechange: Enumify some values in original pathfinder and remove an unused variable.
17 years ago
smatz
976d08bcdf
(svn r12537) -Cleanup: comment newgrf_config.h a bit
17 years ago
rubidium
571ba97f56
(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).
17 years ago
belugas
a84a913f3e
(svn r12535) -Fix: A little typo and 4 omissions on bridge sprites.
17 years ago
skidd13
1e7f2dbc10
(svn r12534) -Feature: Add a new type of town road layouts - random for each town
17 years ago
frosch
15b2f07587
(svn r12533) -Cleanup: Remove some wizardry from default ai by using existings enums and helper functions.
17 years ago
frosch
2de802567a
(svn r12532) -Cleanup: Replace two tables of magic values with already existing functions.
17 years ago
frosch
51155403a4
(svn r12531) -Codechange: Rename some variables for consistency.
17 years ago
skidd13
b93a612dfd
(svn r12516) -Revert r2583: Removed mersenne PRNG cause it is not used and won't be used in the future
17 years ago
skidd13
e64beee656
(svn r12513) -Codechange: rename OriginalTileRandomiser something more descriptive
17 years ago
rubidium
b488fe1929
(svn r12501) -Codechange: split signs.h.
17 years ago
rubidium
0f1a82a4c2
(svn r12499) -Codechange: some coding style tweaks for network_internal.h.
17 years ago
rubidium
8920a15979
(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.
17 years ago
rubidium
877ca99198
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
17 years ago
rubidium
df1d9bd880
(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.
17 years ago
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
rubidium
b84b16cfcd
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
17 years ago
rubidium
8e9750901d
(svn r12486) -Fix: the copyright date wasn't set correctly in ottdres.rc.
17 years ago
bjarni
8837c7dcd5
(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
17 years ago
peter1138
2d37f4c823
(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.
17 years ago
rubidium
9f363b3f92
(svn r12477) -Fix [FS#1883]: timetable times for aircraft were always doubled.
17 years ago
rubidium
49a040e6ad
(svn r12476) -Codechange: split type engine related types from engine.h (and openttd.h) to engine_type.h.
17 years ago
rubidium
bb1f657076
(svn r12475) -Codechange: cleanup coding style in news_gui.cpp.
17 years ago
rubidium
1f870e2bc9
(svn r12474) -Codechange: split type related stuff from waypoints from waypoint.h (and openttd.h) to waypoint_type.h.
17 years ago
rubidium
4a0e471b60
(svn r12473) -Codechange: move EngineList to a more logical location.
17 years ago
rubidium
9861a8c322
(svn r12472) -Codechange: remove unneeded declaration of ViewPort and DrawPixelInfo.
17 years ago
rubidium
1c51f1e591
(svn r12471) -Codechange: move SignID to a more logical location.
17 years ago
rubidium
492d132831
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
17 years ago
rubidium
bf54e0ba1c
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
17 years ago
rubidium
eba67a3b8f
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
17 years ago
rubidium
02eddad8d9
(svn r12467) -Codechange: move DepotID to a more logical location.
17 years ago
rubidium
b563a2e52c
(svn r12466) -Codechange: move DestinationID to a more logical location.
17 years ago
rubidium
99d0c61ec0
(svn r12464) -Change: remove an include that doesn't define anything anyway.
17 years ago
rubidium
4ce279812f
(svn r12460) -Change: rename src/namegen.h to src/namegen_func.h so MSVC can have both files in it's treelist.
17 years ago
rubidium
2426f5342f
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
17 years ago
rubidium
0e73ac2198
(svn r12458) -Codechange: split acquiring the sprite ID for cargos from the actual drawing of them.
17 years ago
belugas
55676e3b6c
(svn r12457) -Codechange: Move signal enums on their own header.
17 years ago
glx
0f8584b2fb
(svn r12456) -Update: apply english.txt changes from r12455 to other languages
17 years ago
glx
221071d299
(svn r12455) -Codechange: Implement NewGRF callback 37 (cargo sub-type display for industries)
17 years ago
glx
1df06c7ef1
(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 ;))
17 years ago
peter1138
00286005ba
(svn r12453) -Fix [FS#1880]: Remove broken endian-dependent code and unnecessary rgb to bgr swapping.
17 years ago
glx
90616adcb0
(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.
17 years ago
peter1138
a729283a3c
(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
17 years ago
peter1138
d275282e4d
(svn r12450) -Codechange: Use a pointer instead of several array dereferences.
17 years ago
belugas
7aab471a76
(svn r12449) -Feature[newGRF]: Add support for var A2/22 for action 7/9/D: Diificulty level
17 years ago
rubidium
6db0edda7c
(svn r12447) -Add: company colours to hangars and road depots; train depots already have them.
17 years ago
peter1138
64979511e3
(svn r12446) -Feature: Add +/- toggle buttons to station cargo waiting list to show/hide the detailed transferred cargo information.
17 years ago
peter1138
cb7b587746
(svn r12445) -Fix: Add missing compile asserts for window data structs
17 years ago
belugas
8988c1f7c1
(svn r12444) -Fix: A little typo
17 years ago
rubidium
6d9c7ef315
(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.
17 years ago
skidd13
5d06dcb37e
(svn r12442) -Feature: Allow build leveled roads on slopes for the old ai
17 years ago
rubidium
105b95e94c
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
17 years ago
skidd13
75072624d8
(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
17 years ago
rubidium
5ab921feaa
(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.
17 years ago
rubidium
1c1a721d63
(svn r12438) -Fix-ish: typo spotted by Biblo.
17 years ago
peter1138
bda732047b
(svn r12436) -Cleanup: minor coding style
17 years ago
rubidium
9a62238096
(svn r12435) -Fix: do not remove the case from the Brazilian Portuguese translation while it is still in use.
17 years ago
rubidium
8989e6572f
(svn r12428) -Fix [FS#1878]: loading from the config file could fail even when the data is correct. Patch by Dominik.
17 years ago
rubidium
a28f2f2bb1
(svn r12426) -Cleanup: sprinkle some coding style over a few files.
17 years ago
rubidium
a606fe9610
(svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
17 years ago
bjarni
b05919cc5a
(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)
17 years ago
maedhros
691e9e1b5c
(svn r12420) -Cleanup: Fix the indentation, improve a variable name, and add a NOT_REACHED to DeterminePluralForm.
17 years ago
skidd13
066e6dedfd
(svn r12419) -Cleanup: of the internal road-piece building and removing.
17 years ago
maedhros
0bf22d264a
(svn r12417) -Fix: Add a new plural rule for Icelandic.
17 years ago
peter1138
f0e39a7953
(svn r12410) -Codechange: abstract out the test for catenary on electric rails
17 years ago
miham
8669c77143
(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)
17 years ago
glx
15cd2931f3
(svn r12407) -Add [FS#1866]: more language flags for servers
17 years ago
rubidium
329ab84da3
(svn r12405) -Codechange: some coding style and 'untodoifying' some comments that were certainly not todos.
17 years ago
rubidium
f76110425b
(svn r12404) -Codechange: rename the string buffer used for network GUIs to something more unique than what it is called now.
17 years ago
rubidium
d4b6b57f8b
(svn r12403) -Codechange: unmisuse a variable in the chat window and make the code a little cleaner.
17 years ago
rubidium
48bb9ff17c
(svn r12402) -Fix: some toolbars didn't seem to show anymore.
17 years ago
glx
d177952455
(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.
17 years ago
rubidium
c0758bc425
(svn r12399) -Fix: some old DOS savegame didn't load properly due to 'garbage' that was sprinkled in some places.
17 years ago
rubidium
672087ecf6
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
17 years ago
rubidium
449b51a8b4
(svn r12397) -Codechange [FS#1856]: enumify widget number for time tables. Patch by Phil Sophus.
17 years ago
rubidium
72f5869cc9
(svn r12396) -Codechange: change a few things to reflect that we aren't aiming for 0.6 anymore in trunk.
17 years ago
rubidium
1ee5e2e0aa
(svn r12393) -Fix [FS#1872]: Vehicle lists related to stations not closed when the station is deleted.
17 years ago
maedhros
0fd41a14fb
(svn r12392) -Fix (r12391): Remove yapf/follow_track.cpp again.
17 years ago
maedhros
75719795c9
(svn r12391) -Feature: Show whether a town is a "city" in the town description title bar.
17 years ago
rubidium
edd384c121
(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.
17 years ago
rubidium
fedb33d697
(svn r12389) -Codechange: remove unneeded code from the Cheat window handling and bring it in line with the coding guidelines.
17 years ago
maedhros
7d2a1e5a69
(svn r12388) -Fix (r12352): Callback 14 (station sprite layout) is a 15-bit callback.
17 years ago