rubidium
313fc8930f
(svn r11016) -Fix [FS#1172]: stations would also be given cargo when vehicles have only dropped cargo of that particular type.
2007-08-31 17:09:13 +00:00
rubidium
b3f9121f14
(svn r11015) -Fix [FS#1166]: towns would build bridges through eachother.
2007-08-31 13:06:28 +00:00
rubidium
3b672a5c5f
(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist.
2007-08-31 12:57:52 +00:00
rubidium
a0831a35a2
(svn r11013) -Fix [FS#1171]: MoveGoodsToStation's search area is too small as it assumed a lower maximum catchment area than the real maximum catchment area. Based on a patch by PhilSophus.
2007-08-31 12:45:21 +00:00
rubidium
732845440a
(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
...
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30 21:11:12 +00:00
rubidium
5ff81aca18
(svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles.
2007-08-30 20:40:33 +00:00
rubidium
d4290086e8
(svn r11006) -Fix: spectators are not allowed to issue commands. Issue spotted by SmatZ.
2007-08-30 19:20:15 +00:00
rubidium
f4482907da
(svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
...
-Codechange: barren the rail grounds on terraforming.
2007-08-30 17:17:04 +00:00
rubidium
f830699971
(svn r11004) -Codechange: some reworks of the saveload mechanism to be able to save and load private and protected variables in the vehicle struct.
2007-08-30 13:09:44 +00:00
rubidium
235ad4ab6b
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-30 13:03:56 +00:00
rubidium
6edf2d3a1b
(svn r11002) -Codechange: unhackify the cargo packet list saving (a little).
2007-08-30 12:10:32 +00:00
rubidium
c2dcccae16
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
2007-08-29 21:49:08 +00:00
truelight
3a0e647c0e
(svn r11000) -Fix r10121: when introducing the new blitter system, smallmap regained an old bug: buffer-overflow when moving window to far bottom-right.
...
-Note: we no longer cheat on not drawing the last line in smallmap, this time we created a more elegant fix
2007-08-29 21:30:03 +00:00
rubidium
dc80195754
(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.
2007-08-29 21:27:16 +00:00
rubidium
fff12fd22e
(svn r10998) -Codechange: refactor of the "core" of the terraforming code to make it possible to push the tile type specific terraforming requirements out of the generic part of the terraforming code. Patch by frosch. For more information take a look at FS#1147.
2007-08-29 21:08:35 +00:00
rubidium
a6a9968d16
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
2007-08-29 20:50:58 +00:00
bjarni
97135f2b7e
(svn r10996) -Feature: [OSX] added more options for right click emulation (controlled from the interface tab in the patch window)
...
This only works with the cocoa drivers (you will use the cocoa drivers unless you manually switched to SDL and compiled yourself)
Note: if control-click is selected, then the ingame control-click (like presignals and such) will be command-click
Requested and tested by ln- (so he should be blamed if this goes wrong :P )
2007-08-29 08:20:04 +00:00
rubidium
5e5d36d6b4
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
2007-08-28 06:46:33 +00:00
belugas
cb3843b820
(svn r10994) -Codechange: Change some function names to be more representative and more fitting of trunk's naming convention (skidd13)
2007-08-28 01:09:41 +00:00
belugas
da58abafe8
(svn r10993) -Codechange: A few less magical numbers (skidd13)
2007-08-27 23:50:56 +00:00
rubidium
45900925c3
(svn r10992) -Fix [FS#1132]: huge amount of vehicles in the "ungrouped" group. Patch by frosch.
2007-08-27 21:33:26 +00:00
rubidium
759255df12
(svn r10991) -Codechange: add documentation, enumification and some code simplifications to the terraforming code. Patch by frosch.
2007-08-27 21:18:04 +00:00
rubidium
e7b9f597df
(svn r10986) -Fix (r10985): inconsistency between documentation and actual code... thanks to glx for spotting it.
2007-08-26 21:53:11 +00:00
rubidium
9e630945b2
(svn r10985) -Codechange: unify/remove duplicate CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle.
2007-08-26 21:21:59 +00:00
rubidium
91d18ebd17
(svn r10984) -Codechange: unify the way one can get the current speed in the same forwat so we can display it.
2007-08-26 20:43:22 +00:00
rubidium
39f17c9de4
(svn r10983) -Codechange: use vehstatus & VS_CRASHED instead of some other "methods" custom to each vehicle to determine whether the vehicle is crashed.
2007-08-26 20:16:02 +00:00
rubidium
1a82bd9350
(svn r10982) -Fix [FS#1162]: some old savegames could be in a state that the current game logic does not like; in the list of vehicles loading at a station when the vehicle is not actually at the station.
2007-08-26 14:38:44 +00:00
rubidium
d5bc4d8b2a
(svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted cargo too.
2007-08-26 13:55:36 +00:00
belugas
182283a67c
(svn r10980) -Fix [FS#1158] : This will hopefully fix the case of an assert that happens when an industry uses a special gfx index (tile spec 0xFF). This 0xFF is the sentinel of a special check done for oil rigs, where water need to be around, but no tile will be constructed on it.
...
Problem is that the upper limit of gfx tiles is currently at 175. So, of course the system will assert with 255 ;)
2007-08-26 00:23:32 +00:00
rubidium
e93f41676f
(svn r10979) -Fix [FS#1157]: catenary on tunnel tiles was drawn non-transparant when the other catenary was drawn transparant. Patch by smatz.
2007-08-25 20:32:18 +00:00
rubidium
f3de8788d8
(svn r10978) -Fix (r10974): only the first road stop (with correct roadtype) was considered when distributing vehicles.
2007-08-25 20:05:58 +00:00
miham
5a496ffeb5
(svn r10975) -Update: WebTranslator2 update to 2007-08-24 21:49:23
...
croatian - 1 fixed by knovak (1)
finnish - 4 changed by tonihele (4)
2007-08-24 19:49:40 +00:00
rubidium
bb368f880b
(svn r10974) -Fix [FS#1144, FS#1155]: road vehicles that could not (properly) use a road stop still tried to go to that road stop.
2007-08-24 19:19:18 +00:00
KUDr
9503f02063
(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)
2007-08-24 17:49:42 +00:00
belugas
40d4d2f2ca
(svn r10972) -Codechange: Implement the counterpart(GetTranslatedIndustryTileID) of getindustileid of TTDPatch. This allows to ensure that the ID of a tile (taken out of the map or not) is still a valid one regarding the possible override it may have been flagged to.
...
It is not the strict same thing, but is what we need regarding the slightly different approach we took for newindustries.
2007-08-24 00:23:35 +00:00
belugas
e9435c11b0
(svn r10971) -Codechange: One less magical number
2007-08-24 00:04:51 +00:00
belugas
64da09f452
(svn r10968) -Codechange: Remove a tileloop performed in the AfterLoadCountBuildings function and use the main loop of CheckhouseIDs instead
2007-08-23 18:05:51 +00:00
truelight
ec1d0811a4
(svn r10967) -Fix: in case of moving the window on create (because it doesn't fit in the screen), make sure to move the viewport too if we are an extra viewport (spotted by Maedhros)
2007-08-23 11:08:59 +00:00
miham
dc52f2cb1b
(svn r10964) -Update: WebTranslator2 update to 2007-08-22 22:57:00
...
croatian - 9 fixed, 13 changed by knovak (22)
italian - 10 fixed by lorenzodv (10)
japanese - 5 fixed by ickoonite (5)
polish - 10 fixed, 1 changed by meush (11)
slovak - 77 changed by lengyel (77)
spanish - 5 fixed by eusebio (5)
2007-08-22 20:57:28 +00:00
belugas
69f9545a20
(svn r10963) -Revert(10700): Although the idea was good, it was more prone of errors than usefull.
...
So now, it will be better to jump to the overriden tile when it is been marked as an override
2007-08-22 01:16:08 +00:00
belugas
339579e22a
(svn r10962) -Codechange: protect yourself against an illicit substitution
2007-08-22 00:59:46 +00:00
belugas
dd61fd374f
(svn r10961) -Codechange: Flag default substitutes of industry/tiles with a value that cannot be legal.
...
This avoids the forest of coal mine error in the futur
2007-08-22 00:52:25 +00:00
belugas
77440b09e4
(svn r10955) -Fix: The substitute prop (0x08) of industry tiles does not behave as prop 0x08 of industry. Therefore, do not disable the old industry with value of 0xFF. Not a bug fix, just a spec compliance correction...
2007-08-21 00:29:10 +00:00
rubidium
8807a47f31
(svn r10953) -Fix [FS#1139, FS#1143]: stations would not get a rating when there were already two stations with a "more than default" rating as no cargo would be moved to the station to be picked up.
2007-08-20 20:29:22 +00:00
glx
e86564d7cd
(svn r10948) -Add: [win32] crash.dmp support for MSVC release builds
2007-08-19 21:51:36 +00:00
glx
1faaedb83f
(svn r10946) -Fix (r10932): forgot one occurence
2007-08-19 17:55:24 +00:00
rubidium
dc454841fd
(svn r10942) -Fix [FS#1133]: make the AI not crash when it has ships as the AI does not support them.
2007-08-19 16:51:15 +00:00
rubidium
4ef6e75609
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
2007-08-19 09:38:30 +00:00
rubidium
3686455868
(svn r10931) -Fix [FS#1131]: when a station was destroyed and a vehicle was still loading, changing the current order of the loading vehicle caused a crash. This could happen with removing docks and oil rigs.
2007-08-18 22:56:58 +00:00
miham
7a083c6216
(svn r10927) -Update: WebTranslator2 update to 2007-08-17 17:54:48
...
brazilian_portuguese - 10 fixed by tucalipe (10)
bulgarian - 1 fixed by thetitan (1)
dutch - 99 changed by habell (99)
estonian - 10 fixed, 2 changed by kristjans (12)
finnish - 3 fixed by kerba (3)
german - 10 fixed, 2 changed by Timwi (2), Neonox (10)
slovak - 10 fixed by lengyel (10)
slovenian - 10 fixed by Necrolyte (10)
ukrainian - 10 fixed by mad (10)
2007-08-17 15:55:19 +00:00
belugas
b0d7dff4b0
(svn r10926) -Feature: [NewGRF] Add support for variable 67(for real this time) and 68 of Variational Action 2 for Industries
...
-Fix: a very few codestyle/comments-typo changes
2007-08-17 00:23:33 +00:00
maedhros
8f365e3143
(svn r10924) -Fix [FS#1120]: VS_STOPPED is only set for the front part of an articulated
...
road vehicle, so don't check any other parts when testing if the vehicle is
stopped inside a depot.
2007-08-16 18:01:27 +00:00
glx
857eecdc90
(svn r10923) -Codechange: use 'real' exception handling in saveload code
2007-08-16 16:18:22 +00:00
maedhros
bb1d0dbfb1
(svn r10922) -Codechange: Allow building and removing tracks and signals when there is a
...
train on a parallel diagonal track that doesn't interact with this one. (frosch)
2007-08-16 13:13:07 +00:00
rubidium
11b7931cb0
(svn r10921) -Fix [FS#1130] (r10323): the company related news messages still thought that companies were described by two parameters instead of one.
2007-08-16 10:10:59 +00:00
belugas
e9f06607d1
(svn r10904) -Fix: When using a temporary industry, make sure you do not clear some unreachable tiles upon its destruction.
...
-Codechange: do not perform something that by all means will not change. A zero offset is really meaningless...
2007-08-15 01:50:13 +00:00
belugas
f48e05ec73
(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries
2007-08-15 00:49:34 +00:00
miham
88479868d5
(svn r10894) -Update: WebTranslator2 update to 2007-08-14 22:08:16
...
catalan - 5 fixed, 1 changed by arnaullv (6)
czech - 5 fixed, 1 changed by Hadez (6)
dutch - 5 fixed, 1 changed by habell (6)
french - 5 fixed, 1 changed by glx (6)
hungarian - 5 fixed, 1 changed by miham (6)
japanese - 1 changed by ickoonite (1)
portuguese - 1 changed by izhirahider (1)
spanish - 1 changed by eusebio (1)
2007-08-14 20:10:42 +00:00
rubidium
5d8fa0616e
(svn r10892) -Fix [FS#1127]: trains would not get flooded when they are at the lower part of a tile that would become a coast tile after flooding. Patch by frosch.
2007-08-14 17:31:15 +00:00
rubidium
71dec585f3
(svn r10890) -Fix [FS#1125]: removing road with the road removal tool would also work with a negative bank account, making the bank account even more negative than it was.
2007-08-14 17:05:33 +00:00
rubidium
fe16c97a19
(svn r10888) -Fix (r10886): 64 bits alignment made a struct too big.
2007-08-14 12:13:12 +00:00
rubidium
f2e74b7020
(svn r10887) -Cleanup: remove the strings that were removed from english.txt in r10886.
2007-08-14 10:47:29 +00:00
rubidium
15ee365b10
(svn r10886) -Codechange: modify the "start network server" GUI so it can actually handle more than 10 clients/companies/spectators in a nice way, i.e. without making a combobox with 100 players and add 90 new strings to be able to do so.
2007-08-14 10:46:38 +00:00
truelight
4841510c08
(svn r10878) -Add [FS#653]: added TileHeight to the Land Area Information tool (blove)
2007-08-13 18:59:34 +00:00
glx
dfa82cd968
(svn r10877) -Fix: some isocodes were wrong
2007-08-13 13:12:19 +00:00
truelight
6f68d876b8
(svn r10857) -Fix: feeder-income was broken; substract the feeder-costs from the vehicle-income, not from the route-income (tnx to RichK for all the info)
2007-08-11 22:57:23 +00:00
bjarni
8c5d47d510
(svn r10851) -Feature [OSX]: OpenTTD will now pick the same language as finder is set to if no config file is found (ln-)
2007-08-11 15:52:34 +00:00
truelight
76ab8ab86c
(svn r10839) -Fix [FS#873]: bring up the assert window for OSX even when there isn't a video-driver loaded (PinguTux)
2007-08-10 13:33:04 +00:00
rubidium
1a5b0a3417
(svn r10838) -Fix [FS#1119] (r10698): double negation where only single negation was needed. Patch by frosch.
2007-08-10 13:27:07 +00:00
truelight
1194f227da
(svn r10837) -Fix [FS#1102]: DrawLine didn't bound-check the first pixel that was drawn (frosch)
2007-08-10 13:11:53 +00:00
maedhros
c4f77a2f26
(svn r10836) -Fix [FS#1014]: Make sure the third cargo type accepted by houses is valid in
...
the current climate when copying properties from existing houses and using
action 0 property 0F.
2007-08-10 08:57:04 +00:00
glx
db65f0ea8d
(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
2007-08-09 20:59:36 +00:00
rubidium
b9370f0247
(svn r10834) -Revert (part of r10833): something too much was committed :(
2007-08-09 05:34:56 +00:00
rubidium
36da8a2a38
(svn r10833) -Fix [FS#1115]: assertion (different cost between test and execution) of overbuilding road tunnels with tram tracks (and vice versa) when the dragged area contains both ends of the tunnel.
2007-08-09 05:25:33 +00:00
miham
5dfa07e928
(svn r10828) -Update: WebTranslator2 update to 2007-08-08 23:27:26
...
brazilian_portuguese - 3 changed by fukumori (3)
bulgarian - 24 fixed by kokobongo (7), thetitan (17)
estonian - 1 changed by kristjans (1)
german - 564 changed by Timwi (564)
polish - 11 fixed, 34 changed by meush (45)
russian - 1 changed by DarkFenX (1)
2007-08-08 21:28:03 +00:00
rubidium
1f73e795e1
(svn r10827) -Fix [FS#1112]: out of bounds access in corner case of list allocations of vehicles.
2007-08-08 14:18:05 +00:00
bjarni
495bc4ecf4
(svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count didn't always update correctly) (Matthias)
2007-08-07 23:07:10 +00:00
rubidium
4596a68591
(svn r10821) -Cleanup: remove the strings that are not needed anymore since r10820.
2007-08-07 15:22:58 +00:00
rubidium
34545a381a
(svn r10820) -Codechange: make negative currencies red and restore the colour from before the currency was printed; this removes the need to make two strings for printing currencies (one for positive currencies and one for negative currencies).
...
-Fix [FS#1036]: do not use green for currencies as it is practically unreadable on CRT monitors.
2007-08-07 15:20:31 +00:00
rubidium
14e55dd4b9
(svn r10814) -Fix [FS#1103]/Codechange: allow trams to be reverse manually, even though there is no track to do so.
2007-08-06 15:00:32 +00:00
rubidium
341281a7d4
(svn r10813) -Fix (r10799): some destructors were performing too much during the pool cleanups, which could cause crashes as already removed pool items could then be dereferenced by other destructors.
2007-08-06 14:08:25 +00:00
maedhros
83a04adb71
(svn r10812) -Fix (r10097) [FS#1093]: Make RoadVehicle::MarkDirty() mark all parts of articulated vehicles as dirty, not just the front.
2007-08-06 13:44:50 +00:00
maedhros
bc3231d189
(svn r10811) -Fix (r10097): Refit all the parts of an articulated road vehicle, not just the first part.
2007-08-06 13:05:45 +00:00
maedhros
c974edf3a6
(svn r10810) -Fix (r10097): Add a comma between different cargo types if an articulated vehicle carries more than one cargo.
2007-08-06 12:54:03 +00:00
maedhros
371a0c4be6
(svn r10809) -Fix (r10097): When reversing, articulated parts of road vehicles should not attempt to do their own pathfinding.
2007-08-06 12:46:49 +00:00
maedhros
b17975d1f2
(svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure building menus.
2007-08-06 11:58:15 +00:00
rubidium
f09ebb5ec2
(svn r10807) -Fix [FS#1108]: keep_all_autosaves always got ".sav" as filename, which basically means that it only kept the last autosave.
2007-08-06 06:23:44 +00:00
rubidium
8f719a7b2d
(svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works.
2007-08-05 21:20:55 +00:00
rubidium
dfe851e02f
(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.
2007-08-05 17:43:04 +00:00
rubidium
155a973597
(svn r10792) -Fix [FS#1104]: when determining the gender of a string, do not assume that the gender is in the front of the string when there can be case switching code at that location.
2007-08-05 14:08:38 +00:00
glx
3245f97832
(svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor
2007-08-04 23:35:27 +00:00
truelight
20db6ee069
(svn r10782) -Fix: wrongly places #endif a long time ago broke WinCE compiling for sure
2007-08-04 13:51:41 +00:00
truelight
8ca03887b9
(svn r10781) -Fix: ported more pieces to WinCE, so it compiles a bit more
...
-Fix: WinCE doesn't support console
-Fix: Set debug lvl4 when running a debug WinCE build (as you can't give parameters any easy way)
2007-08-04 12:53:41 +00:00
rubidium
a2d6ed7347
(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
2007-08-04 01:25:44 +00:00
truelight
930bb84242
(svn r10778) -Fix: one-liners to allow MSVC and WINCE to work together (or anyway, a step towards that goal)
...
-Fix: put DEBUG lines under WINCE via a function designed for just that under WINCE
2007-08-03 23:26:12 +00:00
truelight
c02d8ebb09
(svn r10777) -Fix: don't put the ctor debug on lvl3, it is more a lvl5 debug
2007-08-03 23:19:29 +00:00
rubidium
537025e63b
(svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others.
2007-08-03 23:18:56 +00:00
rubidium
ff2f17d1e8
(svn r10774) -Fix (r10768): obiwan pleased us with a visit.
2007-08-03 20:46:59 +00:00
rubidium
655b2048e5
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
2007-08-03 20:18:38 +00:00
rubidium
9df2e25258
(svn r10772) -Codechange: also make use of the generic clean and destroy pool callback functions for vehicle.
2007-08-03 20:17:26 +00:00