summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-11-06(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification ↵peter1138
by cargo classes.
2005-11-06(svn r3147) Fix crash when building dual-head rail vehicles...peter1138
2005-11-06(svn r3146) Avoid use of variable size declared arrays when allocating ↵peter1138
articulated rail vehicles.
2005-11-06(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.peter1138
2005-11-06(svn r3144) -Fix: a new train is now made if the front unit is an engine and ↵bjarni
the former front engine is moved away (Meush)
2005-11-05(svn r3143) -Codechange: greatly increased speed when allocating vehiclesbjarni
This increases the speed greatly when allocating more than one at a time (planes, artic engines, cloning...) and when adding another block of vehicles to the vehicle pool (adding 512 vehicles each time)
2005-11-05(svn r3142) Remove a now invalid case fall-through and use helper function ↵peter1138
instead of map access.
2005-11-05(svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with ↵peter1138
appropriate GB()
2005-11-05(svn r3140) Building/removing a waypoint could leave old PBS reservations ↵peter1138
behind. This ensures they are cleared.
2005-11-05(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is ↵peter1138
used, for example, by coal tenders.
2005-11-05(svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to ↵bjarni
allocate some vehicles to clone a train, but not for all cars Now it gives "too many vehicles" error message instead To make this work, AllocateVehicles() needed to be moved to vehicle.c (from aircraft_cmd.c) and made non-static
2005-11-04(svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a ↵bjarni
vehicle entered a depot even though the goto depot was canceled this assert could be reached by clicking on the goto depot button to cancel goto depot from the orders and the vehicle still entered the depot. The flags in that case would not be "normal" anymore. An additional check is added to prevent this
2005-11-04(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more ↵bjarni
than one vehicle will try to move cargo from all vehicles currently this applies to planes and multiheaded train engines (no more lost airmail) added GetNextEnginePart() that returns the next vehicle in an engine nomatter what type it is when more types of multivehicle engines are added, they will have to be added here too or autoreplace will not remove all cargo
2005-11-04(svn r3135) Use symbolic names in the tables, which hold the information ↵tron
about accepted goods of industry tiles, instead of magic numbers
2005-11-04(svn r3134) Forgot to commit one file in r3133tron
2005-11-04(svn r3133) - static, consttron
- remove long unused stuff and bogus comments - complement struct typedefs - remove read-only (_demo_mode) and unused (_fix_mouse_at) global variables
2005-11-04(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.peter1138
2005-11-04(svn r3131) Enable panning of audio relative to screen position.peter1138
2005-11-04(svn r3130) Calculate shorter wagon lengths more precisely in train depot ↵peter1138
window. This affects wagon position, the scroll bar, and the train length counter. No trial and error is required to get the correct length now.
2005-11-03(svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for ↵bjarni
autoreplacing and could end up with negative money this is not the same bug as in rev 3128, which means you actually paid 3 times. Now it pays correctly
2005-11-03(svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for ↵bjarni
autoreplacing and could end up with negative money
2005-11-03(svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail ↵bjarni
to stop when autoreplacing this would result in the construction of a new vehicle while the old one just continued added an assert to make sure it's always stopped before trying to sell the old vehicle
2005-11-03(svn r3126) Autoreplace: Only the first vehicle in a chain should be marked ↵peter1138
as entering a depot, so call moved out of DoVehicleTrigger loop.
2005-11-03(svn r3125) Symbolic names for skiping sprites and the end of the sprite listtron
2005-11-03(svn r3124) Alter train loading/unloading time to use the actual length of ↵peter1138
the train instead of the number of wagons. The actual length is cached in the first vehicle of the train.
2005-11-02(svn r3123) eh, don't press enter after typing text, previous patch wasn't ↵Darkvater
finished. Now strgen really behaves correctly. Thanks again glx
2005-11-02(svn r3122) - Fix (regression): recent change to strgen which 'fixed' all ↵Darkvater
strings with wrong plural forms. Thanks for glx for pointing this out (after I changed his original patch which was correct..whohoo braindeadness; here I come)
2005-11-02(svn r3121) [Translations] Moved turkish.txt from unfinished to stablemiham
2005-11-02(svn r3120) Update the turkish translation, about 2000 strings.tron
Many thanks to jnmbk for his effort!
2005-11-02(svn r3119) Don't pretend to be the Windows version of TTD all the time. ↵tron
When being asked answer according to _use_dos_palette. (Suggestion by Belugas)
2005-11-02(svn r3118) Name 3 palette modifiers properly (belugas)tron
2005-11-01(svn r3117) [Translations] Updated frenchmiham
2005-11-01(svn r3116) -Fix: [autoreplace] fixed issue where autorenewing/autoreplacing ↵bjarni
a plane could lock up an airport this will not fix already locked up airports this bug was introduced in rev 3111
2005-11-01(svn r3115) Fix typos, remove untranslated strings, use the correct charsettron
2005-11-01(svn r3114) Close two gaps in the sprite array when loading openttd.grf. ↵tron
That's seven more free sprite slots, yay!
2005-10-31(svn r3113) -Fix: The Makefile had 64bit code which was obsolete, not to say ↵truelight
wrong. This removes all the 64bit stuff from the Makefile. Everything should work just fine. Also removed the warning on amd64, 64bit OpenTTD is stable. Tnx to dst for commenting and testing on this subject.
2005-10-31(svn r3112) -Feature: [autoreplace] profit counters are now remembered too ↵bjarni
(request by Darkvater)
2005-10-31(svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c ↵bjarni
line 378 running MaybeReplaceVehicle() is now delayed until after the loop in CallVehicleTicks() This avoids selling the vehicle the loop currently works with (and continues to work with afterwards)
2005-10-31(svn r3110) Replace another 256 with TOTAL_NUM_ENGINES.peter1138
2005-10-31(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINESpeter1138
2005-10-31(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by ↵tron
adding/using some sprite enums
2005-10-30(svn r3107) -NewGRF: Move train y-position offset adjustment to remove code ↵peter1138
duplication, and make it apply only to vehicles with a custom image.
2005-10-30(svn r3106) -Autoreplace feature: Continue to show old vehicles in replace ↵peter1138
window after all player's vehicles of that type have been replaced. This allows the replacement to be removed. These vehicles are shown in grey instead of the player's colour.
2005-10-30(svn r3105) readded 2 line that should not have been removed in last ↵bjarni
commit(3104). Now cargo are removed when refitting (like it should)
2005-10-30(svn r3104) -Codechange: [refit] removed now obsolite code that the old ↵bjarni
autoreplace needed
2005-10-30(svn r3103) - Fix: [ 1339000 ] Fix: strgen and plural forms fatal error for ↵Darkvater
untranslated strings. (glx). Also output the correct lines for these warnings, for missing strings the lines correspond with the ones in english.txt
2005-10-29(svn r3102) - Fix (regression): Newly added sprite had problems when ↵Darkvater
newgrf's where loaded. Thanks Tron for explaining what the problem was and how it should be solved.
2005-10-29(svn r3101) -Codechange: added _new_vehicle_idbjarni
this var works like _new_train_id and the rest of that kind of vars, except it is set each time a vehicle is build, nomatter what type this is a nice tool to code vehicle independent code, which in turn can reduce code duplication Right now it's used in ReplaceVehicle() and CmdCloneVehicle()
2005-10-29(svn r3100) -Codechange [Clone vehicles] Major change to clone vehiclesbjarni
removed duplicated code and added DoCommand, which used the define build commands added with autoreplace This should not affect gameplay at all
2005-10-29(svn r3099) Copy&pasto in r3098tron