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
rubidium
b5a73c77de
(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
ed2acd6f3d
(svn r12580) -Codechange: merge some logical related to non-stop orders.
2008-04-05 15:30:15 +00:00
smatz
f8b2e84537
(svn r12579) -Change: reset cursor when the Plant trees GUI is opened
2008-04-05 12:30:48 +00:00
rubidium
ba0a9538cf
(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.
2008-04-05 12:01:34 +00:00
smatz
c830c4a369
(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
d0fdbce6d2
(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
3fdddeac40
(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.
2008-04-05 10:55:50 +00:00
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.
2008-04-04 21:09:28 +00:00
smatz
c3399b6848
(svn r12573) -Codechange: use defined constants instead of numbers in math_func.hpp
2008-04-04 20:34:09 +00:00
smatz
6a501c85fc
(svn r12572) -Fix (r12192): min() has 32bit arguments, clamping of 64bit values didn't work
2008-04-04 20:03:49 +00:00
rubidium
1db6c4d55e
(svn r12571) -Fix: MorphOS misses INT16_MAX/INT16_MIN.
2008-04-04 19:10:45 +00:00
smatz
33a97141d5
(svn r12570) -Cleanup: further variable scope in road_gui.cpp
2008-04-04 18:55:24 +00:00
smatz
4c84f76dd5
(svn r12569) -Cleanup: variable scope and coding style in road*.cpp
2008-04-04 18:41:16 +00:00
smatz
2185591156
(svn r12565) -Cleanup: variable scope in misc\*.cpp
2008-04-04 17:27:38 +00:00
smatz
9532cde5ff
(svn r12564) -Fix: towns couldn't terraform when inflation rised terraform prices enough
2008-04-04 16:52:29 +00:00
smatz
21981bca85
(svn r12563) -Cleanup: variable scope and a bit of coding style in landscape.cpp
2008-04-04 16:32:27 +00:00
smatz
f5e445a252
(svn r12562) -Cleanup: variable scope in terraform_cmd.cpp
2008-04-04 15:48:15 +00:00
smatz
401c7b6752
(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
39dc3d3eda
(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
ad877852d4
(svn r12558) -Feature: subsidy window can now be resized.
2008-04-04 02:24:44 +00:00
smatz
0cceb0cb3e
(svn r12557) -Cleanup: use MAX_PATH at two more places
2008-04-04 00:06:51 +00:00
smatz
673055d27f
(svn r12556) -Fix (r6001): remove fences with fields when loading old savegames, looks better
2008-04-03 23:52:43 +00:00
smatz
cc775d809c
(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
8ed3f5fd5e
(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
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
2008-04-03 21:01:01 +00:00
smatz
99f4e979db
(svn r12548) -Cleanup: remove strings removed in r12547 from all language files
2008-04-03 20:00:07 +00:00
smatz
fcf4a7067d
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
2008-04-03 19:55:40 +00:00
glx
b8e3bbe039
(svn r12546) -Fix: completely remove cases from Brazilian Portuguese translation
2008-04-03 16:16:52 +00:00
frosch
525ef7ae6f
(svn r12545) -Cleanup: Replace some tables of magic values with already existing functions.
2008-04-03 14:21:17 +00:00
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)
2008-04-03 07:20:32 +00:00
frosch
3e9baa7dfb
(svn r12541) -Codechange: Declare Slope enum as bit set, and remove some (then) unneeded casts.
2008-04-02 14:13:15 +00:00
frosch
ae01e263ad
(svn r12540) -Codechange: Enumify some values in original pathfinder and remove an unused variable.
2008-04-02 13:57:25 +00:00
smatz
976d08bcdf
(svn r12537) -Cleanup: comment newgrf_config.h a bit
2008-04-02 00:13:44 +00:00
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).
2008-04-01 21:12:51 +00:00
belugas
a84a913f3e
(svn r12535) -Fix: A little typo and 4 omissions on bridge sprites.
2008-04-01 17:21:24 +00:00
skidd13
1e7f2dbc10
(svn r12534) -Feature: Add a new type of town road layouts - random for each town
2008-04-01 16:27:01 +00:00
frosch
15b2f07587
(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
2de802567a
(svn r12532) -Cleanup: Replace two tables of magic values with already existing functions.
2008-04-01 14:47:57 +00:00
frosch
51155403a4
(svn r12531) -Codechange: Rename some variables for consistency.
2008-04-01 14:03:20 +00:00
skidd13
b93a612dfd
(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
e64beee656
(svn r12513) -Codechange: rename OriginalTileRandomiser something more descriptive
2008-03-31 15:10:24 +00:00
rubidium
b488fe1929
(svn r12501) -Codechange: split signs.h.
2008-03-31 07:25:49 +00:00
rubidium
0f1a82a4c2
(svn r12499) -Codechange: some coding style tweaks for network_internal.h.
2008-03-31 07:11:18 +00:00
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.
2008-03-31 07:03:35 +00:00
rubidium
877ca99198
(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
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.
2008-03-31 00:17:39 +00:00
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
rubidium
b84b16cfcd
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
2008-03-30 23:24:18 +00:00
rubidium
8e9750901d
(svn r12486) -Fix: the copyright date wasn't set correctly in ottdres.rc.
2008-03-30 17:37:50 +00:00
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
2008-03-28 22:59:43 +00:00
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.
2008-03-28 19:37:12 +00:00
rubidium
9f363b3f92
(svn r12477) -Fix [FS#1883]: timetable times for aircraft were always doubled.
2008-03-28 18:43:01 +00:00
rubidium
49a040e6ad
(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
bb1f657076
(svn r12475) -Codechange: cleanup coding style in news_gui.cpp.
2008-03-28 16:45:20 +00:00
rubidium
1f870e2bc9
(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
4a0e471b60
(svn r12473) -Codechange: move EngineList to a more logical location.
2008-03-28 16:39:19 +00:00
rubidium
9861a8c322
(svn r12472) -Codechange: remove unneeded declaration of ViewPort and DrawPixelInfo.
2008-03-28 16:38:18 +00:00
rubidium
1c51f1e591
(svn r12471) -Codechange: move SignID to a more logical location.
2008-03-28 16:36:59 +00:00
rubidium
492d132831
(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
bf54e0ba1c
(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
eba67a3b8f
(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
02eddad8d9
(svn r12467) -Codechange: move DepotID to a more logical location.
2008-03-28 16:32:27 +00:00
rubidium
b563a2e52c
(svn r12466) -Codechange: move DestinationID to a more logical location.
2008-03-28 16:31:26 +00:00
rubidium
99d0c61ec0
(svn r12464) -Change: remove an include that doesn't define anything anyway.
2008-03-28 11:09:14 +00:00
rubidium
4ce279812f
(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
2426f5342f
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
2008-03-28 08:53:36 +00:00
rubidium
0e73ac2198
(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
55676e3b6c
(svn r12457) -Codechange: Move signal enums on their own header.
2008-03-28 03:23:49 +00:00
glx
0f8584b2fb
(svn r12456) -Update: apply english.txt changes from r12455 to other languages
2008-03-28 02:47:54 +00:00
glx
221071d299
(svn r12455) -Codechange: Implement NewGRF callback 37 (cargo sub-type display for industries)
2008-03-28 02:30:10 +00:00
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 ;))
2008-03-28 02:10:25 +00:00
peter1138
00286005ba
(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
90616adcb0
(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.
2008-03-27 21:36:16 +00:00
peter1138
a729283a3c
(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
2008-03-27 19:02:18 +00:00
peter1138
d275282e4d
(svn r12450) -Codechange: Use a pointer instead of several array dereferences.
2008-03-27 17:51:20 +00:00
belugas
7aab471a76
(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
6db0edda7c
(svn r12447) -Add: company colours to hangars and road depots; train depots already have them.
2008-03-27 15:59:56 +00:00
peter1138
64979511e3
(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
cb7b587746
(svn r12445) -Fix: Add missing compile asserts for window data structs
2008-03-27 15:48:54 +00:00
belugas
8988c1f7c1
(svn r12444) -Fix: A little typo
2008-03-27 15:46:58 +00:00
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.
2008-03-27 15:29:42 +00:00
skidd13
5d06dcb37e
(svn r12442) -Feature: Allow build leveled roads on slopes for the old ai
2008-03-27 14:46:27 +00:00
rubidium
105b95e94c
(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
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
2008-03-27 14:26:31 +00:00
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.
2008-03-27 14:10:09 +00:00
rubidium
1c1a721d63
(svn r12438) -Fix-ish: typo spotted by Biblo.
2008-03-27 13:59:35 +00:00
peter1138
bda732047b
(svn r12436) -Cleanup: minor coding style
2008-03-26 19:18:30 +00:00
rubidium
9a62238096
(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
8989e6572f
(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
a28f2f2bb1
(svn r12426) -Cleanup: sprinkle some coding style over a few files.
2008-03-26 10:38:31 +00:00
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.
2008-03-26 10:08:17 +00:00
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)
2008-03-25 21:58:13 +00:00
maedhros
691e9e1b5c
(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
066e6dedfd
(svn r12419) -Cleanup: of the internal road-piece building and removing.
2008-03-25 18:59:25 +00:00
maedhros
0bf22d264a
(svn r12417) -Fix: Add a new plural rule for Icelandic.
2008-03-25 17:39:02 +00:00
peter1138
f0e39a7953
(svn r12410) -Codechange: abstract out the test for catenary on electric rails
2008-03-25 12:10:13 +00:00
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)
2008-03-25 08:45:21 +00:00
glx
15cd2931f3
(svn r12407) -Add [FS#1866]: more language flags for servers
2008-03-24 20:30:08 +00:00
rubidium
329ab84da3
(svn r12405) -Codechange: some coding style and 'untodoifying' some comments that were certainly not todos.
2008-03-24 06:52:52 +00:00
rubidium
f76110425b
(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
d4b6b57f8b
(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
48bb9ff17c
(svn r12402) -Fix: some toolbars didn't seem to show anymore.
2008-03-24 05:59:42 +00:00
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.
2008-03-24 00:52:28 +00:00
rubidium
c0758bc425
(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
672087ecf6
(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
449b51a8b4
(svn r12397) -Codechange [FS#1856]: enumify widget number for time tables. Patch by Phil Sophus.
2008-03-23 06:56:33 +00:00
rubidium
72f5869cc9
(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
1ee5e2e0aa
(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
0fd41a14fb
(svn r12392) -Fix (r12391): Remove yapf/follow_track.cpp again.
2008-03-22 11:29:03 +00:00
maedhros
75719795c9
(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
edd384c121
(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.
2008-03-22 10:56:08 +00:00
rubidium
fedb33d697
(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
7d2a1e5a69
(svn r12388) -Fix (r12352): Callback 14 (station sprite layout) is a 15-bit callback.
2008-03-21 11:10:36 +00:00
miham
7026601721
(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
3ab59da68a
(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
606bc6fc14
(svn r12385) -Fix [FS#ln]: Non-breaking spaces should not be broken.
2008-03-19 20:46:56 +00:00
smatz
f45221f274
(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
e46945a254
(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
457acecda5
(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
49cf499cf2
(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
285a43037b
(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
cbcad325f9
(svn r12379) -Codechange: removed now redondant InvalidateWindow() calls
2008-03-17 22:04:15 +00:00
glx
187c7e19fe
(svn r12378) -Fix: refresh vehicle details window when cached values are updated
2008-03-17 21:50:53 +00:00
glx
08becf93e6
(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
38be279d3a
(svn r12374) -Fix (r11892): Don't close a dropmenu when clicking on a dropdown widget
2008-03-15 21:35:48 +00:00
glx
62a7587586
(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
42647b90a3
(svn r12372) -Fix: win32 music driver fails if path contains non-latin chars
2008-03-15 21:12:08 +00:00
smatz
808c03ef8d
(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
46ad4b8267
(svn r12370) -Fix [FS#1853]: Close language drop down when parent window is clicked/closed.
2008-03-15 19:50:06 +00:00
smatz
3d10ae7ec3
(svn r12369) -Fix (r1681): reset train speed limits when _patches.realistic_acceleration changes
2008-03-15 19:24:13 +00:00
smatz
1f13638d03
(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
8d7f246b55
(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
c1d2468a2b
(svn r12366) -Codechange: use MAX_PATH instead hardcoded value
2008-03-14 18:31:37 +00:00
skidd13
1415de2800
(svn r12365) -Fix: missing redraw call in the road gui
2008-03-13 18:53:49 +00:00
peter1138
3679bed32a
(svn r12364) -Fix (r12361): Case attribute for brazilian_portuguese got lost.
2008-03-12 20:03:21 +00:00
smatz
9dade55b4a
(svn r12363) -Fix: do not allow building 'zero' road bits
2008-03-12 18:10:45 +00:00
frosch
d744451345
(svn r12362) -Fix (r11985, r12006): Randomize variable 8F only once per callback 28.
2008-03-12 15:56:56 +00:00
miham
8af1696cd3
(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
7fe1703170
(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
3eaf7af980
(svn r12358) -Fix: Callback 2F returns 15 bit results starting from grf version 7.
2008-03-11 12:55:41 +00:00
frosch
c9c870b768
(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
cad30106d1
(svn r12350) -Fix [FS#1836](r11947): do not try ti flood water tile (performance increase)
2008-03-08 18:32:01 +00:00
belugas
5d4e98c800
(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
d46ac78438
(svn r12348) -Fix (r7573): NTP skipped junction just after bridge end
2008-03-07 00:47:42 +00:00
frosch
81174bc523
(svn r12347) -Feature(ette): Increase house animation frame number from 32 to 128.
2008-03-06 14:21:10 +00:00
frosch
0689524481
(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
fe4a6985b2
(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
5a98861958
(svn r12344) -Codechange: Check uint64 bitsize on compiletime too.
2008-03-05 18:51:26 +00:00
peter1138
0796a1ccc3
(svn r12343) -Fix (r12293): Slow helicopters never got the 'chance' to finish the landing routine.
2008-03-05 18:33:31 +00:00
belugas
d56f862b0e
(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
99be0592e7
(svn r12341) -Fix (r11224) [FS#1827]: GRM buffer for cargos was incorrect size.
2008-03-05 09:37:43 +00:00
belugas
61984b5169
(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
a61cbab37b
(svn r12339) -Fix (r12331): Recalculate cached train data after clearing reversing flag when entering depot.
2008-03-04 21:49:40 +00:00
peter1138
bb89e98ec2
(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
debabbbd9a
(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
475f6ca3e3
(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
81f4fd8aff
(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
11c8050e3f
(svn r12332) -Fix (r12331): Invalidate cached data and update image after setting flag.
2008-03-03 21:42:37 +00:00
glx
d9d601b1ca
(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8
2008-03-03 20:56:30 +00:00
glx
796d46ea88
(svn r12330) -Feature: [NewGRF] vehicle variable FE bit 5 and 6
2008-03-03 20:41:47 +00:00
peter1138
beccf3e5ea
(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
37babfaad0
(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
d28cc5be80
(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
4a395562f2
(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
b120ff5276
(svn r12322) -Fix (r9874): endian issue when saving/loading group owner
2008-02-29 22:55:57 +00:00
peter1138
de97cdc113
(svn r12320) -Fix [FS#1817]: Wrong transparency options could be saved after toggling all.
2008-02-29 15:20:02 +00:00
peter1138
5eb431661f
(svn r12319) -Cleanup: Comment fixes (Roujin)
2008-02-29 13:57:50 +00:00
peter1138
e40b66861c
(svn r12317) -Fix [FS#1815]: Map string IDs that are embedded from other strings.
2008-02-29 08:48:01 +00:00
peter1138
b913a135c0
(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
26c5a14d58
(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
4ec7f33f8c
(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
36678c0ae8
(svn r12304) -Codechange: use IsValidTile() where it should be used
2008-02-28 00:17:49 +00:00
glx
e9bddd2b47
(svn r12303) -Codechange: move IsValidTile() in a more suitable place and make it static inline
2008-02-28 00:10:08 +00:00
glx
19b0f75226
(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
6c4060a59a
(svn r12295) -Codechange: Make plane speed option available to NewGRFs
2008-02-27 21:33:52 +00:00
peter1138
015cf7e6a2
(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
2678c4faaa
(svn r12290) -Fix[FS#1807]: Do not draw trees nor lamps between tram tracks.(Roujin)
2008-02-27 15:35:24 +00:00
belugas
5a0ebacc54
(svn r12289) -Fix(r12288)[FS#1808]: Wrong bridge head table associated
2008-02-27 14:55:16 +00:00
belugas
90595cc83d
(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
30b0e31f15
(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
2f8e2743d7
(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
ed6bfe4964
(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
adb1507e4e
(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
6f55c7e0e8
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
2008-02-25 23:12:55 +00:00
glx
a857d32676
(svn r12258) -Fix: GetProductionAroundTiles() may fail if only the second production slot exists
2008-02-25 16:30:12 +00:00
KUDr
ff7e789f83
(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
bde573d1e9
(svn r12247) -Fix (r9315): Town variables 0x9E to 0xAD (company ratings) returned wrong values.
2008-02-25 13:48:23 +00:00
frosch
e464cbcfd6
(svn r12246) -Fix (r10460): Proper usage of Clamp().
2008-02-25 13:38:11 +00:00
smatz
de8c95506b
(svn r12244) -Fix (r12150): typo resulting in no players are given the engine preview offer
2008-02-25 02:09:04 +00:00
glx
c78b1b388e
(svn r12239) -Fix [FS#1800] (r9729): inverted comments for SetRailType() and GetTrackBits() (michi_cc)
2008-02-24 22:20:31 +00:00
bjarni
801bd045fe
(svn r12231) -Cleanup (r12230): [autoreplace] moved Vehicle::NeedsAutorenewing() and added comments
2008-02-23 22:23:06 +00:00
bjarni
973d1fd6ad
(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
4e90a42f0c
(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
f6e4dc4d8c
(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
67bf63ddff
(svn r12208) -Codechange: Alignment of params makes the code easier to read.
2008-02-21 16:05:33 +00:00
peter1138
29e4c60348
(svn r12207) -Change: rail running costs are engine class, not rail type
2008-02-21 14:30:36 +00:00
belugas
35356c97e7
(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
0e997be11e
(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
e0b0ecc5a7
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
2008-02-20 19:42:06 +00:00
frosch
91297d4732
(svn r12203) -Fix (r12199): Make trains pay attention to signals again.
2008-02-20 19:37:46 +00:00
peter1138
ab1fa8b8fc
(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
e5709f3ad8
(svn r12201) -Fix (r12060): compilation warnings - uninitialized variable when compiling with assert disabled
2008-02-20 19:34:53 +00:00
smatz
988b5a9111
(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
7f3d56041b
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
2008-02-20 17:49:50 +00:00
peter1138
86eec55b8a
(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
9bdb194b2a
(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
2657090b1f
(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
7dbb21c69b
(svn r12194) -Codechange: apply coding style on enum TrainSubtype
2008-02-20 15:18:35 +00:00
frosch
1d120c51b8
(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
44a8293364
(svn r12192) -Fix: clamp various town variables to 16bit prior to returning the value
2008-02-20 14:30:53 +00:00
frosch
ca2eb0676c
(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
70b7bfe9c8
(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
0357c4306c
(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
32d8ac2073
(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
20035ca48d
(svn r12187) -Add: frosch as dev. Last, but not least
2008-02-19 17:52:30 +00:00
smatz
6d6e44442d
(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
7a5855fec2
(svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc)
2008-02-18 23:37:16 +00:00
smatz
a53594ebd4
(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
b2721c08fc
(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
1ba2ae69e6
(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
4a329de942
(svn r12179) -Codechange: use GetCrossingRailTrack() and GetCrossingRailAxis() to improve code readability
2008-02-18 18:35:36 +00:00
smatz
97013cd8c4
(svn r12178) -Codechange: use the 'side' parameter in TrainController and TrainCheckIfLineEnds to simplify the code
2008-02-18 16:35:38 +00:00
smatz
9f619f91b3
(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
ada241e279
(svn r12176) -Codechange: one division less when playing sounds (patch by Dominik)
2008-02-18 14:59:30 +00:00
peter1138
c05df5b051
(svn r12175) -Fix (r12174): Ensure the patches window is centred properly.
2008-02-18 13:19:57 +00:00
peter1138
d85484c637
(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
70aa24320e
(svn r12173) -Cleanup: Minor codestyle fixes.
2008-02-18 11:47:53 +00:00
peter1138
e826a69e46
(svn r12172) -Codechange: Allow buttons to resize in NewGRF settings window
2008-02-18 09:16:02 +00:00
smatz
b76e328898
(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
b389425dda
(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
f003a25785
(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
3d5462f103
(svn r12168) -Fix: behave a bit better when 'R' is pressed during rail station dragging
2008-02-17 18:19:33 +00:00
smatz
d3d126f999
(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed
2008-02-17 17:00:43 +00:00
smatz
d7a72c7002
(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
19710f6fd0
(svn r12165) -Fix [FS#1652, FS#1773]: buffer overflow when drawing scrolling news
2008-02-17 00:47:39 +00:00
peter1138
89e0b522e2
(svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in
2008-02-16 23:09:33 +00:00
smatz
1aa5237461
(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
68fda40e4f
(svn r12162) -Fix [FS#1757]: towns shouldn't build over houses owned by another town
2008-02-16 17:54:29 +00:00
smatz
423864a101
(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
84d0081ebd
(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
738491992a
(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
a6fbbf92fc
(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
6ff5a8a29f
(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
7d45415b3d
(svn r12156) -Fix (r11454): Chance16I was now biased towards zero - round to nearest now
2008-02-16 00:46:38 +00:00
glx
d7924424ac
(svn r12155) -Fix (r12154): some warnings (always compile before commit)
2008-02-16 00:10:03 +00:00
glx
a148985087
(svn r12154) -Codechange: removed a magic number
2008-02-15 23:57:03 +00:00
smatz
55b0146498
(svn r12150) -Fix (r12143): compiler warnings - possible use of uninitialised variable
2008-02-15 21:05:46 +00:00
frosch
a13899ee8e
(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
2008-02-15 18:40:42 +00:00
frosch
ae996a270b
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
2008-02-15 18:34:26 +00:00
frosch
03315e88e3
(svn r12147) -Codechange: Use macros to build DrawTileSprites-tables in station_land and unmovable_land.
2008-02-15 18:21:04 +00:00
frosch
4f394c19e2
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
2008-02-15 18:00:30 +00:00
belugas
f3adf67a7b
(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
a141442ff7
(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
359771c406
(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
7c528a6ab7
(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
514df81e27
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
2008-02-14 15:59:16 +00:00
belugas
6c93216641
(svn r12140) -Codechange: A bit of code style fixes(Geektoo).
2008-02-14 15:13:36 +00:00
peter1138
be47b47507
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
2008-02-14 11:58:36 +00:00
smatz
e081e0712f
(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
6d333e5d3e
(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
a36e666ca5
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
2008-02-14 03:10:22 +00:00
belugas
81b47a628f
(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
fe48d0be21
(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
833a00def9
(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
391898b47a
(svn r12132) -Cleanup: convert pathfinder selection from if/else to switch/case at many places
2008-02-13 17:54:11 +00:00
smatz
4c5dde140b
(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
2008-02-13 16:49:25 +00:00
smatz
81067ddfdf
(svn r12130) -Cleanup (r12129): remove now unused strings from all language files
2008-02-13 14:31:13 +00:00
smatz
a3e3cd7d46
(svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick)
2008-02-13 14:21:36 +00:00
peter1138
3abf3e3fa4
(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
f24e231e9a
(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
d4fd1120d1
(svn r12126) -Codechange: Use a variable instead of calling the same function a few times
2008-02-13 03:02:02 +00:00
peter1138
32691590fb
(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
0aece5ed6b
(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
d6670eed6b
(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
25f0a890ae
(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
aefb78fcdf
(svn r12120) -Cleanup: const-ify parameters when checking for same cargopacket source.
2008-02-12 11:46:29 +00:00
peter1138
57aacb50c8
(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
d465b23ee2
(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
05169f53be
(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
96525b3edd
(svn r12114) -Fix (r12111): missed one Bridge -> BridgeSpec
2008-02-11 19:10:33 +00:00
belugas
6a717aa49b
(svn r12111) -Codechange: Rename Bridge to BridgeSpec, out of consistensy with other Specs in used.
2008-02-11 17:35:15 +00:00
smatz
a9ce2a7122
(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
0f3a5fc99d
(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
c21787238c
(svn r12107) -Codechange: Add and use the typedef BridgeType
2008-02-11 04:12:30 +00:00
belugas
f54a21450a
(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
d2f6320d09
(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
4223131cb4
(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
17d9c9bf2b
(svn r12103) -Feature(tte): separate catenary transparency settings from building transparency settings
2008-02-10 15:53:26 +00:00
maedhros
56a5c2d7c2
(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
0fc6754832
(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
b18f96d222
(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
c82d1e3e46
(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
7a20968aaf
(svn r12097) -Fix (r654, r1525): loading old, pre savegame version 2, savegames.
2008-02-10 05:21:08 +00:00
smatz
5bfcd657c3
(svn r12096) -Fix: remove leftover property when loading older savegames
2008-02-09 17:36:21 +00:00
smatz
98e81e95a5
(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
d00bf03012
(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
a7b786f143
(svn r12093) -Fix: do not set station owner for buoys when merging company
2008-02-09 12:20:50 +00:00
belugas
83de4db1c0
(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
f26bd05b99
(svn r12091) -Codechange : remove all production level magic numbers and replace them by enums
2008-02-09 03:03:09 +00:00
belugas
57f4ed3edd
(svn r12090) -Codechange : removed a magic number and code style application on enum ExpensesType
2008-02-09 02:49:33 +00:00
smatz
6edbe4a6e7
(svn r12088) -Fix: assert when loading savegame with wrong tiletype at south map borders
2008-02-08 19:57:56 +00:00
glx
ec6a1776f3
(svn r12087) -Fix: MSVC warnings
2008-02-08 17:53:01 +00:00
glx
37e27a296e
(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
f476d861d2
(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
9e05e0ea01
(svn r12084) -Fix: 'Early retirement'-properties are signed.
2008-02-08 15:34:54 +00:00
belugas
70241f804b
(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
dbab177422
(svn r12080) -Fix: update waypoint signs when changing language
2008-02-07 16:17:00 +00:00
peter1138
1b5f8df8b1
(svn r12079) -Fix: Use search paths when opening console scripts.
2008-02-07 10:01:18 +00:00
glx
b169f89880
(svn r12076) -Fix: when reusing a renamed deleted waypoint, keep the new name
2008-02-07 01:56:39 +00:00
peter1138
b19704f661
(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
de489f338a
(svn r12074) -Cleanup: use C++ variable scope and declaration in DrawTile_Trees()
2008-02-06 23:08:04 +00:00
smatz
b1ffae96ce
(svn r12073) -Codechange: stop drawing trees a bit earlier when they are invisible
2008-02-06 22:59:31 +00:00
frosch
4d41baba5b
(svn r12072) -Fix: Make docks at sea flood neighboured tiles.
2008-02-06 16:19:28 +00:00
frosch
113525c40b
(svn r12071) -Feature(ette): Draw river- and canal-edges under docks and shipdepots.
2008-02-06 16:12:23 +00:00
frosch
9b2ca61044
(svn r12070) -Cleanup(r12042): Water-owner of shipdepots is no longer needed. Removed.
2008-02-06 15:32:06 +00:00
belugas
831e678120
(svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge.
2008-02-06 03:01:29 +00:00
belugas
e3ca12a411
(svn r12068) -Fix(r12067): forgot a return
2008-02-06 02:43:42 +00:00
peter1138
879cce2b8b
(svn r12067) -Cleanup: Codestyle on loading object references
2008-02-05 23:22:34 +00:00
belugas
7f5f48281c
(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
23c8664593
(svn r12065) -Codechange : removed a now useless declaration ( orig_bridge )
2008-02-05 05:03:50 +00:00
belugas
0ee48fc6d3
(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
91456a93f0
(svn r12063) -Cleanup: use C++ indenting and variable scope/declaration in BuildTownHouse()
2008-02-05 00:30:58 +00:00
smatz
4f2f7f52a6
(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
5dacd82903
(svn r12061) -Cleanup: since r12060, DC_FORCETEST is not used anymore
2008-02-04 22:44:05 +00:00
smatz
e9b22d7c70
(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
b5055f73fe
(svn r12059) -Fix (r12041): industries prop 24 is a word
2008-02-04 16:48:00 +00:00
frosch
a62beb101b
(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
ebba0d7c71
(svn r12057) -Fix: slowdown train when approaching 90deg turn when 90deg turns are forbidden
2008-02-04 15:56:39 +00:00
frosch
99817bd5f0
(svn r12056) -Fix [FS#1704]: Enable YAPF to start searching inside a wormhole.
2008-02-04 15:26:35 +00:00
smatz
a783cb333b
(svn r12055) -Fix: another way to fix AI trying to build road through depots
2008-02-04 14:08:02 +00:00
peter1138
71b0d5f091
(svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types...
2008-02-04 11:28:12 +00:00
maedhros
0cb2a7fa17
(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
4a4f4b7459
(svn r12050) -Fix: random_func broke for desync debug.
2008-02-03 16:21:19 +00:00
smatz
70a6179b3b
(svn r12049) -Fix (r10496)(r10619): memset on multibyte array with wrong byte count
2008-02-03 12:41:06 +00:00
belugas
260b32e736
(svn r12048) -Cleanup: Move some strings in the original bridge array, adjust documentation a bit.
2008-02-03 03:37:33 +00:00
belugas
e5de785e1d
(svn r12045) -Feature-ette(newGRF): Add support for var 12, Variational Action 2
2008-02-03 00:24:53 +00:00
rubidium
bdadefd0d2
(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
594d6b663c
(svn r12043) -Fix [FS#1736]: allow building transmitters and lighthouses on tree tiles
2008-02-02 20:15:20 +00:00
peter1138
c05d10dd35
(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
6e761a18d6
(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
33e63a3adc
(svn r12040) -Codechange: Change IsOrderListShared from a simple function to a class member(MagicBuzz).
2008-02-02 02:45:09 +00:00
peter1138
09ce7f76e9
(svn r12038) -Fix: Change ownership of or remove statues when merging/bankrupting companies.
2008-02-01 22:13:59 +00:00
glx
7ce12e50da
(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
f725b795af
(svn r12036) -Fix: For station tiles, only get road types for road stops.
2008-02-01 20:10:57 +00:00
frosch
781828c1b6
(svn r12035) -Fix [FS#1702]: Teach YAPF where trams can reverse, and where not.
2008-02-01 17:27:45 +00:00
belugas
df30c7113a
(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
cc59c5bd23
(svn r12033) -Fix: do not show train speed as zero after loading paused game
2008-02-01 15:09:55 +00:00
peter1138
7457d8807a
(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
ef66b08784
(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
b523464175
(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
23e6411fb7
(svn r12029) -Feature: Allow trees on shore.
2008-01-31 17:54:13 +00:00
frosch
90ee6a16ab
(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
d0aa5c4a3c
(svn r12026) -Update: 'exit' is consistent with UK English in OpenTTD, 'quit' with US English
2008-01-30 19:07:41 +00:00
miham
6b016b95f9
(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
f91c752d8b
(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
9f482888b5
(svn r12023) -Fix [FS#1690]: Put a better suited text in the quit-dialog.
2008-01-30 17:56:19 +00:00
belugas
e877189057
(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
bd1115e7ff
(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
ccb13bdd52
(svn r12020) -Documentation: Correct description of TropicZone.
2008-01-30 17:22:06 +00:00
peter1138
1268a70466
(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
6ee4ed8bf9
(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
3e90a16cfc
(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
dbe2c7582d
(svn r12016) -Fix (r12003): os x compilation was broken again ;)
2008-01-29 19:23:31 +00:00
peter1138
3e017833b2
(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
9e7ad199b5
(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
2008-01-29 14:19:07 +00:00
frosch
ab70871734
(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
addab235de
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
2008-01-29 14:02:18 +00:00
frosch
31842d7b3e
(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
df629c7cf0
(svn r12010) -Fix (r11994): build tramway window should use STR_WHITE_TRAMWAY_CONSTRUCTION
2008-01-29 13:52:55 +00:00
peter1138
c4707760cf
(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
bfc1e5d88a
(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
fadeb9ca2e
(svn r12007) -Fix (r12003): win32 compilation was broken again ;)
2008-01-29 00:45:24 +00:00
rubidium
3b20e4d09a
(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
7c310600ba
(svn r12005) -Fix [FS#1717]: possible reading from an invalid pointer. Patch by PhilSophus.
2008-01-29 00:29:28 +00:00
rubidium
1b7051768c
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
2008-01-29 00:27:25 +00:00
rubidium
3f104194d6
(svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places.
2008-01-29 00:26:31 +00:00
peter1138
af2429f8e0
(svn r12002) -Cleanup (r11981): Remove obsolete code to skip sprites from indexed GRFs.
2008-01-28 17:51:45 +00:00
frosch
5d9326ff03
(svn r12001) -Fix: When skipping Action 11 or 12, also skip belonging sprites.
2008-01-28 15:55:59 +00:00
frosch
b7946e07a6
(svn r12000) -Fix (r11926): If no river NewGRF is loaded, use sloped water from locks.
2008-01-28 15:19:35 +00:00
frosch
02366bce29
(svn r11999) -Fix: Do entrance-slope-check for every tile of railstations.
2008-01-28 14:36:54 +00:00
smatz
db50a6d231
(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
a1eb524b81
(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
f22b0127af
(svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero speed
2008-01-27 20:20:53 +00:00
maedhros
9aa240dbb6
(svn r11995) -Cleanup (r11994): Change the string names in all the other languages.
2008-01-27 17:34:08 +00:00
maedhros
f95fb570ad
(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
ec1d547889
(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
f93943ebcf
(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
f9f917f205
(svn r11991) -Cleanup: Remove strings removed in r11990
2008-01-26 22:41:24 +00:00
peter1138
befe9fb43f
(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
191954d8a7
(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
c5b749f983
(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
2ff76007b0
(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
ad3c4a39f6
(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
9d63fd232e
(svn r11984) -Fix: Also draw corner shores under rail tracks.
2008-01-25 16:51:35 +00:00
frosch
d4dc5e0775
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
2008-01-25 15:47:58 +00:00
frosch
d13311e710
(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
e37b88ebfc
(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
f037d98ef4
(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
99325b0553
(svn r11978) -Codechange: Replace some global variables with window owned ones
2008-01-24 18:35:35 +00:00
belugas
7c50416d64
(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
e918b8d31b
(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
51f03faf83
(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
4a1ad2c85f
(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
773446df5e
(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
f8255e10d5
(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
2008-01-24 10:47:44 +00:00
peter1138
7ef297187e
(svn r11970) -Cleanup: Remove old comment
2008-01-24 10:41:12 +00:00
smatz
c22723c643
(svn r11969) -Codechange: documentation update, there are no 'track bits under bridge' anymore
2008-01-23 23:22:47 +00:00
smatz
74af65e556
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
2008-01-23 22:34:04 +00:00
smatz
dbd4d7d6a8
(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
c19fd4fcde
(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
75784655b7
(svn r11965) -Codechange: simplified tunnel/bridge code in TPFMode1
2008-01-23 18:24:04 +00:00
peter1138
18df5480ba
(svn r11964) -Fix [FS#1685]: Tropic zone data was returned incorrectly.
2008-01-23 17:45:48 +00:00
belugas
ba1f3b4834
(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
2008-01-23 17:40:37 +00:00
smatz
881b74e882
(svn r11962) -Cleanup: OPF is no longer used to update signals
2008-01-23 17:30:28 +00:00
belugas
fa39916fe9
(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
8be486c27e
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
2008-01-23 14:51:36 +00:00
peter1138
622f251197
(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
51d7692aca
(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
f8b5b6667f
(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
a2d416b253
(svn r11956) -Fix [FS#1675]: Disallow building locks and docks on rapids.
2008-01-23 08:47:49 +00:00
peter1138
ae7689620c
(svn r11955) -Fix (r11926): Prevent bridge and tunnel ends being placed on rivers.
2008-01-23 08:28:19 +00:00
smatz
d89c5e945f
(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
b5534e42a0
(svn r11952) -Fix (r11926): Prevent industries from being built on rivers, unless they require water.
2008-01-22 22:17:28 +00:00
smatz
171e84cbad
(svn r11951) -Fix (r11279): loading of very old savegames was broken
2008-01-22 21:01:35 +00:00
peter1138
d213987a13
(svn r11949) -Codechange: add river icon and cursor, drawn by skidd13.
2008-01-22 20:04:30 +00:00
frosch
a242dadad2
(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
8a72af3a13
(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
1d219ad7b6
(svn r11945) -Fix: FileExists() failed for non latin paths (win32)
2008-01-22 15:47:40 +00:00
smatz
22973fc2ce
(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
38d690acc8
(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
5e4f4bcdc5
(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
78156065cf
(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
a83b91dbc5
(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
9d754a7f76
(svn r11938) -Codechange: support loading of canal/river properties (though still ignored)
2008-01-21 20:41:04 +00:00
frosch
2e63435124
(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
05ab49eb23
(svn r11936) -Fix: 'BRIDGE_TOO_LOW_FOR_TERRAIN'-check was wrong for steep slopes.
2008-01-21 15:20:58 +00:00
bjarni
6786802863
(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
b967c9918e
(svn r11934) -Codechange: add persistent random data for river and canal tiles.
2008-01-20 18:30:53 +00:00
miham
80931cdd13
(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
daf1e4b4c4
(svn r11932) -Codechange: Forgot two occurences of widget enumification
2008-01-20 04:01:28 +00:00
belugas
1047888547
(svn r11931) -Codechange: enumify the widgets numbers. Give breathing room on the case switches too...
2008-01-20 03:56:15 +00:00
belugas
f8fc0ca086
(svn r11930) -Codechange: a bit of code style application
2008-01-20 03:11:14 +00:00
bjarni
9fdf784b7c
(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
52e5f50158
(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
bb66cf27cc
(svn r11927) -Fix (r11926): unable to place canals in game
2008-01-19 18:24:20 +00:00
peter1138
0c6bdb0d21
(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
8b90809718
(svn r11925) -Fix (r122, r9867): loading old, pre savegame version 2, savegames.
2008-01-19 14:00:04 +00:00
peter1138
cc05abf382
(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
8e15c0fba8
(svn r11923) -Cleanup: Remove strings removed from english.txt in r11919
2008-01-18 22:55:02 +00:00
smatz
f05caedf7c
(svn r11922) -Codechange: use MaybeBarCrossingWithSound() to bar crossing with sound
2008-01-18 21:44:20 +00:00
peter1138
f6684c9afd
(svn r11921) -Cleanup: correct indenting and switch case line spacing.
2008-01-18 21:33:19 +00:00
glx
b3e35db958
(svn r11920) -Fix (r11844): train count was incorrect in network lobby window (and 'players' command)
2008-01-18 21:25:18 +00:00
peter1138
9c482d5e54
(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
aa556f123d
(svn r11918) -Codechange: Draw engine lists at widget positions instead of fixed pixel positions
2008-01-18 18:18:39 +00:00
smatz
66a0fafc93
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
2008-01-18 14:48:57 +00:00
smatz
dfb91c26ec
(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
04da1e1d45
(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
bba1a62db1
(svn r11914) -Documentation: fix some @file statement
2008-01-18 03:48:29 +00:00
smatz
91cb42fa73
(svn r11913) -Fix (r11871): update signals after company bankrupt and disaster too
2008-01-18 02:16:39 +00:00
peter1138
1182a940cf
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
2008-01-17 21:57:20 +00:00
peter1138
898298847f
(svn r11911) -Codechange: use enum for autoreplace window widgets
2008-01-17 21:44:52 +00:00
smatz
8dbf03e322
(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
8794c5bc3c
(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
b20d1eee6c
(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
e0f759f71e
(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
2f9413a799
(svn r11906) -Fix: fixed a typo in german language (reported by Botcher0)
2008-01-17 19:35:37 +00:00
peter1138
a50192361f
(svn r11905) -Codechange: add widget enums for player finances and player livery windows
2008-01-17 19:12:53 +00:00
peter1138
727d07c67e
(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
e01a7e2e91
(svn r11903) -Fix: try to fix MorphOS compilation
2008-01-17 18:21:31 +00:00
peter1138
3f11c27958
(svn r11902) -Codechange: use new dropdown widget for game options window
2008-01-17 18:10:27 +00:00
peter1138
9fdb9a82a2
(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
2c38d3066f
(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
3ae0c5316c
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
2008-01-17 17:35:59 +00:00
frosch
c7fe664119
(svn r11898) -Fix: Update neighboured canals + signals when flooding non-flat tiles, too.
2008-01-17 17:13:47 +00:00
frosch
03e7f6f2d2
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
2008-01-17 16:55:13 +00:00
glx
82727a8713
(svn r11896) -Fix (r11886): a missing const broke compilation with MSVC
2008-01-17 16:46:41 +00:00
glx
80d62cb358
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
2008-01-17 16:41:02 +00:00
peter1138
8bc5115a1a
(svn r11894) -Cleanup: Remove strings removed from english.txt in r11893
2008-01-17 14:06:49 +00:00
peter1138
5d8f7dbe60
(svn r11893) -Codechange: build map size drop downs dynamically and remove unneeded strings
2008-01-17 14:00:17 +00:00
peter1138
41df004043
(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
a325bef3f5
(svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo.
2008-01-17 02:10:55 +00:00
glx
4e847a9c52
(svn r11888) -Codechange: simplify sorting of the strings in town names dropdown
2008-01-17 02:10:26 +00:00
rubidium
c141639bcc
(svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI.
2008-01-17 02:09:34 +00:00
glx
2ad9edda91
(svn r11886) -Add: sort the strings in languages dropdown
2008-01-17 00:21:43 +00:00
peter1138
20c2de3ace
(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
b4ed1609bf
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
2008-01-16 23:46:46 +00:00
smatz
7eff702c0a
(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
fc2895e8c2
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
2008-01-16 21:17:31 +00:00
peter1138
df7286e7c1
(svn r11881) -Cleanup: Code style for global variables.
2008-01-16 18:34:53 +00:00
peter1138
e2724bed6c
(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
389f8e0d8f
(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
c2ae2334ec
(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
3ad8b79550
(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
9a9a1dcb6c
(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
a09b0e21e4
(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
049e615cfb
(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
belugas
88206b8808
(svn r11873) -Codechange: less a few magical numbers and a tiny bit more comments on town zones
2008-01-16 02:53:55 +00:00
bjarni
48c2669185
(svn r11872) -Fix (r9874): EngineHasReplacementForPlayer() didn't look in ALL_GROUP
2008-01-16 01:27:24 +00:00
smatz
61e40b1aa5
(svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station
2008-01-16 01:18:15 +00:00
smatz
70a9c544b8
(svn r11870) -Fix: slow down train when approaching tile we can't enter in more cases
...
(tunnel/bridge/depot from wrong direction, competitor's track, wrong railtype)
-Fix: do not make crossing red when we can't enter it in any case
2008-01-16 00:33:28 +00:00
rubidium
a3a5ff6057
(svn r11867) -Fix: do not reset changes to persistent storages during world generation.
...
-Fix: store changes to persistent storages after performing all the game logic instead of resetting them.
2008-01-15 18:51:46 +00:00
rubidium
736640fd87
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
2008-01-15 18:44:22 +00:00
peter1138
e938855375
(svn r11865) -Feature(tte): Support scrolling of drop down lists when in drag mode by moving the pointer above or below the list.
2008-01-15 16:30:08 +00:00
smatz
81cad58c68
(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later
2008-01-15 15:00:01 +00:00
peter1138
c954ce1b33
(svn r11863) -Fix (r11848): One day I'll learn C++... Delete all items in a drop down list before deleting the list.
2008-01-15 13:20:58 +00:00
rubidium
fcee6dad93
(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too.
2008-01-15 13:19:49 +00:00
smatz
e0c61a8921
(svn r11861) -Fix: do not call rail specific functions when removing road tunnel/bridge
2008-01-15 11:45:29 +00:00
peter1138
ef704510cd
(svn r11860) -Fix: Test station class validity against number of classes, not abosolute limit.
2008-01-15 11:43:06 +00:00
peter1138
b4d476b7d1
(svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list.
2008-01-15 10:36:51 +00:00
peter1138
327ea90331
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
2008-01-15 08:14:22 +00:00
rubidium
c7f9705e4a
(svn r11857) -Fix: some compile time warnings.
2008-01-15 00:48:14 +00:00
glx
d4e8ffd7b3
(svn r11856) -Revert (r11772): since FS#1335 is solved, we do not need the extra checking and such anymore.
2008-01-15 00:11:28 +00:00
glx
8344327a91
(svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs
2008-01-15 00:03:48 +00:00
peter1138
6fa0463d79
(svn r11854) -Fix (r11848): Nightly build farm showed up more compiler warnings... c++ is fun
2008-01-14 20:52:43 +00:00
miham
ccd557fa54
(svn r11852) -Update: WebTranslator2 update to 2008-01-14 21:05:38
...
brazilian_portuguese - 36 changed by fukumori (36)
korean - 1 fixed by leejaeuk5 (1)
piglatin - 20 fixed by adammw (20)
portuguese - 1 fixed by nars (1)
2008-01-14 20:06:18 +00:00
belugas
e91e9d9b4e
(svn r11851) -Codechange: A few magic numbers removal, plus a little code style
2008-01-14 18:19:29 +00:00
peter1138
85e49e6290
(svn r11849) -Fix (r11848): Incomplete(?) class broke MSVC/mingw compilation
2008-01-14 16:35:49 +00:00
peter1138
1fa2285327
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
2008-01-14 16:10:58 +00:00
smatz
c6de18c3db
(svn r11847) -Fix: do not affect the speed a train is entering a depot by trackbits behind it
2008-01-14 14:46:09 +00:00
peter1138
7475bf20ec
(svn r11846) -Fix [FS#1651]: implicit conversion from unsigned to signed int caused compilation failure with MSVC.
2008-01-14 11:18:43 +00:00
smatz
a9f69f387d
(svn r11845) -Codechange: simplify train collision detection a bit
2008-01-13 23:53:33 +00:00
glx
88e16866bc
(svn r11844) -Fix: road vehicle count was incorrect in network lobby window
2008-01-13 22:27:06 +00:00
smatz
b3bf60000e
(svn r11843) -Fix: mark dirty canal tile even in diagonal direction from flooded tile
2008-01-13 22:12:39 +00:00
rubidium
f57ab9f99f
(svn r11842) -Fix: libtimidity.cpp did not compile anymore.
2008-01-13 22:10:54 +00:00
glx
b1951ac447
(svn r11841) -Fix: win32 compilation
2008-01-13 22:07:33 +00:00
rubidium
9ac26e1bf1
(svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server.
2008-01-13 21:51:53 +00:00
rubidium
df12937f19
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
smatz
5d379d6696
(svn r11838) -Fix (r11320): draw correctly canal next to half flooded rail tile
2008-01-13 17:55:00 +00:00
bjarni
adf1e34ead
(svn r11837) -Feature: [OSX] added "/Library/Application Support/OpenTTD" to the search paths (based on patch by pv2b)
...
It is possible to set this to something else setting shared-dir with config
This works on other OSes as well but it's off by default (and not really tested)
2008-01-13 17:45:29 +00:00
bjarni
6c4ebd91ea
(svn r11836) -Fix [r11834]: [OSX] fixed compilation
2008-01-13 17:37:17 +00:00
smatz
b3e28dc5ad
(svn r11835) -Fix: mark depot, viewports, vehicle lists and vehicle details dirty when a train crashes
2008-01-13 14:42:28 +00:00
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
2008-01-13 14:37:30 +00:00
rubidium
fafab82a31
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
2008-01-13 13:36:01 +00:00
smatz
86a6268f3e
(svn r11831) -Fix: call TrainConsistChanged() when removing crashed train part to be consistent with saveload process
2008-01-13 13:11:59 +00:00
rubidium
975f1b4825
(svn r11830) -Fix [FS#1625]: road vehicles would not wait in line, but at a single point on bridges. Based on a patch by SmatZ.
2008-01-13 12:08:35 +00:00
rubidium
0ca79e2fb8
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
2008-01-13 01:39:22 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
72c9b35b11
(svn r11827) -Codechange: do not include enum_type.hpp unnecessary.
2008-01-13 00:28:01 +00:00
glx
818979ebe3
(svn r11826) -Fix (r10444): at least one instance of dmusic driver is needed for it to be registered and usable
2008-01-13 00:14:29 +00:00
rubidium
bfa6087e0f
(svn r11825) -Fix (FS#1627): an articulated road vehicle could split up when it turned around at a corner and then would enter a drive through station at the next tile.
2008-01-12 22:10:00 +00:00
peter1138
3fb100c670
(svn r11824) -Fix (r11822): Converting signs from TTD games incomplete
2008-01-12 21:25:04 +00:00
peter1138
4bbe6358d9
(svn r11823) -Fix (r11822): Custom names from old TTD games were not updated.
2008-01-12 21:01:27 +00:00
peter1138
0f7392bd61
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
...
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
2008-01-12 19:58:06 +00:00
smatz
74f9be8f2c
(svn r11821) -Fix (r11802): 'optimization assert' when removing crashed wagon in some cases
2008-01-12 19:33:25 +00:00
smatz
9c9b743242
(svn r11820) -Fix: invalidate depot window when removing crashed train
2008-01-12 19:24:58 +00:00
smatz
b18b7f6f22
(svn r11819) -Fix: do not access the Vehicle struct that has been already deleted when removing crashed train
2008-01-12 19:20:44 +00:00
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
peter1138
63cc41cd1c
(svn r11817) -Codechange: Base vehicle group validity on owner, not name.
2008-01-12 13:36:22 +00:00
rubidium
07e0e0a1ff
(svn r11816) -Fix: forgot clearing one byte, causing the passwords to differ slightly on different platforms.
2008-01-12 08:34:16 +00:00
smatz
81b3635c80
(svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable
2008-01-11 22:29:47 +00:00
orudge
c4ad3c648b
(svn r11814) -Fix: Get OpenTTD compiling again on OS/2
2008-01-11 18:53:52 +00:00
frosch
7d3ecec5b9
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
2008-01-11 17:12:41 +00:00
smatz
fa1f94e599
(svn r11812) -Codechange: introduce TrainExitDir() to simplify some functions
2008-01-11 15:10:59 +00:00
rubidium
97d6e0e6c0
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
2008-01-11 00:30:32 +00:00
smatz
2ba5bf8947
(svn r11810) -Fix (r11802): reset sets when leaving prematurely
2008-01-10 22:46:04 +00:00
smatz
aa11580621
(svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot
2008-01-10 21:54:45 +00:00
frosch
49f741aaa3
(svn r11807) -Codechange: Make Action5 handler more upwards- and TTDP-compatible by allowing specifiing more sprites than needed.
2008-01-10 18:02:15 +00:00
glx
fe35fa15e4
(svn r11806) -Fix (r11793) [FS#1638]: sign inversion when updating income and expenses
2008-01-10 15:51:34 +00:00
frosch
9629b26677
(svn r11805) -Fix [FS#1620]: VEHICLE_TRIGGER_EMPTY was triggered continuously while train waiting in station.
2008-01-10 13:13:18 +00:00
belugas
88f11bbfeb
(svn r11804) -Fix(r11797,FS#1636): Industry tiles should receive the same medecine as indstries themselves regarding the resolver's object
2008-01-10 00:53:17 +00:00
peter1138
0645689a87
(svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour
2008-01-09 23:17:40 +00:00
smatz
bc4ed3eafd
(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track
...
-Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements
2008-01-09 23:00:59 +00:00
rubidium
c004cc1fd9
(svn r11801) -Codechange: remove some unneeded includes from some header files.
2008-01-09 21:27:39 +00:00
rubidium
2d2e1e3863
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
2008-01-09 21:05:03 +00:00
peter1138
a5101fb403
(svn r11799) -Codechange: no need to special-case helicopter rotor 'overrides'
2008-01-09 20:23:12 +00:00
belugas
1bfe4e0e02
(svn r11798) -Codechange: add comments and give a more representative function's name
2008-01-09 18:35:18 +00:00
belugas
4bbe046499
(svn r11797) -Fix: Add protection against not already created industry while doing industry callback.
...
Some variables used were linked to invalid industry.
2008-01-09 18:14:29 +00:00
glx
8ee8d1b964
(svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed.
2008-01-09 17:47:05 +00:00
glx
55d8f7ed72
(svn r11794) -Fix [FS#1632]: reversing a train when loading at a station with an adjacent station in the same axis crashed.
2008-01-09 17:09:53 +00:00
rubidium
0365c1f33b
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
2008-01-09 16:55:48 +00:00
rubidium
98b4fa7c07
(svn r11792) -Codechange: move some (virtually) globally included AI related structs to a place where they are only included a few times.
2008-01-09 16:40:02 +00:00
peter1138
323f6e461a
(svn r11791) -Cleanup: move railtype data into table/, like other data files.
2008-01-09 16:02:13 +00:00
rubidium
c42711e360
(svn r11790) -Update: apparantly it's 2008 already ;). Patch by Anne Stellingwerf (FS#1613).
2008-01-09 11:46:40 +00:00
peter1138
0ae26a0312
(svn r11789) -Codechange: coding style for global variable names
2008-01-09 10:15:20 +00:00
rubidium
285a4a106f
(svn r11788) -Fix (11787): makedepend doesn't mark delete files as changed...
2008-01-09 09:57:48 +00:00
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
2008-01-09 09:45:45 +00:00
peter1138
342ad858e5
(svn r11786) -Codechange: shuffle more includes
2008-01-09 08:12:10 +00:00
rubidium
c08bff8931
(svn r11785) -Codechange: remove some unneeded includes.
2008-01-09 00:59:02 +00:00
peter1138
1cabc8eb63
(svn r11784) -Codechange: set up initial engine data in one place
2008-01-08 18:25:51 +00:00
peter1138
7a5c529db4
(svn r11783) -Codechange: compare engine type with its type property, not by its index
2008-01-08 18:16:26 +00:00
peter1138
d2fb6614c6
(svn r11782) -Codechange: e->type was used before being properly initialized (it relied on previous runs) but there is no need to invalidate window data during game load as the windows in question cannot be open.
2008-01-08 16:07:32 +00:00
peter1138
8c7bd8fef4
(svn r11781) -Codechange: variable scope and initialization
2008-01-07 22:38:30 +00:00
peter1138
ba4ab96bcc
(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
2008-01-07 16:41:03 +00:00
glx
9e875495bf
(svn r11779) -Fix: win32 compile failed. Also removed a duplicate include
2008-01-07 15:35:36 +00:00
rubidium
0d41fe2874
(svn r11778) -Fix: compiles with ICONV failed.
2008-01-07 15:17:23 +00:00
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
2008-01-07 14:23:25 +00:00
rubidium
71d4004a85
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
2008-01-07 14:02:26 +00:00
rubidium
e2f7ec1d3e
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
2008-01-07 09:19:53 +00:00
rubidium
444e77d8bc
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
2008-01-07 00:57:19 +00:00
rubidium
779ce7fda9
(svn r11773) -Codechange: move some non-clear-land functions from clear_cmd.cpp to a more correct location.
2008-01-07 00:45:05 +00:00
glx
cfcce9603c
(svn r11772) -Change: add some extra checking in the hope to find the cause of FS#1335
2008-01-07 00:43:03 +00:00
rubidium
2469bca24c
(svn r11771) -Codechange: split settings.h into better separated headers.
2008-01-07 00:19:09 +00:00
peter1138
588f1d2aca
(svn r11770) -Codechange: An engine type's type is EngineID, not byte.
2008-01-06 20:54:55 +00:00
miham
96ef3a7e14
(svn r11769) -Update: WebTranslator2 update to 2008-01-06 19:58:01
...
brazilian_portuguese - 2 fixed, 15 changed by fukumori (17)
bulgarian - 29 fixed, 10 changed by groupsky (39)
croatian - 13 fixed by knovak (13)
czech - 2 fixed by Hadez (2)
dutch - 1 fixed by habell (1)
estonian - 1 fixed by kristjans (1)
french - 1 fixed, 1 changed by glx (2)
galician - 38 fixed by Condex (38)
italian - 1 fixed by lorenzodv (1)
japanese - 1 fixed by ickoonite (1)
norwegian_bokmal - 1 fixed by brygge_2 (1)
romanian - 1 fixed by kneekoo (1)
slovak - 1 fixed by lengyel (1)
swedish - 2 fixed by daishan (2)
ukrainian - 2 fixed by mad (2)
2008-01-06 18:58:55 +00:00
rubidium
84606b5212
(svn r11768) -Codechange: move some terraform related gui stuff from main_gui.cpp to terraform_gui.cpp (and introduce terraform_gui.h). Based on a patch by Roujin.
2008-01-06 18:56:43 +00:00
smatz
9728072310
(svn r11767) -Fix: do not call rail specific functions when building road bridge
...
-Fix: missing space in terraform_gui.cpp
2008-01-06 11:39:40 +00:00
belugas
578390ada7
(svn r11766) -Codechange: Last fine tunings on smooth economy, by Sirkoz.
2008-01-06 01:06:12 +00:00
rubidium
409f07199c
(svn r11765) -Fix: compile warning (Roujin).
2008-01-05 22:34:04 +00:00
rubidium
902b810787
(svn r11764) -Change: make the 'do characters exist in the current font file(s)' more robust.
2008-01-05 22:19:27 +00:00
smatz
4023920f22
(svn r11763) -Fix: update signal states after merging a company
2008-01-05 22:04:11 +00:00
glx
7a890182c0
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
2008-01-05 21:42:34 +00:00
peter1138
0c4e3b83e4
(svn r11761) -Codechange: Use appropriate variable types for NewGRF engine overrides, and adjust scope while there.
2008-01-05 15:39:22 +00:00
smatz
f02cf9281b
(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
...
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
2008-01-04 19:45:29 +00:00
peter1138
aefb86d7fe
(svn r11759) -Feature: Add drag-n-drop support to the raise/lower land tools. Land is raised/lowered at the start and the rest of the area levelled to match. Patch by Roujin.
2008-01-04 18:18:46 +00:00
peter1138
89fa5dc142
(svn r11758) -Fix(ette): Populate 'void' cargo slots (unused slots in temperate and arctic) with default data as per pre-newcargo support. These slots are still disabled by default, but some NewGRFs (erroneously?) expect the default data.
2008-01-04 17:25:53 +00:00
belugas
a021159e4e
(svn r11757) -Fix(r11727): Don't use a function's default parameter when the value can be (more adequately, even better) computed from another source.
...
Thanks peter1138.
2008-01-04 15:39:08 +00:00
peter1138
cb0e80fcb3
(svn r11756) -Fix: Out of bounds access caused if a vehicle's cargo amount was higher than its capacity when resolving sprite groups.
2008-01-04 13:40:23 +00:00
peter1138
7f4a03d073
(svn r11755) -Fix: Debug level string buffer was not long enough to contain all debug levels.
2008-01-04 10:09:57 +00:00
belugas
bd9741e086
(svn r11754) -Fix(r11753): One too much command separator (;). Thanks glx for spotting
2008-01-04 03:31:08 +00:00
belugas
bed549f4be
(svn r11753) -Codechange: re-indent the switch case structures, as to be more code style oriented.
...
Hoping it makes the whole file easier to follow/read
2008-01-04 03:11:36 +00:00
belugas
975300be97
(svn r11752) -Fix(r11745): Silence a MSVC warning (glx)
2008-01-04 03:04:19 +00:00
belugas
1347ffa8cf
(svn r11751) -Codechange: Enumify some widgets (and others) and while at it, apply some code style
2008-01-04 02:32:58 +00:00
glx
bf57e3d868
(svn r11750) -Revert (r11749): commited too much
2008-01-03 23:54:23 +00:00
glx
e9a35fd75d
(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color
2008-01-03 23:50:58 +00:00
belugas
87a68bd80f
(svn r11748) -Codechange: Remove magic numbers introduced on r11746 and r11727
...
-Codechange: A few bad coding style inadvertendly applied too
2008-01-03 14:33:10 +00:00
belugas
f8925b6faa
(svn r11747) -Change: Return of the prodigal son (or something). Little update (but highly noticed) on the OpenTTD Team
2008-01-03 14:04:08 +00:00
belugas
a7ac4f656c
(svn r11746) -Fix(r11727): Make sure that action 0A does follow the same new ordering of shore sprites. It was not considered in the missing shore patch
2008-01-03 02:39:06 +00:00
skidd13
7b6bfa5fc4
(svn r11745) -Codechange: Unify the spinner widget drawing of the difficulty settings window and make its disabled state min max aware.
2008-01-02 23:59:11 +00:00
glx
3265ed1b70
(svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime 3.14 or superior, as it now have snprintf() and vsnprintf conform to C99
2008-01-02 18:42:51 +00:00
rubidium
8e0f02d840
(svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run.
2008-01-01 22:39:11 +00:00
peter1138
890296c125
(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
2008-01-01 22:34:00 +00:00
peter1138
5c23778065
(svn r11741) -Feature: Add support for NewGRF's train 'tilt' flag. Trains with tilt capability (specific details are per NewGRF set) will be given a 20% speed limit bonus on curves.
2008-01-01 22:24:18 +00:00
egladil
29812e604f
(svn r11740) -Fix [FS#1610]: Modify and possibly discard key events for code points in the unicode private use area.
2008-01-01 18:55:15 +00:00
peter1138
a63359573f
(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
2008-01-01 18:35:31 +00:00
peter1138
c96fcfc21b
(svn r11738) -Codechange: Refactor realistic acceleration's curve counting to use DirDiffs instead of local tables, and remove an unnecessary loop.
2008-01-01 18:12:17 +00:00
peter1138
4ceaf51ff0
(svn r11737) -Fix: Reinstate NewGRF-specified engine list order in autoreplace window.
2008-01-01 17:01:06 +00:00
miham
1cabfce2b0
(svn r11736) -Update: WebTranslator2 update to 2008-01-01 17:42:54
...
catalan - 1 fixed by arnaullv (1)
german - 4 fixed by chu (4)
hungarian - 23 fixed by miham (23)
romanian - 17 fixed, 2 changed by kneekoo (19)
slovenian - 1 fixed by Necrolyte (1)
2008-01-01 16:43:31 +00:00
peter1138
96d09cfae9
(svn r11735) -Fix [FS#1574]: Don't reset loading indicator IDs when only reloading NewGRFs.
2008-01-01 15:06:37 +00:00
belugas
61285721a4
(svn r11734) -Change: Allow ToggleFullScreen to return the result of the operation' attempt. Previously, only visual clues were available.
...
-Fix[FS#1519]: When you can not use this resolution at full screen, now you'll know that it failed.
As for the reason it did not work, each computer/OS has its reason.
2008-01-01 14:20:48 +00:00
peter1138
e5f50b6fde
(svn r11733) -Fix: Max speed for entering stations overrode the max speed of curves
2008-01-01 14:15:28 +00:00
peter1138
a1b482973d
(svn r11732) -Fix (r4150): elrail merge gave elrail, monorail & maglev unintended speed bonuses for curves, as the bonus was based on the railtype index. The bonus is now specified by a property of the railtype.
2008-01-01 14:00:31 +00:00
peter1138
2194b15fdd
(svn r11731) -Fix [FS#1582]: Clear sprite override data before performing NewGRF wagon attach callback. This stopped
...
the callback working for autoreplace and when moving wagons from train to train in a depot.
-Fix (r11724): Don't check wagon attach callback for the chain when moving a single wagon.
2007-12-31 21:51:16 +00:00
miham
90e5041ce1
(svn r11730) -Update: WebTranslator2 update to 2007-12-31 19:55:44
...
catalan - 1 fixed by arnaullv (1)
dutch - 1 fixed by webfreakz (1)
estonian - 1 fixed by kristjans (1)
french - 1 fixed by glx (1)
german - 27 fixed by moewe2 (27)
hungarian - 21 fixed by miham (21)
italian - 1 fixed by lorenzodv (1)
japanese - 1 fixed by ickoonite (1)
korean - 1 fixed by leejaeuk5 (1)
norwegian_bokmal - 23 fixed by jhsoby (23)
polish - 2 fixed by meush (2)
portuguese - 96 fixed, 7 changed by nars (103)
slovak - 1 fixed by lengyel (1)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (13)
turkish - 14 fixed by jnmbk (14)
2007-12-31 18:56:39 +00:00
peter1138
b48e2e178f
(svn r11729) -Codechange: Don't rely on the first railtype's sprite offset being zero when drawing road stations.
2007-12-31 11:13:51 +00:00
rubidium
fa0d8d352d
(svn r11728) -Fix [FS#1577]: if there are no houses that can be build in a specific year yet, force the houses with the earliest introduction year to be available.
2007-12-31 07:14:25 +00:00
belugas
361b12eff0
(svn r11726) -Feature[newGRF]: Extend the Action 5, feature 0D usage. Patch by BigBB
2007-12-31 04:38:11 +00:00
belugas
cd91fe9351
(svn r11725) -Codechange: less a magical number
2007-12-31 02:39:50 +00:00
rubidium
fe71089b0e
(svn r11724) -Fix: make it impossible (for users) to circumvent the length checking of the NewGRF 'allow wagon attach' callback by moving several wagons at a time.
2007-12-30 21:35:48 +00:00
skidd13
54edc19b19
(svn r11723) -Feature: add initial support for Intel C Compiler on linux
...
-Codechange: silence a few warnings of ICC
2007-12-30 19:32:09 +00:00
glx
64c4d926c2
(svn r11722) -Fix (r11703): invalid plural form
2007-12-30 16:34:32 +00:00
rubidium
50b6804b3b
(svn r11721) -Fix: do not disable NewGRFs for 'eternity' during games.
2007-12-29 23:49:48 +00:00
peter1138
6da72ec156
(svn r11720) -Codechange: [NewGRF] Add support for bit 30 of station tile layouts; forcing a sprite to always be opaque.
2007-12-29 21:06:54 +00:00
rubidium
445a733eb6
(svn r11719) -Codechange: split sound.h in a header with types and one with functions.
2007-12-29 09:24:26 +00:00
egladil
bb45f46355
(svn r11718) -Fix [FS#1483]: Show the fullscreen modes available to the cocoa driver in windowed mode too.
2007-12-29 05:15:13 +00:00
smatz
13ffc5b581
(svn r11717) -Fix [FS#1590]: make sure invalid players have all shares owned by PLAYER_SPECTATOR
2007-12-28 18:25:30 +00:00
glx
40b5641eb4
(svn r11716) -Fix [FS#1561]: don't put more than one Random() in function calls because parameter evaluation order is not guaranteed in the c++ standard (can lead to desyncs)
2007-12-28 16:21:29 +00:00
smatz
f0db66a243
(svn r11715) -Fix: do not use GetTrackBits() for depots and waypoints while converting railtype
2007-12-28 15:27:12 +00:00
belugas
1b76c8bb67
(svn r11714) -Fix[FS#1569]: Do not allow player inauguration date on scenarios to be bigger than current year.
...
This will not (yet) be true if you are loading a scenario with the "-g" command line option.
2007-12-28 04:20:56 +00:00
belugas
db45093f7b
(svn r11713) -Codechange: Move some declarations and definitions in a more logical disposition
2007-12-28 03:14:55 +00:00
maedhros
ad061e6d60
(svn r11712) -Fix (r9315): Add more house string id ranges to MapGRFStringID so NewGRFs use the proper string ids.
2007-12-27 20:49:44 +00:00
belugas
716ef17757
(svn r11711) -Codechange: Name the Save Load Dialog Mode enum
2007-12-27 17:29:27 +00:00
bjarni
2c62136ace
(svn r11710) -Feature: [build vehicles windows] added sorting for cost, running costs and speed to road vehicles and ships build windows
2007-12-27 15:47:08 +00:00
egladil
fc3312d8a3
(svn r11708) -Fix [FS#1598]: Removed include of variables.h as it was no longer needed and caused compilation to fail.
2007-12-27 14:45:10 +00:00
smatz
c10d3da133
(svn r11707) -Fix: do not allow refitting flooded (destroyed) vehicles
2007-12-27 14:10:47 +00:00
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
2007-12-27 13:35:39 +00:00
smatz
ae3206cd97
(svn r11705) -Fix [FS#1557]: trains could have sprites with wrong direction when reversing, also was inconsistent with save/load process (possible desyncs)
2007-12-27 13:25:23 +00:00
rubidium
7f037d15d7
(svn r11704) -Codechange: remove another bunch of useless includes.
2007-12-26 23:04:26 +00:00
miham
8b726c2f4a
(svn r11703) -Update: WebTranslator2 update to 2007-12-26 17:33:24
...
estonian - 16 changed by kristjans (16)
polish - 94 fixed, 6 changed by meush (100)
russian - 22 fixed by Smoky555 (22)
spanish - 11 fixed by eusebio (11)
traditional_chinese - 25 fixed, 4 changed by xbddc (29)
2007-12-26 16:38:34 +00:00
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
2007-12-26 11:45:43 +00:00
rubidium
7058b2cce2
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
2007-12-25 23:42:52 +00:00
skidd13
bdf4cf6b19
(svn r11698) -Change: Make the abort/accept process of the difficulty window a bit less confusing
...
-Change: Make the highscore button in the difficulty window a bit more obvious
-Codechange: Enumify the window-widgets of the difficulty window
2007-12-25 15:56:41 +00:00
rubidium
d821e5e92b
(svn r11697) -Fix [FS#1585]: strgen did not (always) compile properly.
2007-12-25 14:08:56 +00:00
skidd13
7bcc4d28e1
(svn r11695) -Codechange: Converted the md5 algorithm to OOP
...
-Codechange: Adapt the md5 algorithm to the OpenTTD source
2007-12-25 13:59:21 +00:00
rubidium
851f19b341
(svn r11694) -Codechange: move more endianness related stuff to endian_func.hpp.
2007-12-25 13:28:09 +00:00
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
egladil
15c1af0517
(svn r11690) -Fix: Since indices into the patch array is sent over the network having conditionally compiled entries in the table can cause desyncs. Moving them to the end will hide this issue, but it should really be solved in a better way.
2007-12-25 01:29:54 +00:00
smatz
9060dbdb04
(svn r11689) -Fix: compilation error and most of warnings for gcc 4.3
2007-12-23 21:02:40 +00:00
egladil
217539ee24
(svn r11688) -Fix [FS#1581]: Compilation was broken on OS X again.
2007-12-23 18:08:39 +00:00
skidd13
fec9cd587c
(svn r11687) -Codechange: move some defines to a better place
2007-12-23 14:06:03 +00:00
glx
43f03dff68
(svn r11686) -Fix (r11684): win32 compilation was broken again :)
2007-12-23 13:31:24 +00:00
rubidium
20ecff81b0
(svn r11685) -Codechange: remove a few 'useless' includes.
2007-12-23 11:20:41 +00:00
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
belugas
a3693160cf
(svn r11683) -Fix(r11682): win32.cpp still requires gfx.h inclusion, at least for now.
2007-12-23 04:31:45 +00:00
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
rubidium
f9c26f80c5
(svn r11681) -Fix (r11674): hopefully fix the compile error on big endian machines.
2007-12-22 21:01:49 +00:00
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
2007-12-21 22:50:51 +00:00
glx
4fc66235cb
(svn r11679) -Add: [newgrf] support for station vars 67 and 68
2007-12-21 22:11:55 +00:00
bjarni
c32c07e238
(svn r11678) -Fix (r11674): [OSX] fixed compilation
2007-12-21 22:08:59 +00:00
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
glx
a122971ae2
(svn r11676) -Fix (r11674): some references to macros.h were left
2007-12-21 21:16:14 +00:00
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
2007-12-21 19:21:21 +00:00
rubidium
60c82d0f8c
(svn r11673) -Codechange: move the overflow safe type to a separate file.
2007-12-21 08:34:53 +00:00
rubidium
c201bc35f0
(svn r11672) -Codechange: refactor some stuff out of gui.h.
2007-12-21 07:38:36 +00:00
smatz
33c86f83e2
(svn r11671) -Fix: sometimes a vehicle was selected in the vehicle list when it was opened
2007-12-20 22:45:56 +00:00
smatz
0e727b8e63
(svn r11670) -Feature [FS#1565]: list neutral stations where the player has service in the station list too
2007-12-19 23:35:14 +00:00
rubidium
be923601bf
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
2007-12-19 23:26:02 +00:00
rubidium
2cf7d5b2cb
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
2007-12-19 20:45:46 +00:00
rubidium
8bfbfd0031
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
2007-12-19 19:44:29 +00:00
glx
41e8396f57
(svn r11666) -Fix (r11504): when removing buoys, return to water or canal depending on their owner
2007-12-19 02:41:25 +00:00
belugas
0223de5442
(svn r11665) -Fix: Animation informations should not be copied from original industry tile spec, while doing an action 00, industry tile, prop 08.
...
Fix directly inspired by Csaboka
2007-12-18 21:25:44 +00:00
rubidium
818a23e7f2
(svn r11664) -Codechange: use more specific ("rail_type.h" instead of "rail.h" that includes way more than only "rail_type.h") includes at some places.
2007-12-18 20:58:12 +00:00
rubidium
efc18e8ab3
(svn r11663) -Codechange: moving of the road related types and functions.
2007-12-18 20:38:16 +00:00
rubidium
2e2d76f445
(svn r11662) -Codechange: move some rail types/related functions around.
2007-12-18 20:10:21 +00:00
rubidium
0995194162
(svn r11661) -Codechange: some header reworks in order to try to reduce the compile time of OpenTTD by reduce the amount of circular-ish dependencies.
2007-12-18 19:52:14 +00:00
miham
962f6361ff
(svn r11660) -Change: english -> english (uk), english_us ->english (us)
2007-12-18 18:08:51 +00:00
smatz
31765f0dfe
(svn r11659) -Fix [FS#1563]: do not allow modifying non-uniform stations when non-uniform stations are disabled
2007-12-18 18:02:00 +00:00
smatz
531651293e
(svn r11657) -Fix: show better error message when trying to convert rail
...
-Codechange: merge DoConvert functions into one, make test and exec runs the same for tunnels/bridges
2007-12-17 22:29:27 +00:00
smatz
8d91abdfe3
(svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations
2007-12-17 22:04:07 +00:00
miham
89e49e5e95
(svn r11655) -Update: WebTranslator2 update to 2007-12-17 20:16:03
...
danish - 22 fixed by ThomasA (22)
estonian - 18 fixed, 47 changed by kristjans (65)
italian - 4 changed by lorenzodv (4)
norwegian_nynorsk - 20 fixed by pollux (20)
2007-12-17 19:16:53 +00:00
miham
bc171a0153
(svn r11654) -Change: renaming american languagefile to english_US
2007-12-17 18:49:51 +00:00
egladil
4c3186d2d0
(svn r11653) -Feature: [OSX] Allow windowed mode subdrivers to be disabled at compile time.
2007-12-17 07:47:21 +00:00
smatz
d5dbce8331
(svn r11652) -Codechange: add the svn $ header for several files
2007-12-17 01:35:45 +00:00
rubidium
8d1b25beee
(svn r11651) -Codechange [FS#1555]: implement GRF parameter querying for industries and fix a 'bug' as side effect.
2007-12-16 23:10:30 +00:00
rubidium
c231998248
(svn r11650) -Fix: 'initialised' NewGRFs could still be deactivated in the later 'activation' pass.
2007-12-16 22:21:34 +00:00
smatz
d56a690ba4
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
2007-12-16 19:30:42 +00:00
rubidium
cdee7d4cb8
(svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key.
2007-12-16 19:28:07 +00:00
rubidium
274cbd72fe
(svn r11647) -Fix (r11646): it did not compile without freetype...
2007-12-16 19:21:28 +00:00
rubidium
2b8863c846
(svn r11646) -Codechange: check whether (some) characters are missing in the current 'font' for the 'currently' chosen language and give a warning when that does happen.
2007-12-16 18:38:19 +00:00
glx
78fd9216f2
(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour
2007-12-16 17:50:09 +00:00
smatz
926fe5c9e9
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
2007-12-16 15:38:51 +00:00
rubidium
8ce9c5f29b
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
2007-12-16 10:54:08 +00:00
smatz
60f9bbd17e
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
2007-12-15 23:11:18 +00:00
rubidium
ad218166ec
(svn r11640) -Fix: missed change of include when moving stuff to random_func.cpp
2007-12-15 22:05:02 +00:00
smatz
f13a60b90c
(svn r11639) -Codechange: simplify EnsureNoVehicleOnGround
2007-12-15 20:30:43 +00:00
smatz
13c11e9af6
(svn r11638) -Codechange: use faster check in SignalVehicleCheck for tunnel/bridge
2007-12-15 19:46:34 +00:00
smatz
c972d309be
(svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain
2007-12-15 16:11:29 +00:00
smatz
76391f4498
(svn r11636) -Fix: it was possible to build/remove road/tram in tunnel/bridge when there was vehicle in it
2007-12-15 13:59:38 +00:00
belugas
c8f4810dac
(svn r11635) -Codechange: Give a more informative debug message when encountering unknown newgrf feature in action 00 handling.(FS#1551, Bilbo)
2007-12-15 03:42:41 +00:00
smatz
57a83e7c76
(svn r11634) -Fix: update signals when deleting crashed train on a bridge, update even when train is rotated
2007-12-15 00:04:01 +00:00
smatz
d31506654c
(svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into GetVehicleTunnelBridge
2007-12-14 23:21:20 +00:00
rubidium
6685c7c8e2
(svn r11632) -Fix [FS#1541]: vehicles were still followed when sold.
2007-12-14 21:11:30 +00:00
glx
3a0f350ab4
(svn r11631) -Fix (r11585, r11626): remove MSVC warnings
2007-12-14 00:25:00 +00:00
rubidium
5b689aa665
(svn r11630) -Fix [FS#1544] (r11556): the chat GUI got broken.
2007-12-13 23:26:00 +00:00
rubidium
2160338662
(svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor.
2007-12-13 18:46:04 +00:00
miham
ceabed7e7e
(svn r11628) -Update: WebTranslator2 update to 2007-12-13 09:47:23
...
american - 30 fixed by WhiteRabbit (30)
brazilian_portuguese - 22 fixed by fukumori (9), tucalipe (13)
bulgarian - 8 fixed by thetitan (8)
catalan - 22 fixed by arnaullv (22)
croatian - 17 fixed by knovak (17)
czech - 22 fixed by Hadez (22)
danish - 1 fixed, 4 changed by Bjarni (5)
dutch - 22 fixed by habell (22)
estonian - 10 fixed by kristjans (10)
french - 7 fixed, 2 changed by glx (9)
italian - 7 fixed, 2 changed by lorenzodv (9)
japanese - 23 fixed by ickoonite (23)
korean - 33 fixed, 7 changed by leejaeuk5 (40)
norwegian_nynorsk - 9 fixed by pollux (9)
romanian - 13 fixed, 3 changed by CrystyB (16)
slovak - 22 fixed by lengyel (22)
slovenian - 22 fixed by Necrolyte (22)
swedish - 10 fixed by daishan (10)
turkish - 20 fixed by jnmbk (20)
ukrainian - 22 fixed by mad (22)
2007-12-13 08:53:09 +00:00
glx
ab99e83a83
(svn r11627) -Fix [FS#1532] (r11145): poping from text reference stack must be done in a precise order. But some compiler (MSVC) over optimised it and inverted this order.
2007-12-13 02:04:09 +00:00
skidd13
3b849778c1
(svn r11626) -Fix [FS#1529]: Pause state wasn't set correctly in multiplayer saves
2007-12-12 21:56:10 +00:00
smatz
3b59b68a15
(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too
2007-12-12 14:37:35 +00:00
belugas
a7fa65a2e3
(svn r11624) -Fix[FS#1530]: An error in the translation of bitset to scroll directions made it so that up-down-right arrow keys did scrolled up, while it should have scrolled right instead. It was initially interpreted as left-right-up.
2007-12-12 02:28:08 +00:00
smatz
cd58045234
(svn r11623) -Fix [FS#1533] (r11619): assert when train is going over two crossings next to each other
2007-12-11 22:50:13 +00:00
rubidium
ad022c535c
(svn r11622) -Codechange: support the unicode version of the 'control' characters.
2007-12-11 21:25:48 +00:00
rubidium
745da6563f
(svn r11621) -Fix [FS#1525]: there were still some cases where one could not build a tram track, but the tram could become blocked.
2007-12-11 20:28:53 +00:00
belugas
13fe232f68
(svn r11620) -Change: Some are going, some are coming, some we do not know exactly. Little update on the OpenTTD Team
2007-12-11 19:59:53 +00:00
smatz
3a62919ba3
(svn r11619) -Fix [FS#1531]: do not make crossing red behind depot the train is entering
2007-12-11 19:09:36 +00:00
glx
946fa3b9ee
(svn r11618) -Fix: buoys are just waypoints, so don't allow load/unload/transfert for them
2007-12-11 17:44:55 +00:00
belugas
fd23999fb9
(svn r11617) -Feature(ette): Add the same game-mode keyboard shortcuts in scenario more.(Bilbo)
2007-12-11 03:41:33 +00:00
rubidium
28c436a054
(svn r11616) -Fix [FS#1526]: sometimes large values could go off the chart.
2007-12-10 22:26:24 +00:00
glx
4320447aef
(svn r11615) -Fix (r11609): temperate banks can only be built in towns (over a house)
2007-12-10 17:26:49 +00:00
skidd13
7638c9b165
(svn r11614) -Fix: The about dialog scrolling was connected to the mouse instead of the internal ticks
2007-12-09 22:14:41 +00:00
glx
15085aa7f4
(svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds
2007-12-09 21:20:21 +00:00
glx
8bd26725d3
(svn r11610) -Cleanup (r8572): remove orphan comment
2007-12-09 20:20:52 +00:00
rubidium
a510606144
(svn r11609) -Fix [FS#1524]: wrong error messages were shown when trying to build some industries in the scenario editor.
2007-12-09 18:51:25 +00:00
rubidium
aa39d2a618
(svn r11608) -Fix: do not trigger industries, but only the industry's tiles.
2007-12-09 18:27:40 +00:00
skidd13
eff1c37b77
(svn r11607) -Codechange: Enumify the industry widgets
...
-Feature: Enable doubleclick in the found new industries window to build an industries
2007-12-09 17:07:50 +00:00
rubidium
bde4b44473
(svn r11606) -Revert (r11584): since FS#1482 is solved, we do not need the extra checking and such anymore.
2007-12-09 15:17:49 +00:00
rubidium
b6bc3aa698
(svn r11605) -Fix [FS#1482, FS#1523]: wrong count of Kirby trains when a ship was build.
2007-12-09 15:15:26 +00:00
smatz
d03207df56
(svn r11604) -Fix: canal tiles were not marked dirty when surrounding tile got flooded, causing glitches
2007-12-08 21:57:24 +00:00
smatz
911273948b
(svn r11603) -Fix [FS#1481]: make price for railtype conversion more realistic
2007-12-08 19:53:30 +00:00
smatz
189771541e
(svn r11601) -Codechange: more strict break conditions for _userstring, assert when it overflows anyway (eg. code change without proper check change)
2007-12-08 18:50:39 +00:00
glx
bfda3c82f1
(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions.
2007-12-08 15:47:23 +00:00
bjarni
593b49dc49
(svn r11599) -Change: [OSX] 10.4 will now use quickdraw for window mode instead of quartz
...
The reason is that quickdraw is way faster (try fast forward)
10.5 will still use quartz as it can't handle quickdraw.
2007-12-08 15:21:37 +00:00
rubidium
97a8a0d77f
(svn r11598) -Change [FS#1518]: some tooltips of the main toolbar did not 'enumerate' all options in a drop down menu.
2007-12-08 14:54:43 +00:00
rubidium
33cdfc71dc
(svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions.
2007-12-08 14:50:41 +00:00
belugas
f271038461
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
2007-12-08 03:10:50 +00:00
belugas
902b20263c
(svn r11595) -Codechange: add a new member to Window struct, based on its function counterpart HandleButtonClick.
2007-12-08 02:55:47 +00:00
glx
e3f4d0e72a
(svn r11594) -Fix: don't allow changing network only patches settings from console when not in network game
2007-12-08 01:36:40 +00:00
belugas
42d6f195cf
(svn r11593) -Cleanup: remove some forgotten pieces of evidence of a mischief
2007-12-08 01:30:18 +00:00
belugas
544325590c
(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function
2007-12-08 01:20:47 +00:00
belugas
ecb9382c7e
(svn r11591) -Codechange: remove now unused widget accessors.
2007-12-08 01:02:19 +00:00
glx
7e7606b0d3
(svn r11590) -Fix (r11193): IsSlopeRefused() result was half wrong
2007-12-07 21:16:38 +00:00
rubidium
c3ae7faa13
(svn r11589) -Fix [FS#1514]: when ship depots got destroyed they always returned to water, even when it should've been canals.
2007-12-07 21:14:54 +00:00
glx
b00f621239
(svn r11588) -Codechange: use the new member introduced in r11551
2007-12-07 18:05:49 +00:00
skidd13
30a5f9abf3
(svn r11587) -Fix (r11457): The one way road button wasn't reset on abort
2007-12-07 17:51:27 +00:00
glx
d129a7295c
(svn r11586) -Fix: make another widget 'accessor' function const when it should be const.
2007-12-07 17:42:15 +00:00
skidd13
10360288d0
(svn r11585) -Codechange: Enumify the widgets of the newGRF gui and a slight cleanup there
2007-12-07 12:22:34 +00:00
rubidium
2b9f51219f
(svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482.
2007-12-06 22:29:47 +00:00
rubidium
39b1a8302b
(svn r11583) -Fix [FS#1484]: windows could get completely missing when one resized the window to something very small.
2007-12-06 20:55:48 +00:00
smatz
57fc61009e
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
2007-12-06 20:48:15 +00:00
rubidium
9b7b34fc2c
(svn r11581) -Codechange: add some missing cargo classes and some documentation.
2007-12-06 20:36:46 +00:00
skidd13
b57274cdf2
(svn r11580) -Feature: Memorise the resizing of the build bridge selection window during runtime
2007-12-06 18:29:31 +00:00
belugas
1495f6aaf8
(svn r11579) -Revert(r11578): some cases of key propagation are not handled correctly.
...
A better solution will be deviced, but not now. Let's not cause a ton of bug reports
2007-12-06 15:58:39 +00:00
belugas
cc29d43876
(svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
...
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
2007-12-06 02:31:47 +00:00
smatz
9cab7af581
(svn r11577) -Fix: invalidate 'list trains/roadvehs/ships/planes' widgets when station part is added/removed
2007-12-05 19:13:42 +00:00
smatz
6ab52ddf89
(svn r11576) -Codechange: enumerize and comment station GUI
2007-12-05 17:08:10 +00:00
smatz
15a5a1a95b
(svn r11575) -Fix [FS#1502]: widget numbers of StationViewWindow were incorrect at some places
2007-12-05 16:55:33 +00:00
smatz
fcfd0f1c76
(svn r11574) -Fix: flood train stations when there are no trains on border tiles too (when non-uniform stations are OFF)
2007-12-05 00:16:20 +00:00
rubidium
1c30d0b966
(svn r11573) -Codechange: pause games that miss GRFs by default and throw some warnings and disclaimers when you want to unpause it.
2007-12-04 22:50:07 +00:00
glx
be48614ef8
(svn r11572) -Fix [FS#1494]: reinitialise windows system before loading a savegame
2007-12-04 22:22:50 +00:00
rubidium
4f0e072f3f
(svn r11571) -Fix [FS#1493]: road vehicle getting to the wrong side of a station when trying to overtake in there.
2007-12-04 21:53:09 +00:00
smatz
d4322bc8aa
(svn r11570) -Fix: do not flood rail station tiles when there is a vehicle on it (when non-uniform stations are ON)
2007-12-04 21:39:03 +00:00
rubidium
eb0be0322a
(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
2007-12-04 18:42:08 +00:00
belugas
586d2da917
(svn r11568) -Codechange: Use bit shifts instead of values for flags. It helps readability a little bit.
2007-12-04 17:51:50 +00:00
glx
06c131b244
(svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain
2007-12-04 15:32:54 +00:00
smatz
411dec5c3e
(svn r11565) -Revert: part of r11564
2007-12-03 22:40:18 +00:00
skidd13
5d74f2ced4
(svn r11564) -Codechange: Increase the usage of the for_each_bit macro and rename it fitting to the naming style
2007-12-03 09:19:19 +00:00
skidd13
2b372e7e7b
(svn r11563) -Codechange: Align the preprocessor code in stdafx.h with tabs
2007-12-02 21:43:16 +00:00
rubidium
f758c337c7
(svn r11562) -Fix [FS#1503] (r11546): aircraft sometimes stopped mid-air when the airport got destroyed.
2007-12-02 21:35:44 +00:00
glx
5da6900c3f
(svn r11561) -Fix [FS#1504] (r11463): group list was not updated when removing the last group
2007-12-02 20:13:12 +00:00
rubidium
8ae661b176
(svn r11560) -Codechange: replace 'custom' version of FindLastBit with the generic.
2007-12-02 19:23:46 +00:00
rubidium
8c0122f429
(svn r11559) -Fix [FS#1505]: overflow when drawing graphics with high company values.
2007-12-02 19:21:56 +00:00
rubidium
49e6247de8
(svn r11557) -Codechange: send and store the passwords a little more secure to/in the servers.
...
Each server and game yield a (usually) different 'salt'. This salt is used by the clients to hash their passwords. This way the passwords are not sent in clear text and it is not trivial to use those hashes on other servers.
NOTE: It is still NOT safe to use your trusted passwords and it will not stop people from being able to 'hijack' your password, it only makes it harder to do and certainly much less trivial than just dumping passwords from the memory.
2007-12-02 15:12:19 +00:00
rubidium
2880047689
(svn r11556) -Feature: allow setting a default password for new companies in network games.
2007-12-02 14:48:26 +00:00
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
2007-12-02 14:29:48 +00:00
rubidium
c0790fff86
(svn r11554) -Codechange: be more consistent with the naming of the widget functions.
2007-12-02 13:32:41 +00:00
rubidium
f8be009c74
(svn r11553) -Fix: make a few widget 'accessor' function const when they should be const.
2007-12-02 12:10:48 +00:00
miham
a7929a8de9
(svn r11552) -Update: WebTranslator2 update to 2007-12-02 12:31:46
...
czech - 1 fixed by Hadez (1)
french - 15 fixed by glx (15)
galician - 2 fixed by Condex (2)
italian - 15 fixed by lorenzodv (15)
norwegian_bokmal - 6 fixed by jhsoby (6)
russian - 7 fixed by Smoky555 (7)
slovenian - 1 fixed by Necrolyte (1)
spanish - 1 fixed by eusebio (1)
2007-12-02 11:32:24 +00:00
belugas
31cb48b1ad
(svn r11551) -Codechange: Introduction of widget control members on struct Window. These "new" members have the exact same functionalities as their pure functions "genitors"
...
Ex: "Window::SetWidgetLoweredState(byte widget_index, bool lowered_stat)" is the member corresponding to "SetWindowWidgetLoweredState(Window *w, byte widget_index, bool lowered_stat)"
2007-12-02 00:59:48 +00:00
skidd13
b9c3ea6a01
(svn r11550) -Fix (r11547): Updated the data files regarding to r11549
2007-12-02 00:53:01 +00:00