Commit Graph

2593 Commits (e40dea16e91d18b18a90919a0cbb48e462cd5e57)
 

Author SHA1 Message Date
bjarni e40dea16e9 (svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for 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
19 years ago
bjarni 6af8bd605e (svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money 19 years ago
bjarni 069ff61ef5 (svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail 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
19 years ago
peter1138 4f5dee9e58 (svn r3126) Autoreplace: Only the first vehicle in a chain should be marked as entering a depot, so call moved out of DoVehicleTrigger loop. 19 years ago
tron 47f0e22853 (svn r3125) Symbolic names for skiping sprites and the end of the sprite list 19 years ago
peter1138 44f06c8bf0 (svn r3124) Alter train loading/unloading time to use the actual length of the train instead of the number of wagons. The actual length is cached in the first vehicle of the train. 19 years ago
Darkvater bf0d4ef36f (svn r3123) eh, don't press enter after typing text, previous patch wasn't finished. Now strgen really behaves correctly. Thanks again glx 19 years ago
Darkvater 1681c231d6 (svn r3122) - Fix (regression): recent change to strgen which 'fixed' all 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) 19 years ago
miham 7a2f72d3fc (svn r3121) [Translations] Moved turkish.txt from unfinished to stable 19 years ago
tron b2bd21c9a2 (svn r3120) Update the turkish translation, about 2000 strings.
Many thanks to jnmbk for his effort!
19 years ago
tron 00037cb9c9 (svn r3119) Don't pretend to be the Windows version of TTD all the time. When being asked answer according to _use_dos_palette. (Suggestion by Belugas) 19 years ago
tron 6a585f5430 (svn r3118) Name 3 palette modifiers properly (belugas) 19 years ago
miham 28f529f56a (svn r3117) [Translations] Updated french 19 years ago
bjarni 40f624f0e8 (svn r3116) -Fix: [autoreplace] fixed issue where autorenewing/autoreplacing a plane could lock up an airport
this will not fix already locked up airports
        this bug was introduced in rev 3111
19 years ago
tron 93914d3472 (svn r3115) Fix typos, remove untranslated strings, use the correct charset 19 years ago
tron c81119b371 (svn r3114) Close two gaps in the sprite array when loading openttd.grf. That's seven more free sprite slots, yay! 19 years ago
truelight 35b8ada5f8 (svn r3113) -Fix: The Makefile had 64bit code which was obsolete, not to say 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.
19 years ago
bjarni 0dced92212 (svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater) 19 years ago
bjarni fa5ca040e9 (svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c 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)
19 years ago
peter1138 229535750b (svn r3110) Replace another 256 with TOTAL_NUM_ENGINES. 19 years ago
peter1138 8d4031a570 (svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES 19 years ago
tron 3a925e230f (svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums 19 years ago
peter1138 f50ec50d9b (svn r3107) -NewGRF: Move train y-position offset adjustment to remove code duplication, and make it apply only to vehicles with a custom image. 19 years ago
peter1138 84684ef1a3 (svn r3106) -Autoreplace feature: Continue to show old vehicles in replace 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. 19 years ago
bjarni f0629b5fc3 (svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should) 19 years ago
bjarni 3e7f281519 (svn r3104) -Codechange: [refit] removed now obsolite code that the old autoreplace needed 19 years ago
Darkvater ab1a7464e8 (svn r3103) - Fix: [ 1339000 ] Fix: strgen and plural forms fatal error for untranslated strings. (glx). Also output the correct lines for these warnings, for missing strings the lines correspond with the ones in english.txt 19 years ago
Darkvater 7a09fffa3a (svn r3102) - Fix (regression): Newly added sprite had problems when newgrf's where loaded. Thanks Tron for explaining what the problem was and how it should be solved. 19 years ago
bjarni 17d341b902 (svn r3101) -Codechange: added _new_vehicle_id
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()
19 years ago
bjarni a110f575d7 (svn r3100) -Codechange [Clone vehicles] Major change to clone vehicles
removed duplicated code and added DoCommand, which used the define build commands added with autoreplace
	This should not affect gameplay at all
19 years ago
tron 4caa0e593d (svn r3099) Copy&pasto in r3098 19 years ago
tron 7c14b86aaf (svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI 19 years ago
Darkvater 4cc9761cb5 (svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash 19 years ago
Darkvater 71fb375f8c (svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
- Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
19 years ago
bjarni eac803845e (svn r3093) -Fix: [autoreplace] fixed issue where the money limit message showed up in some cases when no replace was needed 19 years ago
tron e310aef45f (svn r3090) Remove long dead pieces of code 19 years ago
peter1138 6b0bbde53d (svn r3089) Fix possible issue with out-of-bounds array access in replace vehicle gui, and add brief commenting. 19 years ago
bjarni 85002131fe (svn r3088) -Fix: [OSX] fixed issue where OSX could not dynamic link to quicktime [ 1334917 ] 19 years ago
tron cb0c82fdc3 (svn r3087) Rewrite GetPlayerRailtypes() so it doesn't depend on magical numbers to sort out wagons 19 years ago
bjarni d0d6804bf8 (svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit) 19 years ago
bjarni 0f5c8787f8 (svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
this is a complete rewrite, that makes use of existing commands like build and sell
        this means that multiheaded train engines are replaced correctly
19 years ago
tron 5536de2319 (svn r3080) byte -> PlayerID, int -> EngineID, -1 -> INVALID_ENGINE 19 years ago
tron 355d834c6e (svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number 19 years ago
tron 181d586a7c (svn r3078) Some more stuff, which piled up:
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants
19 years ago
tron 0b936c3222 (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
19 years ago
tron 4642ac94a9 (svn r3076) s/OSX/OS X/
and Unix is spelled "Unix", not "Linux"
19 years ago
peter1138 04a4166889 (svn r3075) -PBS: Keep track reservation state while building and removing a waypoint. 19 years ago
peter1138 49c627ba35 (svn r3074) -NewGrf: Fix stupid typo in weight setting. 19 years ago
tron d7cbd0d4c3 (svn r3073) int/byte -> EngineID/PlayerID/VehicleID
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE
19 years ago
tron 6d16862126 (svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them 19 years ago