rubidium
5243d98761
(svn r11024) -Fix [FS#1173]: give a more correct error when building some things on tile 0; "Can't build on water" or "Too close to the edge" instead of "Vehicle in the way". Patch by SmatZ.
2007-08-31 20:03:50 +00:00
rubidium
c649f8e3cd
(svn r11023) -Fix [FS#1150]: Switching players (using the cheat) crashed on Big Endian machines.
2007-08-31 19:49:31 +00:00
rubidium
8d0804834c
(svn r11022) -Fix: the canal border determination did not take oil rigs into consideration.
2007-08-31 19:46:45 +00:00
rubidium
3c053259f6
(svn r11021) -Fix [FS#1175]: do not display income/expenses when they do not belong to a "valid" tile, like the money cheat/giving money.
2007-08-31 17:43:29 +00:00
rubidium
2b2d8b5dae
(svn r11020) -Fix [FS#1174]: One could not give money when (s)he had too much money or rather: when casting the amount of money to an int32 becomes negative.
2007-08-31 17:38:29 +00:00
rubidium
cf7c89f72c
(svn r11019) -Fix [FS#1176]: Vehicles in a group must always have the same type when adding new vehicles to a group. Patch by SmatZ.
2007-08-31 17:31:54 +00:00
rubidium
0cf6a3f1ef
(svn r11018) -Fix [FS#1169]: Disallow buying/selling shares in your own company or a bankrupted/non-existant company.
2007-08-31 17:15:46 +00:00
rubidium
cadc470da5
(svn r11017) -Codechange: unify determining whether a vehicle needs/can be service a little more.
2007-08-31 17:13:39 +00:00
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
rubidium
bf8ec55db5
(svn r10771) -Codechange: remove some code duplication from the old loader.
2007-08-03 20:07:43 +00:00
rubidium
b21f29c38f
(svn r10770) -Codechange: use the pool item class as super class for the vehicle struct.
...
-Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
2007-08-03 19:36:00 +00:00
rubidium
7e9594e0a5
(svn r10768) -Codechange: allow to specify from which index to search for a free pool item.
2007-08-03 18:34:47 +00:00
rubidium
c9c2cd8d2e
(svn r10765) -Documentation [FS#1100]: of rail.h. Based on a patch by Progman.
2007-08-03 12:29:56 +00:00
rubidium
7cd5c2d860
(svn r10764) -Documentation: [FS#1099]: of road.h. Based on a patch by Progman.
2007-08-03 12:16:06 +00:00
rubidium
cf0d17d03e
(svn r10763) -Documentation [FS#1098]: document direction.h. Patch by Progman.
2007-08-03 12:10:07 +00:00
peter1138
23a46a301e
(svn r10762) -Codechange: Change enum StringIDEnum { to static const StringID = for
...
each STR_ entry. This avoids the need for a cast to StringID in some
places and thus better type-safety.
2007-08-03 09:08:49 +00:00
glx
f95df6bb61
(svn r10761) -Fix (FS#1101, r10216): _pal_last_dirty changed to _pal_count_dirty without updating, so it was of by one
2007-08-03 02:21:10 +00:00
rubidium
fcc1ccb99b
(svn r10760) -Codechange: make the order struct use the pool item class as super class.
2007-08-02 23:40:19 +00:00
rubidium
2f89fef353
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
2007-08-02 23:21:52 +00:00
rubidium
c60988a1d5
(svn r10758) -Codechange: make the depot struct use the pool item class as super class.
2007-08-02 22:33:53 +00:00
rubidium
c1d167ae14
(svn r10757) -Codechange: make the engine renew struct use the pool item class as super class.
2007-08-02 22:32:47 +00:00
rubidium
99da45988a
(svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle).
2007-08-02 21:19:07 +00:00
rubidium
032de036dd
(svn r10755) -Codechange: make the town struct use the pool item class as super class.
2007-08-02 21:05:54 +00:00
rubidium
2c9e166e7e
(svn r10754) -Fix: MorphOS does not like sizeof in the templated pool item class, so use the item size that is set in the pool.
2007-08-02 21:02:57 +00:00
rubidium
f9c6775dfd
(svn r10753) -Codechange: make the sign struct use the pool item class as super class.
2007-08-02 13:27:45 +00:00
rubidium
3172f3461d
(svn r10752) -Fix: apparantly const on function pointers is ignored.
2007-08-02 13:18:57 +00:00
rubidium
9458905e4c
(svn r10751) -Codechange: make the group struct use the pool item class as super class.
2007-08-02 12:51:57 +00:00
rubidium
53e6da1752
(svn r10750) -Codechange: make the waypoint struct use the new poolitem class as super class.
2007-08-02 12:22:40 +00:00
rubidium
e7d2918c0c
(svn r10749) -Codechange: use the generic pool item class as super class for cargo packets, which results in a nice reduction of code duplication.
2007-08-02 10:49:24 +00:00
rubidium
d28f8139ea
(svn r10748) -Codechange: call the pool cleanup functions for stations directly instead of using the wrapper functions.
2007-08-02 10:47:43 +00:00
rubidium
e44c760084
(svn r10747) -Codechange: add a variable that points to some index in the pool that is not beyond the first free pool item. It does not necessarily point to the first free item, but it reduces allocation time as it does not have to start at the first item in the pool to find the first free item.
2007-08-02 10:47:00 +00:00
rubidium
4fd5be7f2a
(svn r10746) -Codechange: add a generic superclass for almost all pool items so we do not have to duplicate code for each of the pool item classes and use it for the station and roadstop classes.
2007-08-02 08:47:56 +00:00
rubidium
508ac563a0
(svn r10745) -Codechange: generalize the pool cleanup/initialize functions for stations (in such a manner that they can be used for other pools too).
2007-08-01 23:49:06 +00:00
rubidium
0ab03b835b
(svn r10744) -Codechange: make the pool a little more OO, so it can be easier in other places.
2007-08-01 22:10:54 +00:00
rubidium
cbd3aca30c
(svn r10743) -Fix: some typos introduces by copy-pasting.
2007-08-01 19:13:42 +00:00
miham
415f765006
(svn r10737) -Update: WebTranslator2 update to 2007-07-30 19:33:14
...
catalan - 51 changed by arnaullv (51)
german - 3 changed by chu (3)
polish - 5 fixed by meush (5)
2007-07-30 17:33:33 +00:00
peter1138
61f94c2d5e
(svn r10736) -Fix: Correct all mispellings of 'successful'.
2007-07-30 13:36:09 +00:00
peter1138
9b9bca40b9
(svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for collision detection on bridges/tunnels.
2007-07-30 08:49:41 +00:00
rubidium
2800a49f03
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
2007-07-29 23:42:59 +00:00
rubidium
a15df67f9a
(svn r10732) -Codechange: lower the minimum size for the extra viewport window.
2007-07-29 23:25:17 +00:00
rubidium
d1590e8f07
(svn r10731) -Codechange: allow smaller initial "build <vehicle type>" windows.
2007-07-29 22:58:59 +00:00
rubidium
2894283a87
(svn r10730) -Codechange: allow (some) arbitrary data to be send to the WE_CREATE event.
2007-07-29 22:57:40 +00:00
rubidium
364d42f2cd
(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
2007-07-29 22:21:26 +00:00
rubidium
932baf8360
(svn r10728) -Documentation [FS#1088]: of tile.h. Based on a patch by Progman.
2007-07-29 21:43:49 +00:00
rubidium
4b75381d49
(svn r10727) -Codechange: when a window would fall outside of the screen (on the right) when opening it, move it to the left so it stays inside the screen.
2007-07-29 20:54:37 +00:00
rubidium
000b582423
(svn r10726) -Codechange: make it possible that the chat window is less than 640 pixels.
2007-07-29 19:19:30 +00:00
rubidium
17370d5ae7
(svn r10725) -Codechange: move some window related code out of gfx.cpp to windows.cpp
2007-07-29 19:18:22 +00:00
peter1138
5e1cd09ea4
(svn r10724) -Fix (r10723): Toolbar spacing was off-by-one
2007-07-29 16:43:58 +00:00
rubidium
39a2f2f4a8
(svn r10723) -Codechange: dynamically sized (width) main toolbars and status bar for when the window becomes less than 640 pixels in width.
2007-07-29 15:48:43 +00:00
rubidium
9e918b7980
(svn r10722) -Codechange: unhardcode the positions of strings in the status bar.
2007-07-29 14:06:53 +00:00
peter1138
f975e2e85c
(svn r10721) -Fix [FS#1084]: Skip articulated parts of road vehicles during unique name check.
2007-07-29 14:02:27 +00:00
rubidium
76fea51ada
(svn r10720) -Codechange: unhardcode the positions of the player toolbar menus.
2007-07-29 14:01:22 +00:00
rubidium
6891998fd7
(svn r10719) -Codechange: since DParams are now 64 bits we should make NUM and COMMA handle writing 64 bit integers to the strings.
2007-07-29 12:13:22 +00:00
rubidium
8cc340681d
(svn r10718) -Fix (r10698): when having a road corner on a slope removing the road bit perpendicular on the slope made the foundation disappear.
2007-07-29 12:11:50 +00:00
rubidium
06291aaaf1
(svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu.
2007-07-28 21:00:31 +00:00
rubidium
b15bee6dd5
(svn r10716) -Codechange: not all windows' minimum size is actually their minimum size, so take the size of the window after WE_CREATE has been called as bare minimum size.
2007-07-28 20:59:30 +00:00
truelight
b2c765e620
(svn r10715) -Fix: limited-fs code was broken
2007-07-28 12:45:27 +00:00
glx
05ae4506af
(svn r10714) -Fix r10696: MSVC performance warning
2007-07-28 00:19:49 +00:00
KUDr
7a28ccbcf6
(svn r10713) -Cleanup (r10711): too long string buffers, unsafe sprintf used (Darkvater)
2007-07-27 23:49:48 +00:00
KUDr
bcb8169b12
(svn r10712) -Fix (r10711): \0 at the end of string constant (glx)
2007-07-27 22:32:48 +00:00
KUDr
1eda754469
(svn r10711) -Fix [Win32]: take default language from current user's locale on Windows (In-)
2007-07-27 22:19:19 +00:00
rubidium
260932d8ea
(svn r10710) -Codechange: allow automatic downsizing of the group window. Same as idea as for the previous commits, i.e. you could already do so but the button would be out of reach.
2007-07-27 22:13:12 +00:00
rubidium
35f34ca7a3
(svn r10709) -Codechange: allow automatic downsizing of the load game/save game windows. These windows also already supported downsizing, but again the resize button would be unreachable.
2007-07-27 22:11:22 +00:00
rubidium
b837299800
(svn r10708) -Codechange: allow automatic downsizing of the smallmap window in case of low resolutions; one could already make the window smaller, but the resize button was unreachable.
2007-07-27 22:10:21 +00:00
rubidium
5769aaa843
(svn r10707) -Codechange: account for the main toolbar and status bar when determining the maximum height for a window.
2007-07-27 22:08:59 +00:00
rubidium
8fef079cbc
(svn r10706) -Codechange: allow resizing the multiplayer server list window.
2007-07-27 19:57:52 +00:00
rubidium
eb52479c0a
(svn r10705) -Fix (r10704): some windows were not correctly initialized as they resized the window themselves and that should be interfered by making sure the window is resized in the right "step" size.
...
-Fix (r10704): call the WE_RESIZE when resizing during initialization of the windows.
2007-07-27 19:09:31 +00:00
rubidium
13ab17bca8
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
2007-07-27 12:49:04 +00:00
miham
ff85f640db
(svn r10703) -Update: WebTranslator2 update to 2007-07-27 10:33:19
...
croatian - 1 fixed, 6 changed by knovak (7)
2007-07-27 08:33:33 +00:00
rubidium
15266d04d0
(svn r10702) -Fix: "Can't build ..." instead of "Can't remove ..." message shown for road stops for trucks/cargo trams.
2007-07-27 03:27:16 +00:00
belugas
05a5967fbb
(svn r10701) -Codechange: Make sure to not use an out of bound index when the index is specified by a grf file. It has a different meaning then.
2007-07-27 03:07:05 +00:00
belugas
3880be2fa8
(svn r10700) -Codechange: Enable to jump (by default) to the overriding industry tile spec of the one been queried.
...
Only on certain very specific circumstances do we need the original spec
2007-07-27 02:41:29 +00:00
rubidium
7b2c963b64
(svn r10699) -Fix (r10698): bridge middle parts were drawn too high if the southern bridge head has a foundation.
2007-07-26 18:36:32 +00:00
rubidium
903a0a08c2
(svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
2007-07-26 16:51:10 +00:00
rubidium
a67957866a
(svn r10697) -Codechange: give a more sensible names to some of the unkX variables.
2007-07-26 15:37:19 +00:00
rubidium
a26ef1ee3a
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
2007-07-26 14:07:11 +00:00
rubidium
e97c2bf621
(svn r10695) -Fix [FS#1079]: building single pieces of road over tramtrack or vice versa on slopes did not work as expected.
2007-07-26 11:19:03 +00:00
rubidium
6806635971
(svn r10694) -Codechange: update the server information in the game list every once in a while so the information stays fairly up-to-date when you are looking through the servers.
2007-07-26 09:53:58 +00:00
rubidium
e6c864f26e
(svn r10692) -Fix (r10691): those good old days that LT_NORMAL was still called LT_NORMAL :)
2007-07-25 19:36:51 +00:00
rubidium
e8ecf501c0
(svn r10691) -Codechange [FS#509]: simplify GetTransportedGoodsIncome to make it more obvious and less hidden what actually happens. Based on a patch by rfalke.
2007-07-25 19:26:33 +00:00
rubidium
feb91ab5ea
(svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer.
2007-07-25 19:06:29 +00:00
rubidium
3c25348348
(svn r10689) -Documentation [FS#1057]: lots of function documentation written by Progman.
2007-07-25 19:03:23 +00:00
rubidium
23e1cf76e5
(svn r10688) -Cleanup: coding style cleanups missed in the last few cleanups.
2007-07-25 17:18:13 +00:00
rubidium
00e76a9e69
(svn r10687) -Fix (r10686): subversion does not like it when you change code when you are typing the commit message.
2007-07-25 17:07:38 +00:00
rubidium
e70f91a4bf
(svn r10686) -Fix [FS#1058]: determining whether there is a tunnel going under the lowered area is only needed in two directions instead of all four, so take the directions (one for each axis) to the nearest border (along the given axis). Furthermore GetTileZ did much more than absolutely necessary.
2007-07-25 15:45:46 +00:00
rubidium
368e04520d
(svn r10685) -Fix [FS#1076]: graphical glitches when the "link landscape toolbar" patch is turned on when opening one of the construction toolbars.
2007-07-25 11:27:30 +00:00
rubidium
7fe3635cdb
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
2007-07-25 00:16:30 +00:00
rubidium
542f552f6e
(svn r10681) -Codechange: do not determine whether a tile is a hangar based on the graphics index to be drawn on the given tile, but do it based on the specification of the location of hangars of the airport.
2007-07-24 21:48:50 +00:00
rubidium
151262c1eb
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
2007-07-24 19:56:43 +00:00
rubidium
59d33d0f7c
(svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> type *var.
2007-07-24 17:01:23 +00:00
rubidium
9c9fc1a79e
(svn r10672) -Codechange: typify some parameters/variables.
2007-07-24 13:03:24 +00:00
truelight
e66ab3b6f1
(svn r10671) -Codechange: don't mix both lookup and temp-variable-with-value-of-lookup (skidd13)
2007-07-24 12:29:47 +00:00
belugas
0bc5d4b768
(svn r10670) -Fix: Use proper initialization for grf_prop override member
2007-07-24 01:29:42 +00:00
belugas
81c6469700
(svn r10669) -Codechange: Removed redundant comment
...
-Codechange: Add placeholder for yet another industry "variable" to code
2007-07-24 01:26:57 +00:00
truelight
7031cc3c0b
(svn r10665) -Codechange: replace magic 15 with MAX_TILE_HEIGHT (bilbo)
...
-Codechange: replace magic 13 with MAX_SNOWLINE_HEIGHT (bilbo)
-Codechange: assure _map_height_bits is always of correct size (Rubidium)
2007-07-23 19:30:36 +00:00
truelight
2418db4c23
(svn r10664) -Codechange: simplify a small piece of code (skidd13)
2007-07-23 19:24:32 +00:00
truelight
59702af996
(svn r10663) -Fix r10662: bad me, didn't comply with coding style, as penalty I updated the surrounding code to comply with coding style too; I will never do it again (I hope :p)
2007-07-23 16:48:19 +00:00
truelight
e15c5fc6b0
(svn r10662) -Add: added 'V' as new shortcut for new viewport (bilbo)
...
-Add: added 'M' as new shortcut for smallmap (bilbo)
-Add: added '+' and '-' as shortcuts to zoom in the mainview (bilbo)
-Add: added support for other keycodes to be possible used in the future (bilbo)
2007-07-23 16:39:27 +00:00
truelight
e0c31b63db
(svn r10661) -Documentation: documented slope.h (Progman)
2007-07-23 16:30:59 +00:00
truelight
c239884287
(svn r10660) -Codechange: simplified tunnel cost algorithm (bilbo)
2007-07-23 16:15:40 +00:00
truelight
1583b5b4db
(svn r10659) -Codechange: updated documentation around RAIL_GROUND_FENCE_VERT[12] (frosch)
...
-Codechange: added documentation and SPR_ enums for track fences (frosch)
2007-07-23 16:08:58 +00:00
glx
79f4d4d0de
(svn r10658) -Add: support for autosave_on_exit in the console, so dedicated servers can use it
2007-07-23 15:28:02 +00:00
truelight
e5aca34acb
(svn r10657) -Fix r10655: commit didn't comply with coding style (tnx glx :))
2007-07-23 15:20:20 +00:00
truelight
568f851aa3
(svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch)
2007-07-23 15:18:53 +00:00
truelight
6fe791a200
(svn r10655) -Fix [FS#1070]: Trolly AI didn't know about steep slopes, and used wrong tileh in some cases (frosch)
2007-07-23 15:14:45 +00:00
orudge
05f8f7cf93
(svn r10651) -Fix: Fix chdir problem with open/save dialog on OS/2 (Paul Smedley)
2007-07-22 17:21:25 +00:00
peter1138
0c3b6a7285
(svn r10649) -Fix (r9962): autoscroll (pointer near screen edge) didn't work
2007-07-22 13:16:49 +00:00
miham
692f20c3c3
(svn r10648) -Update: WebTranslator2 update to 2007-07-21 20:34:31
...
croatian - 44 fixed, 143 changed by knovak (187)
2007-07-21 18:34:43 +00:00
KUDr
18c8a920d2
(svn r10647) -Fix: AutoPtrT::operator =() didn't delete old object
2007-07-21 14:01:12 +00:00
KUDr
fc58c73bc5
(svn r10646) -Cleanup: AutoPtrT<>::Release() renamed to Detach()
...
-better describes what it does
-was inconsistent with CCountedPtr<>::Release()
2007-07-21 13:45:15 +00:00
KUDr
1f693e8ce8
(svn r10645) -Fix (r10644): file contents seems to be 3x there
2007-07-21 12:39:46 +00:00
rubidium
478e009ac6
(svn r10644) -Merge (from NoAI): framework for reference counted objects (pointers).
2007-07-20 18:44:04 +00:00
rubidium
f7682403e3
(svn r10643) -Merge (from NoAI): properly counting the amount of signs instead of using the size of the sign pool.
2007-07-20 18:35:33 +00:00
belugas
b6ba945486
(svn r10641) -Fix(r10638): Forgotten Son... err...include
2007-07-20 17:32:27 +00:00
belugas
79c94729b5
(svn r10640) -Fix(r10638): little typo...
2007-07-20 17:25:07 +00:00
belugas
71637303a9
(svn r10639) -Codechange: Give meaninfull name to a magic number
2007-07-20 17:14:03 +00:00
belugas
1dd61a2249
(svn r10638) -Codechange: Save the mapping of the industries and tiles, making them persistent.
2007-07-20 16:50:11 +00:00
belugas
a79ed67f76
(svn r10637) -Fix: Enable the Random Industries in scenario editor if setting Number of Industries is not NONE.
...
Spotted by skiddl13.
Thanks to glx for help in finding and better looking code :)
2007-07-20 16:08:28 +00:00
belugas
05e4b47613
(svn r10635) -Codechange: Correct some typos and code beautifying (a little bit)
2007-07-20 14:49:41 +00:00
peter1138
a6aba9c83d
(svn r10628) -Fix (r10606,FS#1055): Revert r10606 and fix the plural problem another way.
2007-07-19 17:28:55 +00:00
rubidium
f6ca271375
(svn r10627) -Fix [FS#1052]: be consistent with the space between the company name and the player number, i.e. always put a space between them.
2007-07-19 17:27:49 +00:00
miham
95fc1a5057
(svn r10626) -Update: WebTranslator2 update to 2007-07-19 19:23:12
...
american - 4 fixed by WhiteRabbit (4)
2007-07-19 17:23:28 +00:00
rubidium
e8a73a0591
(svn r10624) -Fix [FS#1047]: the production of banks could not be modified (either in scenario editor or with the cheat).
2007-07-19 16:24:48 +00:00
belugas
917c536031
(svn r10622) -Feature: Introduction of the CBID_INDUSTRY_AVAILABLE's handling, in fund industry window.
...
In order to stay as much consistent with the specs, the fund window will perform (if required) the callback every game-day. TTDPatch performs the same call every second, but after discussions with Csaboka, we agreed that it was not required to be that intensive. So a game-day is plenty enough.
2007-07-19 01:47:32 +00:00
belugas
e32c72e35a
(svn r10621) -Codechange: install a struct holding the user's selection from _fund_gui.
...
-Codechange: merge WE_TIMEOUT and WE_ABORT_PLACE_OBJ, as they both do the same thing.
-Feature: Any time you place an industry, even if it fails, the button will reset and the cursor will return to normal.
2007-07-19 01:35:48 +00:00
miham
50d988b396
(svn r10620) -Update: WebTranslator2 update to 2007-07-18 19:37:17
...
czech - 10 fixed, 13 changed by Hadez (23)
estonian - 20 changed by kristjans (20)
galician - 34 fixed, 5 changed by Condex (39)
slovak - 4 fixed by lengyel (4)
2007-07-18 17:37:34 +00:00
belugas
15429e3d9d
(svn r10619) -Codechange: Use shorter variable/member names and add some code separation.
...
-Codechange: Use a stringID variable instead of always refering to the _fund_gui.text[foo] member
-Documentation: Add a few explanatory comments here and there
2007-07-18 17:05:23 +00:00
belugas
3121256978
(svn r10618) -Fix(r10167): remove unneeded comment
2007-07-18 16:02:42 +00:00
belugas
eaf946e23b
(svn r10617) -Codechange: code style changes (removing an erroneous tab plus switch case alignment)
...
-Codechange: give enum values to widgets
2007-07-18 15:59:08 +00:00
glx
fef1907c39
(svn r10607) -Fix r10605: use '&&' in preprocessor directives (MSVC doesn't like 'and')
2007-07-18 02:08:56 +00:00
peter1138
bcc93b45bc
(svn r10606) -Fix (r8826): plural and single cargo names were mixed up.
2007-07-17 20:32:27 +00:00
rubidium
524e306650
(svn r10605) -Fix [FS#1046]: also OpenBSD does not know wchar. Patch by Matthias.
2007-07-17 16:59:21 +00:00
rubidium
5b15a202ea
(svn r10604) -Fix [FS#1044] (r9866): some industries produced cargo they should not be producing, which would result in the industry offering invalid cargo to a station resulting in crashes..
2007-07-17 08:18:57 +00:00
peter1138
61e41b24b4
(svn r10603) -Codechange: avoid direct access to _engine_info
2007-07-17 06:56:09 +00:00
rubidium
45b0b7755d
(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.
2007-07-16 23:55:22 +00:00
belugas
210e3c7085
(svn r10600) -Codechange: code-stylising the gui switch-case code
2007-07-16 23:48:25 +00:00
rubidium
f30a71ab82
(svn r10593) -Fix [FS#1038]: one could not remove locks that were build in a (very) old version of OpenTTD.
2007-07-16 21:00:40 +00:00
miham
b356343d30
(svn r10592) -Update: WebTranslator2 update to 2007-07-16 19:35:30
...
brazilian_portuguese - 4 fixed by tucalipe (4)
catalan - 4 fixed by arnaullv (4)
croatian - 7 fixed by knovak (7)
danish - 10 fixed, 7 changed by ThomasA (17)
dutch - 4 fixed by habell (4)
estonian - 4 fixed by kristjans (4)
finnish - 30 fixed by habazi (30)
korean - 4 fixed by darkttd (4)
norwegian_nynorsk - 16 fixed by pollux (16)
piglatin - 12 fixed by adammw (12)
portuguese - 4 changed by izhirahider (4)
russian - 4 fixed by Smoky555 (4)
slovenian - 4 fixed by Necrolyte (4)
spanish - 4 fixed by eusebio (4)
ukrainian - 4 fixed by fevral13 (4)
2007-07-16 17:37:40 +00:00
rubidium
df009178d4
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
2007-07-16 09:16:58 +00:00
miham
1f447d10b4
(svn r10584) -Fix: [Translations] Fixed translations screwed up by translator
2007-07-15 18:14:21 +00:00
miham
a75fd13d93
(svn r10583) -Update: WebTranslator2 update to 2007-07-15 19:17:18
...
croatian - 135 fixed, 2 changed by knovak (137)
czech - 3 changed by Hadez (3)
finnish - 29 fixed by habazi (29)
french - 4 fixed by Skiper (4)
german - 21 fixed, 1 changed by chu (22)
hungarian - 4 fixed by miham (4)
italian - 4 fixed by lorenzodv (4)
japanese - 4 fixed by ickoonite (4)
portuguese - 4 fixed by izhirahider (4)
romanian - 10 fixed by kneekoo (10)
traditional_chinese - 4 fixed by xbddc (4)
2007-07-15 17:17:44 +00:00
KUDr
3df88dada8
(svn r10578) -Fix [YAPF, ships]: Ships received curve penalty for non-diagonal straight move. (JazzyJaffa)
...
-The fix in cost calculation uncovered bug in estimate calculation. Ships now use the same estimate algorithm as trains.
2007-07-15 11:45:38 +00:00
glx
9f2ca45987
(svn r10575) -Fix r10573: misplaced )
2007-07-15 00:45:02 +00:00
belugas
1bee873376
(svn r10573) -Codechange: Use function CheckIfCallBackAllowsAvailability for random map generation as well as for ingame random industry creation
2007-07-15 00:26:12 +00:00
belugas
7829add2bb
(svn r10572) -Codechange: Add function CheckIfCallBackAllowsAvailability for industries
2007-07-15 00:19:40 +00:00
belugas
e37affa1d3
(svn r10570) -Codechange: Add enum required for Callback 0x22: CBID_INDUSTRY_AVAILABLE
...
-Documentation: Add documentation for enum IndustryConstructionType, which describes how the industry has been created
2007-07-15 00:03:17 +00:00
rubidium
13692798e6
(svn r10567) -Add [FS#915]: a "group" with ungrouped vehicles. Patch by Matthias Wolf.
2007-07-14 23:10:27 +00:00
rubidium
c598d1b446
(svn r10566) -Fix [FS#1025]: a NewGRF could have a information message that is too long for the internal buffers to handle. We should not crash on such a case even though the message is too big for the window anyway.
2007-07-14 22:37:40 +00:00
rubidium
25028759c1
(svn r10562) -Fix: most of the MorphOS issues; MorphOS doesn't know about wchars, so disable all code that has to use wchars for MorphOS.
2007-07-14 20:30:35 +00:00
truelight
68c5bcf960
(svn r10561) -Fix: don't give 'unused variable' warnings when disabling asserts
2007-07-14 20:21:02 +00:00
miham
08780621cc
(svn r10559) -Update: WebTranslator2 update to 2007-07-14 19:32:31
...
american - 8 fixed by WhiteRabbit (8)
catalan - 15 changed by arnaullv (15)
estonian - 6 fixed by kristjans (6)
slovenian - 6 fixed by Necrolyte (6)
2007-07-14 17:32:50 +00:00
rubidium
7ed3c49bcd
(svn r10555) -Codechange/Fix: add a soft limit of 4096 "entities" in a station's waiting queue and a hard limit of 32768 so (malicious) people cannot cause a "denial of service" attack by filling cargo lists.
2007-07-13 20:46:53 +00:00
truelight
988d9b8da8
(svn r10552) -Fix [FS#1034, r10546]: opening Available Aircrafts segfaulted
2007-07-13 19:06:12 +00:00
miham
db0ad29b81
(svn r10550) -Update: WebTranslator2 update to 2007-07-13 18:55:52
...
german - 3 fixed by Neonox (3)
hungarian - 2 fixed by miham (2)
slovak - 6 fixed by lengyel (6)
traditional_chinese - 6 fixed by xbddc (6)
2007-07-13 16:56:07 +00:00
rubidium
46a6b03940
(svn r10549) -Fix [FS#1031]: wrong tram catenary poles drawn in some bridge directions.
2007-07-13 15:12:36 +00:00
truelight
73e2c46e8a
(svn r10548) -Fix [FS#1020]: don't segfault when you quit in the end-of-the-game screen
2007-07-13 15:02:22 +00:00
truelight
4b818368b1
(svn r10547) -Fix: when Cheat-Window is open and a new month happens, the window wasn't redrawn instantly
2007-07-13 15:01:16 +00:00
truelight
1845b5633d
(svn r10546) -Fix [FS#1026]: you can now have both Available Train as Available Ship window open
2007-07-13 14:51:55 +00:00
peter1138
3f4a0eb806
(svn r10542) -Codechange: use class member instead of global variable for null ticks value
2007-07-13 13:03:20 +00:00
rubidium
9b105c28bd
(svn r10541) -Fix [FS#1028]: cargo payment rates overflow.
...
-Fix: cargo payment rates diverge from cost rates making it impossible to make any profit after a certain number of years.
Both are solved by stopping the inflation after 170 years; there is absolutely no point in continueing the inflation after that as it only makes the game have overflows at some point that cannot be solved; using larger variables only delays the inevitable.
2007-07-13 12:08:37 +00:00
truelight
56dfe3031c
(svn r10537) -Backport r10536: added option for null-driver to configure how long it should run (-vnull:ticks=10000)
2007-07-13 10:46:07 +00:00
miham
86e2e2f1c3
(svn r10532) -Update: WebTranslator2 update to 2007-07-12 19:08:41
...
catalan - 3 changed by arnaullv (3)
portuguese - 1 changed by izhirahider (1)
russian - 6 fixed by Smoky555 (6)
ukrainian - 6 fixed by fevral13 (6)
2007-07-12 17:08:56 +00:00
rubidium
690a27f8ce
(svn r10522) -Fix: the "build truck station" GUI showed that it would accept tourists when it does not, whereas the "build bus station" GUI did not show them when it did accept them.
2007-07-12 13:40:24 +00:00
rubidium
009a47dfcd
(svn r10521) -Fix: some NewGRFs did not check whether the newindustries bit was set, which breaks with a not-yet-finished-implementation of newindustries.
2007-07-12 13:25:06 +00:00
rubidium
469e1e2596
(svn r10520) -Fix: when a "can I build this industry tile here" callback did not fail, it doesn't automatically mean that the industry tile can be built there.
2007-07-12 09:15:57 +00:00
rubidium
3378095add
(svn r10519) -Fix: when getting a "nearby" tile, make sure you never roam outside of the map.
2007-07-12 08:10:40 +00:00
rubidium
ac0440495c
(svn r10518) -Fix: use the location of the industry and not INVALID_TILE for production callbacks; makes looking at the environment of an industry a lot more useful.
2007-07-12 07:57:08 +00:00
rubidium
358758e33b
(svn r10517) -Fix: the "closest distance to water/land" calculation gave the distance to the north-eastern border instead of the closest water/land.
2007-07-12 07:55:35 +00:00
rubidium
b779959c27
(svn r10516) -Fix: if doing a lookup for a ID, scan the whole range instead of only the "new" ones because the old ones could be overriden too.
2007-07-12 07:53:53 +00:00
rubidium
0c6f628fa6
(svn r10515) -Codechange: allow getting some more data about the environment of an industry.
2007-07-11 23:10:22 +00:00
rubidium
a616f0bd1e
(svn r10514) -Codechange: add support for getting the nearest industry with a given type.
2007-07-11 22:57:47 +00:00
peter1138
dcf4881b07
(svn r10513) -Fix [FS#1022]: use vehicle subtile position to update cache, not tile, so that collision detection works on bridges and tunnels.
2007-07-11 21:31:34 +00:00
miham
2121112cc8
(svn r10510) -Update: WebTranslator2 update to 2007-07-11 19:01:42
...
brazilian_portuguese - 8 fixed by tucalipe (8)
bulgarian - 33 fixed by thetitan (33)
catalan - 6 fixed, 81 changed by arnaullv (87)
dutch - 6 fixed by habell (6)
french - 6 fixed by glx (6)
hungarian - 4 fixed by miham (4)
italian - 6 fixed by lorenzodv (6)
japanese - 8 fixed by ickoonite (8)
korean - 6 fixed, 17 changed by leejaeuk5 (23)
latvian - 10 fixed by amjaliks (10)
portuguese - 6 fixed by izhirahider (6)
spanish - 6 fixed by eusebio (6)
swedish - 6 fixed by daishan (6)
2007-07-11 17:02:15 +00:00
peter1138
556a5ebcc3
(svn r10509) -Codechange: cache expensive newgrf station variables during
...
sprite lookups/callbacks.
2007-07-11 16:37:20 +00:00
rubidium
d1ef87f914
(svn r10508) -Codechange: allow customizable animation schemes for industries.
2007-07-11 15:03:29 +00:00
rubidium
00afab46ab
(svn r10507) -Fix [FS#1019]: apparantly we used the wrong sprites for some pieces of the tram catenary (even though TTDP did so too).
2007-07-11 08:35:14 +00:00
rubidium
a9249181c7
(svn r10506) -Fix: the (manual) building of banks was always rejected.
2007-07-11 08:20:57 +00:00
belugas
a59b7f492d
(svn r10505) -Fix(r10249)[FS#1016]: Town was still trying to gather information for tiles on which it could not build. aising the values to 2 will prevent further invasion of the water-at-the-edge :)
2007-07-11 02:13:00 +00:00
belugas
95c877cf71
(svn r10504) -Codechange: Shorten the test if no track bit has been found
2007-07-11 01:45:44 +00:00
belugas
b9db8ecf41
(svn r10503) -Codechange: Mark Callback CBID_INDUSTRY_FUND_MORE_TEXT (cb38) as implemented.
2007-07-11 00:36:03 +00:00
rubidium
fd93cd0411
(svn r10502) -Fix [FS#1017]: trying to get the town from a tile that can never be associated with a town.
2007-07-10 22:45:09 +00:00
rubidium
3ba01bec84
(svn r10501) -Fix [FS#1015]: error dialog was sometimes shown on all clients when a command failed instead of only the client that actually did the command.
2007-07-10 20:59:41 +00:00
rubidium
5ef18e693c
(svn r10500) -Fix [FS#1007]: cannot navigate using arrow keys in the game name text box. Patch by benc.
2007-07-10 20:58:07 +00:00
rubidium
b1ab5f3e1c
(svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour.
2007-07-10 07:46:58 +00:00
peter1138
400203fb5b
(svn r10497) -Fix (FS#1013,r8464): Ship max speed wrongly shown (benc)
2007-07-10 07:10:23 +00:00
belugas
b0989a369c
(svn r10496) -Feature: Replace all the windows for Industry building by a more flexible one.
...
Thanks to Csaboka (from TTDPatch dev team) for his hints and original design (which i've found while it was halfway done, so i could make it more compliant ;)). Don't expect it to be a carbon-copy though. A few differences can be found here and there.
Thanks to Rubidium for his helping hand. Hope you will like it as we do :)
2007-07-10 00:59:00 +00:00
belugas
7ca5c337ca
(svn r10495) -Codechange: Add the Action 00 property handlers for Industries and Industry tiles
2007-07-10 00:10:19 +00:00
rubidium
e84363b4db
(svn r10494) -Fix (r10490): possible null dereference in some exotic newgrfs.
2007-07-09 20:08:25 +00:00
rubidium
7cb7488836
(svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments.
2007-07-09 19:38:12 +00:00
KUDr
ad5a68a282
(svn r10492) -Fix [YAPF, r10491]: commands with no effect (glx)
2007-07-09 19:24:45 +00:00
KUDr
746a33747b
(svn r10491) -Fix [FS#988, YAPF]: When rail segment was cached using electric engine and it ended with non-electric rail it was incorrectly cached with the end reason ESRB_DEAD_END instead of ESRB_RAIL_TYPE. (Eddi)
...
- It caused YAPF to end prematurely there when it was searching for another path (for non-electric engine).
- It can lead to sub-optimal path taken or 'train is lost' message.
- In MP game it can also cause desync.
- Uses changes made in r10489.
2007-07-09 18:57:12 +00:00
rubidium
f183f46561
(svn r10490) -Codechange: add support for industries on non-flat surfaces.
2007-07-09 18:53:43 +00:00
KUDr
b1b26ddb79
(svn r10489) -Codechange [YAPF]: FollowTrack_t now has new data member - m_err. It indicates the reason why the given track/trackdir can't be followed when method CFollowTrackT<>::Follow() returned false.
2007-07-09 18:27:42 +00:00
miham
f0137dea78
(svn r10488) -Update: WebTranslator2 update to 2007-07-09 18:32:28
...
estonian - 2 fixed by kristjans (2)
italian - 1 changed by lorenzodv (1)
korean - 6 fixed by leejaeuk5 (6)
latvian - 53 fixed by amjaliks (53)
portuguese - 5 fixed, 9 changed by izhirahider (14)
russian - 2 fixed by Smoky555 (2)
slovak - 2 fixed by lengyel (2)
spanish - 2 fixed by eusebio (2)
swedish - 8 fixed by giddorah (8)
ukrainian - 2 fixed by fevral13 (2)
2007-07-09 16:32:52 +00:00
rubidium
b1944c8f4b
(svn r10487) -Fix: forgot some breaks in a switch statement.
2007-07-09 16:24:00 +00:00
rubidium
2801ccc5f2
(svn r10486) -Fix: do not draw foundations when the "should I draw foundations" callbacks says to do so.
2007-07-09 13:59:07 +00:00
rubidium
e207ba425f
(svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location.
2007-07-09 13:21:49 +00:00
rubidium
b3ed27adab
(svn r10484) -Codechange: reduce code duplication.
2007-07-09 13:10:04 +00:00
rubidium
37748a3152
(svn r10483) -Codechange: add support for callbacks to manipulate the building chance of farm fields and chopping chance for lumber mills.
2007-07-08 19:54:51 +00:00
maedhros
44db937929
(svn r10481) -Codechange: Show a news message with the new industry when primary industry prospecting succeeds.
2007-07-08 18:41:34 +00:00
maedhros
e17cbca358
(svn r10480) -Fix: Don't allow building lighthouses and transmitters under bridges in the scenario editor, or during world generation.
2007-07-08 18:40:15 +00:00