rubidium
9e1cd7ab64
(svn r15815) -Fix (~r15800): bridge strings got truncated too early
2009-03-22 16:52:15 +00:00
alberth
b563cc0755
(svn r15814) -Fix (r1): Remove double background widget from cheat gui
2009-03-22 16:06:12 +00:00
rubidium
e75e1e62cb
(svn r15813) -Codechange: remove the last remnants of the old text drawing API.
2009-03-22 14:55:49 +00:00
rubidium
9038733f1a
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
2009-03-22 14:39:20 +00:00
rubidium
22d4270ea8
(svn r15811) -Fix: left != right and as a result of that the ai debug window was kinda empty.
2009-03-22 14:08:53 +00:00
alberth
663c73595f
(svn r15810) -Fix: Airport-type labels overlapped with first button, background did not cover whole window
2009-03-22 13:17:37 +00:00
alberth
3b2f47c470
(svn r15809) -Codechange: Add name comments to build vehicle widgets
2009-03-22 12:14:44 +00:00
rubidium
57174a9301
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
2009-03-22 12:01:21 +00:00
rubidium
dfe5dad5f6
(svn r15807) -Codechange: let the build vehicle gui helper function pass around left and right instead of only left and assuming infinite width.
2009-03-22 11:06:25 +00:00
rubidium
ead0a6a6e5
(svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left.
2009-03-22 10:37:51 +00:00
alberth
8324f65b4b
(svn r15805) -Codechange: Completing/fixing airportpicker widget names and adding them as comment
2009-03-22 09:58:38 +00:00
rubidium
4eaf4e6182
(svn r15804) -Fix (r15796): viewport strings weren't properly 'rendered'.
...
-Codechange: use the new string drawing API for the viewport.
2009-03-22 09:43:00 +00:00
rubidium
e74dc1e1d6
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
2009-03-22 09:34:06 +00:00
alberth
70d0f8857e
(svn r15802) -Codechange: Complete autoreplace GUI widget numbers and add them as comment
2009-03-22 09:04:15 +00:00
peter1138
4c02622cae
(svn r15801) -Fix (r15797): The new DrawStringMultiLine() now returns the new y position instead of the height, so we don't need to add it on.
2009-03-22 08:10:20 +00:00
rubidium
a07fae67c3
(svn r15800) -Codechange: make the engine gui use the new multiline API.
2009-03-22 00:15:00 +00:00
peter1138
3abddfe705
(svn r15799) -Codechange: Save rail type label list to savegame and perform mapping on load if necessary.
2009-03-21 23:58:20 +00:00
yexo
d1fd756755
(svn r15798) -Fix (r15795): gcc doesn't like static functions that are not declared static.
2009-03-21 23:45:46 +00:00
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
2009-03-21 23:45:34 +00:00
rubidium
676bf31e82
(svn r15796) -Codechange: unify multiline drawstrings
2009-03-21 23:23:06 +00:00
yexo
0f7b9af9fa
(svn r15795) -Codechange: Move the settings table from settings.cpp to table/settings.h. Patch breaking time :)
2009-03-21 23:16:09 +00:00
rubidium
f11300d1f9
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
2009-03-21 22:46:17 +00:00
frosch
ce513b46b7
(svn r15793) -Feature: Allow train vehicles to be shorten to 1/8 length, even if not at the end of the train.
2009-03-21 22:32:51 +00:00
frosch
88a95661a3
(svn r15792) -Codechange: Use a different algorithm for train vehicles to follow the vehicle in front of them.
2009-03-21 22:25:38 +00:00
rubidium
69decac406
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
2009-03-21 22:22:00 +00:00
rubidium
9003641095
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
2009-03-21 22:00:00 +00:00
frosch
d452a0a0ec
(svn r15789) -Codechange: Add DiagdirBetweenTiles() and use it.
2009-03-21 21:43:23 +00:00
rubidium
fd0f0bda72
(svn r15788) -Codechange: enumify the network join status widgets and use them.
2009-03-21 21:26:10 +00:00
rubidium
2d66f8e467
(svn r15787) -Codechange: enumify the land info and about window widgets and use them.
2009-03-21 20:40:02 +00:00
rubidium
5c8906bff7
(svn r15786) -Codechange: enumify the engine preview widgets (and use them)
2009-03-21 20:39:37 +00:00
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
2009-03-21 20:12:12 +00:00
glx
9fcff01850
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
2009-03-21 20:06:00 +00:00
rubidium
93fe44a3c5
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
2009-03-21 19:31:47 +00:00
rubidium
8a758beec3
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
2009-03-21 19:10:26 +00:00
yexo
971ed8d2a3
(svn r15781) -Fix [NoAI]: Missing "AIs" in the information the debug AI prints.
2009-03-21 19:08:04 +00:00
translators
42dc3bf742
(svn r15780) -Update: WebTranslator2 update to 2009-03-21 18:49:32
...
german - 2 changed by planetmaker (2)
hebrew - 18 fixed by EScake (18)
lithuanian - 27 fixed, 1 changed by Devastator (28)
polish - 29 fixed by coolik (29)
portuguese - 9 fixed by SnowFlake (9)
russian - 1 changed by Smoky555 (1)
spanish - 1 fixed by erregerre (1)
2009-03-21 18:49:45 +00:00
rubidium
a22559ff95
(svn r15779) -Codechange: unify (most) of the text drawing "API".
2009-03-21 18:28:01 +00:00
rubidium
529dd0867f
(svn r15778) -Fix [FS#2749] (r15666): when sorting on cost don't sort on the running cost (sbr)
2009-03-21 11:16:10 +00:00
rubidium
3ef8a09e20
(svn r15777) -Add: helper functions to get the least common multiple and the greatest common divisor (Alberth)
2009-03-21 01:34:31 +00:00
yexo
d2dae07595
(svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI.
2009-03-19 23:38:51 +00:00
rubidium
ee4a660b0c
(svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly
2009-03-19 23:32:39 +00:00
yexo
096debebe7
(svn r15772) -Fix (r15767): MSVC can't find the right function anymore because the return value in the header was not updated.
2009-03-19 23:03:53 +00:00
yexo
5933a07a86
(svn r15771) -Fix (r13256): Settings from the [gameopt] section (from 0.6 config files) were overwritten with default values.
2009-03-19 22:37:41 +00:00
translators
d405795bf1
(svn r15770) -Update: WebTranslator2 update to 2009-03-19 18:49:29
...
danish - 33 fixed by ThomasA (33)
2009-03-19 18:49:31 +00:00
translators
6e5f5c5811
(svn r15769) -Update: WebTranslator2 update to 2009-03-19 18:46:01
...
arabic_egypt - 4 fixed, 1 changed by khaloofah (5)
brazilian_portuguese - 5 fixed by tucalipe (5)
esperanto - 9 fixed by maristo (9)
polish - 7 fixed by Simek (7)
slovak - 3 fixed by James (3)
swedish - 6 fixed by Wiggelicous (6)
2009-03-19 18:46:09 +00:00
rubidium
d20b8a95dd
(svn r15768) -Change: remove an "experimental" marker for something that has been working fine for a long time and remove the ununderstandable part of the description.
2009-03-19 18:23:51 +00:00
rubidium
9fd7774235
(svn r15767) -Fix: infinite loop when skipping sprites when a GRF is invalid (or truncated).
2009-03-19 17:58:25 +00:00
rubidium
f5cb1873d6
(svn r15766) -Fix [FS#2744]: Crash when opening the content list window twice; inconsistencies when clicking download twice.
2009-03-19 17:56:45 +00:00
frosch
6dd04a9a78
(svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and use it everywhere, so CB 36 is also used everywhere.
2009-03-18 19:32:13 +00:00
glx
ea2c50281e
(svn r15762) -Codechange: inlined utf8 chars are not handled properly on eastern version of windows so escape them
2009-03-18 17:55:47 +00:00
translators
3a80b4213b
(svn r15761) -Update: WebTranslator2 update to 2009-03-18 17:44:55
...
croatian - 10 fixed by tifached (10)
indonesian - 4 fixed by adjayanto (4)
japanese - 60 fixed by ickoonite (60)
latvian - 5 fixed by silentKnight (5)
russian - 4 fixed by Smoky555 (4)
2009-03-18 17:48:58 +00:00
rubidium
35e4dc0f4b
(svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth)
2009-03-18 01:06:48 +00:00
glx
c0a4498518
(svn r15758) -Fix (r15757): win9x compilation
2009-03-18 00:55:10 +00:00
glx
5654966e75
(svn r15757) -Fix/hackaround (r15314): of course on some system searching a font using its english name fails. So now we search the font using the localised name and use the english name for the final 'validation' only.
2009-03-18 00:51:44 +00:00
rubidium
022a929e2d
(svn r15756) -Codechange: remove the assumption that the second windget is always the title bar. Also replace a few magic numbers with a const.
2009-03-17 23:26:28 +00:00
frosch
c7345c6db0
(svn r15755) -Fix: Number of houses in house variables 0x44, 0x60 and 0x61 were incorrect after 0xFF had been reached and could desync clients joining afterwards.
2009-03-17 19:40:10 +00:00
translators
ef28042bf1
(svn r15754) -Update: WebTranslator2 update to 2009-03-17 18:42:46
...
bulgarian - 63 fixed by thetitan (63)
dutch - 4 fixed by habell (4)
romanian - 3 fixed by kkmic (3)
spanish - 3 fixed by eusebio (3)
turkish - 3 fixed by Emin (3)
ukrainian - 4 fixed by mad (4)
2009-03-17 18:42:54 +00:00
yexo
5e1cad1b1b
(svn r15753) -Fix (r15702)[FS#2742]: Crash when clicking the small area between the savegame list and the save button in the save game window.
2009-03-17 17:17:52 +00:00
glx
e968f5c572
(svn r15752) -Fix: don't try to (un)draw the cursor when the screen is not ready
2009-03-17 16:28:21 +00:00
yexo
93be9a1c90
(svn r15750) -Fix: The big ufo sometimes landed just outside the map. Instead of landing, just disappear (fly away) in those cases.
2009-03-17 01:30:39 +00:00
yexo
72dc128915
(svn r15749) -Codechange: apply coding style to disaster_cmd.cpp
2009-03-17 00:47:01 +00:00
rubidium
f044ef6564
(svn r15748) -Fix (r1722): the assumption that the number of tiles on the X side equals the number of tiles on the Y side does not hold anymore. As a result of this submarines could be created far outside of the map. Later in r15733 we would test whether that tile would be a water tile and we'd find out the tile isn't within the map.
2009-03-16 23:23:33 +00:00
rubidium
7bbdd4f119
(svn r15747) -Fix [FS#2736]: road ownership getting lost when removing a road stop.
2009-03-16 20:45:32 +00:00
orudge
677b157943
(svn r15746) -Fix: Update threading code for OS/2, add mutex support
2009-03-16 20:05:24 +00:00
orudge
bcc870e3f8
(svn r15745) -Fix: Resolve compile error in fileio.cpp on OS/2 - base paths on OS/2 behave much like DOS
2009-03-16 20:03:37 +00:00
smatz
f62e71ba8e
(svn r15744) -Fix (r9667): when town generator failed to create requested number of towns, there were too many cities
2009-03-16 18:38:28 +00:00
yexo
384599ef2c
(svn r15743) -Codechange: move the definitions of some fake squirrel types to their own file.
2009-03-16 17:30:49 +00:00
yexo
b078f8095a
(svn r15742) -Fix (r15736): AIs with an invalid info.nut weren't ignored anymore.
2009-03-16 14:40:32 +00:00
smatz
cabf57b221
(svn r15741) -Fix (r15740): czech town name generator needs very long buffer, use different min size for each generator
2009-03-16 12:49:55 +00:00
smatz
38056dabdf
(svn r15740) -Codechange: make code in namegen.cpp ~50% faster, apply coding style and add comments
2009-03-16 10:51:49 +00:00
peter1138
5df06384d3
(svn r15739) -Codechange: Expose GRF ID of engines in var action property 0x25.
2009-03-16 08:03:50 +00:00
yexo
ce4744e1d6
(svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic classes ScriptScanner/ScriptFileInfo.
2009-03-15 22:41:57 +00:00
rubidium
dda2396096
(svn r15735) -Update: trunk ain't going to 0.7 anymore ;)
2009-03-15 22:16:02 +00:00
yexo
42e0a5d2ca
(svn r15733) -Fix: Enabling freeform edges could cause submarines to get stuck on land tiles.
2009-03-15 21:49:37 +00:00
rubidium
deab21114e
(svn r15732) -Fix: enumified constant name style
2009-03-15 21:34:18 +00:00
rubidium
64dcd8acc5
(svn r15731) -Codechange: unify submarine creation
2009-03-15 21:29:07 +00:00
rubidium
5648ea3058
(svn r15729) -Fix: silence MSVC warning
2009-03-15 21:16:07 +00:00
translators
9dc98b4c27
(svn r15728) -Update: WebTranslator2 update to 2009-03-15 18:52:21
...
czech - 7 fixed, 6 changed by SmatZ (13)
danish - 4 fixed by MiR (4)
german - 3 fixed by planetmaker (3)
hungarian - 2 fixed by alyr (2)
indonesian - 2 fixed by fanioz (2)
korean - 4 fixed by darkttd (4)
lithuanian - 43 fixed, 1 changed by Enternald (8), geckonas (36)
norwegian_nynorsk - 12 fixed by Thor (12)
2009-03-15 18:52:31 +00:00
smatz
36dfa1f21e
(svn r15727) -Codechange: apply coding style to namegen arrays
...
-Fix (r1307): missing comma in _name_original_english_4
2009-03-15 16:31:16 +00:00
smatz
8585aa71ed
(svn r15726) -Codechange: unify coding style for const pointers
2009-03-15 16:04:39 +00:00
smatz
af293142fe
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
2009-03-15 15:25:18 +00:00
rubidium
4f8eeca437
(svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (Alberth)
2009-03-15 15:22:09 +00:00
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
2009-03-15 15:12:06 +00:00
rubidium
8761a5a4c4
(svn r15721) -Change: give a more useful (for 'normal' users) error message when there's no AI and they want to play with an AI
2009-03-15 14:33:40 +00:00
rubidium
6e9dc85c76
(svn r15720) -Change: put a bit more information into the crash log
2009-03-15 14:28:46 +00:00
yexo
e5204f96f9
(svn r15719) -Update: the credit section.
2009-03-15 00:32:36 +00:00
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
d72273d1f3
(svn r15717) -Cleanup: apply some documentation coding style upon the stuff in table/
2009-03-15 00:03:27 +00:00
yexo
86a9df82b7
(svn r15716) -Change [NoAI]: AI libraries should now be stored in ai/library/<library_name>/ instead of ai/library/<category_name>/<library_name>/. Libraries inside tar files are not affected.
2009-03-14 23:57:37 +00:00
frosch
1f5ad840a4
(svn r15714) -Remove: 'Original vehicle names' - err - language... Use the (static) newgrf on BaNaNaS if you care.
2009-03-14 19:52:41 +00:00
frosch
e0dd907cab
(svn r15713) -Feature(ette): Allow static newgrfs to set 'GRF ID engine overrides', if the source GRF is static.
2009-03-14 19:38:19 +00:00
translators
40ddc49764
(svn r15712) -Update: WebTranslator2 update to 2009-03-14 18:38:56
...
catalan - 4 fixed by arnaullv (4)
finnish - 3 fixed by jpx_ (3)
french - 3 fixed by glx (3)
german - 3 fixed by planetmaker (3)
hungarian - 1 fixed, 1 changed by alyr (2)
italian - 3 fixed by lorenzodv (3)
lithuanian - 17 fixed by geckonas (17)
norwegian_nynorsk - 11 fixed by Thor (11)
slovenian - 10 fixed by Necrolyte (10)
2009-03-14 18:39:10 +00:00
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
glx
1692ce8312
(svn r15710) -Fix (r15706): for non MSVC io.h needs to be included before defining unlink. Also remove redundant tchar.h includes as it is already in stdafx.h.
2009-03-14 15:42:53 +00:00
rubidium
aea8e7291e
(svn r15709) -Change [FS#2729]: be a tad more specific about the fact that you're building incompatible tracks when building incompatible track types on the same tile.
2009-03-14 15:34:30 +00:00
yexo
2e6e2457f1
(svn r15708) -Feature [FS#2728]: Pop up the AI Debug Window if one of the AIs crashed and show a message that the user should report the crash.
2009-03-14 01:32:04 +00:00
michi_cc
0ca92a47a2
(svn r15707) -Fix (r15686): The config file was not updated on Windows because rename() can't replace existing files.
2009-03-14 00:26:03 +00:00
michi_cc
b1479bec02
(svn r15706) -Fix: Make sure the filename passed to unlink() is always in file system encoding.
2009-03-14 00:25:59 +00:00
frosch
fa35dc10e5
(svn r15705) -Fix: Do not show passenger-/mail-capacity if the aircraft carries only cargo.
2009-03-13 23:49:12 +00:00
smatz
40745dc0d9
(svn r15704) -Cleanup: remove further includes from recently split files
2009-03-13 23:48:07 +00:00
belugas
42d9816ce3
(svn r15703) -Codechange: split Cmd* from waypoint.cpp to waypoint_cmd.cpp.
2009-03-13 21:49:24 +00:00
rubidium
27bcfd115b
(svn r15702) -Feature(tte): direct content download 'links' in the play scenario/heightmap windows.
2009-03-13 21:32:38 +00:00
frosch
4129b418cc
(svn r15701) -Fix [FS#2595]: Blame NewGRFs returning inconsistent information in purchase-list/after building before users have a chance to blame OpenTTD for incorrectly autorenewing/-replacing.
2009-03-13 21:28:40 +00:00
rubidium
e6353a1a22
(svn r15700) -Codechange: split Cmd* from signs.cpp to signs_cmd.cpp.
2009-03-13 20:29:35 +00:00
rubidium
070320f25b
(svn r15699) -Codechange: split Cmd* from vehicle.cpp to vehicle_cmd.cpp.
2009-03-13 20:09:35 +00:00
translators
38d66e82e2
(svn r15698) -Update: WebTranslator2 update to 2009-03-13 18:45:47
...
dutch - 1 changed by Excel20 (1)
english_US - 1 fixed by WhiteRabbit (1)
finnish - 1 fixed by jpx_ (1)
german - 1 fixed, 3 changed by planetmaker (4)
italian - 1 fixed by lorenzodv (1)
slovak - 1 fixed by James (1)
turkish - 3 fixed by jnmbk (3)
2009-03-13 18:45:56 +00:00
rubidium
2adbf67968
(svn r15697) -Fix (r15695): warning about comparing signed vs unsigned.
2009-03-13 00:48:03 +00:00
rubidium
eb0d43aadd
(svn r15696) -Codechange: move the NewGRF language ID into the language file instead of maintaining a table in the code.
2009-03-13 00:30:26 +00:00
belugas
f6e4bc765a
(svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
...
Some warnings:
-the maximum number of towns to be accepted is set to 5000
-the minimum number of towns to be accepted is set to 1
-the number that is specified is NOT guaranteed to be the exact number of towns generated. The normal mechanism of town creation has not been modified. So town placement can still fail.
-setting a custom number of town will change your difficulty settings to custom as well
2009-03-12 23:54:20 +00:00
rubidium
af18469455
(svn r15694) -Codechange/feature/fix: invert the order in which base graphics sets are queried making it fairly unlikely that downloaded graphics sets override the original graphics.
2009-03-12 20:43:03 +00:00
frosch
afe547448e
(svn r15692) -Fix [FS#2721]: Just sell the old engines after autorenew/replace. Don't bother about trains exceeding the trainlimit, which will be sold anyway.
2009-03-12 19:40:16 +00:00
translators
684d1c4d4c
(svn r15691) -Update: WebTranslator2 update to 2009-03-12 18:42:18
...
french - 1 fixed by glx (1)
hungarian - 1 fixed by alyr (1)
luxembourgish - 258 fixed, 3 changed by Gubius (261)
persian - 146 fixed by ali sattari (146)
russian - 1 fixed by Smoky555 (1)
spanish - 1 fixed by eusebio (1)
2009-03-12 18:42:25 +00:00
rubidium
0f361aab6e
(svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window.
2009-03-12 16:48:28 +00:00
rubidium
d5a2dc1d0b
(svn r15689) -Fix [FS#2720]: do not crash when the generate map doesn't contain a suitable location for a town.
2009-03-12 15:14:22 +00:00
rubidium
9dbf8a163f
(svn r15688) -Codechange: unifiy cleaning up the map generation (normal and abort)
2009-03-12 14:28:55 +00:00
rubidium
8ed58f2b94
(svn r15687) -Fix [FS#2723]: wrong/misleading error message when autorail builds nothing when trying to build over signals in the wrong way.
2009-03-12 14:23:23 +00:00
rubidium
bd2e1ac903
(svn r15686) -Codechange: make it a bit harder for crashes to trash your config file.
2009-03-12 14:22:17 +00:00
rubidium
3d780608a2
(svn r15685) -Fix [FS#2720]: do not crash when someone substitutes the "map generation" sprites with garbage.
2009-03-12 14:21:18 +00:00
yexo
cef662825b
(svn r15684) -Add [NoAI]: AIOrder::SkipToOrder().
2009-03-12 11:43:40 +00:00
yexo
9eef8f77e2
(svn r15683) -Fix (r15670): Removing town-owned bridges was no longer possible.
2009-03-12 11:36:18 +00:00
rubidium
84e5e44ca9
(svn r15682) -Codechange: some coding style
2009-03-12 11:28:03 +00:00
rubidium
55ce735c2c
(svn r15681) -Cleanup: remove unneeded forward declaration.
2009-03-12 11:04:41 +00:00
smatz
c2834412f7
(svn r15680) -Cleanup: remove redundant comment
2009-03-12 10:42:02 +00:00
belugas
7f650197d7
(svn r15679) -Cleanup: Little code-style application
2009-03-12 01:35:27 +00:00
rubidium
f67e2a41ce
(svn r15678) -Fix (r15676): crash when (re)applying newgrf settings
2009-03-11 23:35:32 +00:00
rubidium
cf21547814
(svn r15677) -Fix [FS#2546]: vehicle images would be determined during the process of moving the vehicle which means that only the (orientation) data for the vehicles in front of it is valid. Now the data for the vehicles behind the vehicle are valid too.
2009-03-11 23:23:08 +00:00
rubidium
655b0ccc2e
(svn r15676) -Codechange: remove the need for BeginVehicleMove and merge VehiclePositionChanged and EndVehicleMove.
2009-03-11 20:43:14 +00:00
rubidium
48c8cdfd84
(svn r15675) -Codechange: don't unnecessarily mark vehicles dirty before deleting them; it already happens in the destructor.
2009-03-11 19:50:19 +00:00
translators
a471321b1b
(svn r15674) -Update: WebTranslator2 update to 2009-03-11 18:52:10
...
german - 9 changed by planetmaker (9)
indonesian - 1 fixed by fanioz (1)
luxembourgish - 121 fixed by Gubius (121)
portuguese - 4 fixed by SnowFlake (4)
russian - 1 fixed by Smoky555 (1)
slovak - 3 fixed by James (3)
2009-03-11 18:52:19 +00:00
glx
308dbcf822
(svn r15673) -Fix: it was not possible to compile a win32 dedicated server (even if 'configure --enable-dedicated' passed)
2009-03-11 17:40:49 +00:00
rubidium
fb2ea6c9ed
(svn r15672) -Codechange: (left,right,top,bottom)_coord -> coord.(left,right,top,bottom), i.e. use Rect.
2009-03-11 17:26:58 +00:00
rubidium
66e0fcdd01
(svn r15671) -Codechange: bit of coding style/clarification.
2009-03-11 15:00:40 +00:00
yexo
bdab37b11a
(svn r15670) -Fix (r15601): The owner of both the road and of the tram tracks was checked, but not the owner of the road itself.
2009-03-11 10:58:42 +00:00
yexo
2b0b9a6367
(svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open.
2009-03-11 09:21:11 +00:00
yexo
13fb01d07d
(svn r15668) -Fix: a few typos.
2009-03-11 07:32:31 +00:00
yexo
da0cbb2a2f
(svn r15667) -Fix (r15601)[FS#2718]: It was possible to remove rail tunnels/bridges and aqueducts build by rival companies.
2009-03-10 23:16:45 +00:00
rubidium
fa78027ffd
(svn r15666) -Fix [FS#2689]: sorting of engines in the purchase list didn't use the same numbers as the GUI showed, e.g. articulated parts weren't taken into accound when ordering by capacity.
2009-03-10 21:17:00 +00:00
peter1138
733c0c5c5b
(svn r15665) -Fix (r8973): Handling of aircraft crash counter did not take account of the reduced number of calls (from 6 down to 2) to the aircraft event handler, resulting in crashed aircraft taking three times longer than they should to clear. Compensate by increasing the counter by 3 on every call instead of 1.
2009-03-10 18:54:33 +00:00
glx
f45e3b3068
(svn r15664) -Fix [FS#2716]: as always windows needs special handling when strings are involved
2009-03-10 14:54:46 +00:00
rubidium
d6f2a65323
(svn r15663) -Fix: growing of vsize as (some) threads weren't properly released.
2009-03-10 11:12:03 +00:00
peter1138
0564d52d99
(svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command.
2009-03-10 06:53:00 +00:00
yexo
01167ea456
(svn r15659) -Fix [Squirrel]: The garbage collection would sometimes loop (2^32 - small_value) times instead of only small_value times.
2009-03-09 23:08:23 +00:00
yexo
1ff06b3f9c
(svn r15658) -Fix [NoAI]: Rewrite AIAbstractList::Valuate to make it more readable and fix a crash if no parameters are given to that function.
2009-03-09 22:14:47 +00:00
rubidium
c4c0a09927
(svn r15657) -Fix [FS#2716]: undeterministic file sorting when the date is equal for all files
2009-03-09 21:55:17 +00:00
frosch
aa7a19fd49
(svn r15656) -Fix: Changing dynamic_engines also requires reloading newgrfs as well as resetting the OverrideManager.
2009-03-09 21:33:05 +00:00
michi_cc
e982100fe6
(svn r15655) -Codechange: Initialise vehicle vars only after a placement new so possible default constructors don't overwrite the values.
2009-03-09 19:14:36 +00:00
frosch
cfea2d428b
(svn r15654) -Fix: Only ever call any vehicle callbacks after the whole articulated engine has been built. (except 0x16)
2009-03-09 18:56:50 +00:00
translators
db05dbc70a
(svn r15653) -Update: WebTranslator2 update to 2009-03-09 18:42:57
...
dutch - 1 fixed by habell (1)
german - 1 fixed by planetmaker (1)
luxembourgish - 387 fixed by Gubius (387)
romanian - 1 fixed by kkmic (1)
thai - 29 fixed by meemee1983 (29)
welsh - 1 fixed by PlayDead (1)
2009-03-09 18:43:05 +00:00
michi_cc
81595bf256
(svn r15652) -Fix [FS#2706]: new (this) is seldom a good idea as destructors of member variables aren't run causing memory leaks.
2009-03-09 18:41:54 +00:00
peter1138
6667241814
(svn r15651) -Codechange: Codestyle and comments.
2009-03-09 13:38:00 +00:00
peter1138
6616393cd2
(svn r15650) -Codechange: Use a ReusableBuffer for loading NewGRF pseudo-sprites into instead of using malloc()/free() for every single one.
2009-03-09 13:06:49 +00:00
rubidium
60de42be49
(svn r15649) -Fix (r15556): don't unnecessarily reallocate
2009-03-09 09:38:00 +00:00
rubidium
a231ab7560
(svn r15648) -Fix (r14773): hack around an OSX stupidity in < 10.4 w.r.t. signals by not having any signal handling support for OSX < 10.4. Thanks to PearPC and TrueBrain's OSX compiler.
2009-03-08 23:06:41 +00:00
translators
7b39b0c652
(svn r15647) -Update: WebTranslator2 update to 2009-03-08 18:32:50
...
arabic_egypt - 2 fixed, 20 changed by khaloofah (22)
catalan - 1 fixed by arnaullv (1)
dutch - 4 changed by Yexo (4)
english_US - 3 fixed by WhiteRabbit (3)
finnish - 1 fixed, 1 changed by jpx_ (2)
french - 1 fixed by glx (1)
greek - 57 fixed by hellis (57)
hungarian - 1 fixed by alyr (1)
italian - 1 fixed by lorenzodv (1)
korean - 1 fixed by leejaeuk5 (1)
traditional_chinese - 2 changed by josesun (2)
ukrainian - 1 fixed by mad (1)
2009-03-08 18:33:05 +00:00
frosch
e17ded04f1
(svn r15646) -Fix: Be lenient on users who do stupid things like loading newgrfs statically, which modify engine names, while dynamic_engines is enabled or the to be modified engine is not (yet) present.
2009-03-08 18:08:30 +00:00
frosch
987e72f4f2
(svn r15645) -Fix (r12924)[FS#2612]: Add an EngineOverrideManager to give the term 'compatible newgrf' again some sense and to not crash because of trivial changes.
2009-03-08 16:51:08 +00:00
rubidium
4a5c4f6089
(svn r15644) -Fix [FS#2710]: closing a network connection twice in the case that sending packets starts failing while disconnecting
2009-03-08 16:14:14 +00:00
smatz
e124aa8fd6
(svn r15643) -Fix [FS#2711]: be more strict with zeroing unused map array bits
2009-03-08 16:10:39 +00:00
smatz
7c8474da13
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
2009-03-08 01:20:11 +00:00
rubidium
f5c1365471
(svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard...
2009-03-07 23:02:28 +00:00
smatz
642dc1ea5e
(svn r15640) -Fix [FS#2712]: game crashes when network pools are empty, so always allocate at least one pool block
2009-03-07 22:40:47 +00:00
yexo
3f73152b7f
(svn r15639) -Change: When you disable "Towns are allowed to build roads", pressing "Expand" in the town window in the scenario editor will no longer build roads.
2009-03-07 21:36:13 +00:00
truebrain
3ca01c64f7
(svn r15638) -Fix: there is a time in your life you should stop coding for a project. You know that time is there when you make two huge mistakes in just 10 lines of code. I wish you all the best of luck :) (ps: HUGE mistakes!)
2009-03-07 20:55:24 +00:00
truebrain
3adc0d77b8
(svn r15637) -Fix: when you try to protect something from doing something it shouldn't be doing, make sure that the actions happening after that, doesn't start doing what it shouldn't be doing. This of course would only happen in rare corner cases.
2009-03-07 20:53:32 +00:00
translators
81dde09c27
(svn r15636) -Update: WebTranslator2 update to 2009-03-07 18:58:32
...
greek - 211 fixed, 4 changed by hellis (215)
korean - 2 changed by dlunch (2)
2009-03-07 18:58:35 +00:00
rubidium
accb79049e
(svn r15635) -Fix [FS#2707]: don't allow more than 64 road vehicles to reserve a slot at a single road stop. 255 + 1 gives trouble, but 64 is even more than the roadstop would be able to handle within the slot timeout time.
2009-03-07 18:19:53 +00:00
rubidium
0d2d5565a6
(svn r15634) -Fix (r15632): some compilers seem to warn about the return value of fscanf.
2009-03-07 17:57:54 +00:00
yexo
d1a9fcc67f
(svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr.
2009-03-06 21:07:01 +00:00
rubidium
406832fed8
(svn r15632) -Feature: allow downloading scenarios and heightmaps via bananas.
2009-03-06 19:33:45 +00:00
translators
bc58d4ef9a
(svn r15631) -Update: WebTranslator2 update to 2009-03-06 18:47:57
...
catalan - 1 fixed by arnaullv (1)
german - 33 changed by planetmaker (33)
greek - 14 fixed by hellis (14)
korean - 1 fixed by darkttd (1)
luxembourgish - 818 fixed by Gubius (818)
persian - 72 fixed by ali sattari (72)
romanian - 1 fixed by kkmic (1)
russian - 1 fixed by Smoky555 (1)
welsh - 1 fixed by PlayDead (1)
2009-03-06 18:48:10 +00:00
yexo
3633fd9a06
(svn r15630) -Fix (r15027): Make sure OpenTTD loads the dummy AI script when no other AI is available instead of a non-existing file.
2009-03-06 15:20:18 +00:00
yexo
b520d73285
(svn r15629) -Fix (r15027): Validate strings that are passed from squirrel to the API, not strings passed from the API to squirrel.
2009-03-06 14:21:26 +00:00
smatz
f3ed8268b6
(svn r15628) -Fix [FS#2705]: kicking/banning a client from the Client list window crashed the server
2009-03-06 12:42:01 +00:00
belugas
3d05c31031
(svn r15627) -Documentation: Add two Doxygen strings (Alberth).
2009-03-06 03:01:35 +00:00
rubidium
86ca408d46
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
2009-03-06 01:23:25 +00:00
smatz
c3a7e6b693
(svn r15625) -Codechange: remove unneeded assert
2009-03-06 00:41:58 +00:00
smatz
a92cd2b72e
(svn r15624) -Fix (r15621): warning about comparing signed and unsigned integer types
2009-03-05 22:55:47 +00:00
rubidium
f2f2a6d303
(svn r15623) -Fix (r15615): close the files you've opened
2009-03-05 22:14:27 +00:00
peter1138
7dd6f218ef
(svn r15622) -Codechange: Duplication.
2009-03-05 17:52:35 +00:00
peter1138
1bde2d97b5
(svn r15621) -Feature: When cloning a vehicle with a custom name, add and/or increment a number at the end of name and assign it to the new vehicle (for emma)
2009-03-05 17:37:56 +00:00
belugas
05fe2d8d21
(svn r15620) -Fix[FS#2699]: Error in documentation (Conditional Zenith).
2009-03-05 17:21:42 +00:00
michi_cc
a4aba77e49
(svn r15619) -Fix [FS#2701]: When trying to reserve a self-crossing path the failed reservation was sometimes not cleared completely.
2009-03-05 16:14:56 +00:00
rubidium
c0d71b84f9
(svn r15617) -Change [FS#2694]: vehicle variables 40-43 weren't cached (though spec stated they are). Caching these variables can yield a 10+% speed increase when those vehicle variables are queried often.
2009-03-04 23:32:23 +00:00
yexo
890c5e3ae4
(svn r15616) -Change [API CHANGE]: Rename AIOrder::ChangeOrder() to AIOrder::SetOrderFlags().
2009-03-04 23:12:48 +00:00
rubidium
15e9fdd47a
(svn r15615) -Feature: show scenarios/heightmaps from both your home directory and installation directory.
...
-Change [FS#2692]: make it more likely that scenarios are saved to the directory where openttd.cfg is and not the installation directory (gives problems with e.g. Vista). The working directory still overrides the openttd.cfg directory though, but only if it has a scenario directory.
2009-03-04 23:12:15 +00:00
yexo
ffe2caf20f
(svn r15614) -Add [NoAI]: AIVehicleList_Group(group_id) and AIVehicleList_DefaultGroup(vehicle_type).
2009-03-04 22:37:25 +00:00
translators
5fd7c79987
(svn r15613) -Update: WebTranslator2 update to 2009-03-04 18:38:03
...
finnish - 1 fixed by UltimateSephiroth (1)
french - 1 fixed by glx (1)
german - 17 changed by planetmaker (17)
icelandic - 73 fixed by pall (73)
italian - 1 fixed by lorenzodv (1)
ukrainian - 1 fixed by mad (1)
2009-03-04 18:38:12 +00:00
rubidium
a52d50c62f
(svn r15612) -Codechange: unduplicate directory creation
2009-03-04 14:25:53 +00:00
rubidium
6cbf131318
(svn r15611) -Change: when sorting files on modification date and the modification date is equal sort on the title so reversing the sorting direction actually reverses the order the listed files
2009-03-04 10:02:00 +00:00
rubidium
0d8da02ec1
(svn r15610) -Change: allow loading of heightmaps and savegames (any form) that are in .tar files
2009-03-04 09:53:31 +00:00
peter1138
f0de54bc10
(svn r15609) -Fix: Code style...
2009-03-04 08:02:16 +00:00
rubidium
0682c1c46c
(svn r15608) -Codechange: use the file scanner to find the files for the saveload window.
2009-03-04 01:09:48 +00:00
rubidium
4f3da358ee
(svn r15607) -Codechange: support searching files without filtering on extension.
2009-03-04 00:19:42 +00:00
rubidium
d1d0778a54
(svn r15606) -Codechange: make it possible to not recursively search with the file scanner (i.e. only search a single directory).
2009-03-04 00:17:51 +00:00
rubidium
908e850b5a
(svn r15605) -Codechange: constify a function
2009-03-04 00:13:52 +00:00
rubidium
f1a96c5577
(svn r15604) -Fix [FS#2661]: towns would only build houses where the grid would not be, even when they aren't allowed to build roads and the user 'implements' another layout.
2009-03-03 22:46:08 +00:00
rubidium
b55ed2e668
(svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor.
2009-03-03 20:33:57 +00:00
translators
07df0d05dc
(svn r15602) -Update: WebTranslator2 update to 2009-03-03 18:40:15
...
brazilian_portuguese - 1 fixed by tucalipe (1)
dutch - 1 fixed by habell (1)
german - 1 fixed, 12 changed by planetmaker (13)
hungarian - 1 fixed by alyr (1)
indonesian - 1 fixed by fanioz (1)
persian - 102 fixed by ali sattari (102)
spanish - 1 fixed by eusebio (1)
2009-03-03 18:40:23 +00:00
rubidium
7831346ef8
(svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
...
-Feature: allow building road stops on road/tram tracks of competitors.
2009-03-02 22:57:47 +00:00
yexo
6dd3703a4c
(svn r15600) -Fix (r0): Replace a newline in a news message by four spaces before drawing it in the statusbar.
2009-03-02 21:01:19 +00:00
translators
9ff4ae0f5d
(svn r15599) -Update: WebTranslator2 update to 2009-03-02 18:39:38
...
brazilian_portuguese - 4 fixed by tucalipe (4)
german - 35 changed by planetmaker (35)
lithuanian - 49 fixed, 33 changed by Devastator (82)
2009-03-02 18:39:42 +00:00
rubidium
b1c105e77e
(svn r15598) -Fix [FS#2695]: crash when opening viewport while scrolling the map and the mouse 'lands' on the window decoration of the viewport.
2009-03-02 18:01:33 +00:00
rubidium
52f5717a66
(svn r15596) -Change: road vehicles can stop at stops when they own the stop, not when they own the road/tram track.
2009-03-01 21:48:03 +00:00
translators
6082ba65d7
(svn r15595) -Update: WebTranslator2 update to 2009-03-01 18:35:59
...
german - 39 changed by planetmaker (39)
icelandic - 80 fixed by scrooge (80)
italian - 2 changed by lorenzodv (2)
lithuanian - 116 fixed by Devastator (116)
persian - 219 fixed by ali sattari (219)
serbian - 4 fixed by marko85nis (4)
2009-03-01 18:36:05 +00:00
translators
ff348c8972
(svn r15594) -Update: WebTranslator2 update to 2009-02-28 18:51:15
...
arabic_egypt - 7 fixed by khaloofah (7)
french - 1 fixed by glx (1)
frisian - 51 fixed by luc (51)
german - 25 changed by planetmaker (25)
italian - 2 changed by lorenzodv (2)
korean - 1 changed by leejaeuk5 (1)
persian - 147 fixed, 2 changed by ali sattari (149)
swedish - 4 fixed by Wiggelicous (4)
traditional_chinese - 87 changed by josesun (87)
ukrainian - 4 fixed by mad (4)
urdu - 22 fixed by yasirniazkhan (22)
2009-02-28 18:51:26 +00:00
yexo
dbec2ec628
(svn r15593) -Change: the background of the the waypoint sign is now in the company color.
2009-02-27 22:26:06 +00:00
frosch
e01106f66b
(svn r15592) -Fix: Refit-info in purchase list did only check the first articulated part.
2009-02-27 20:40:39 +00:00
translators
7299728472
(svn r15591) -Update: WebTranslator2 update to 2009-02-27 18:16:01
...
afrikaans - 6 changed by Ludslad (6)
catalan - 1 fixed by arnaullv (1)
danish - 4 fixed by ThomasA (4)
dutch - 4 fixed by habell (4)
finnish - 1 fixed by jpx_ (1)
frisian - 41 fixed, 8 changed by luc (49)
german - 1 fixed by planetmaker (1)
hungarian - 1 fixed by alyr (1)
indonesian - 4 fixed by fanioz (4)
italian - 1 fixed, 2 changed by lorenzodv (3)
korean - 4 fixed, 35 changed by leejaeuk5 (8), darkttd (31)
portuguese - 1 fixed by izhirahider (1)
romanian - 1 fixed, 1 changed by kkmic (2)
russian - 1 fixed by Smoky555 (1)
spanish - 4 fixed by eusebio (3), erregerre (1)
turkish - 4 fixed by Emin (4)
welsh - 1 fixed, 5 changed by PlayDead (6)
2009-02-27 18:16:21 +00:00
yexo
eafdc200c8
(svn r15590) -Fix (r15584): _screenshot_name is an array, not a char * pointer.
2009-02-26 20:30:41 +00:00
smatz
1a940c24e3
(svn r15589) -Fix: drawing of waypoints with invalid owner was broken
...
-Change: don't take over waypoints without owner, it could belong to a bankrupted company (and the code was broken) - savegame conversion code is a bit more liberal now, too
2009-02-26 14:10:57 +00:00
smatz
3fdac6f702
(svn r15588) -Fix: change owner of waypoints and deleted stations when merging companies or when a company benkrupts
2009-02-26 14:07:42 +00:00
yexo
a41b143e58
(svn r15587) -Fix (r15345): I should really test even those simple api functions better.
2009-02-26 07:30:13 +00:00
yexo
a78724e824
(svn r15586) -Fix [FS#2687]: Changing vehicle.dynamic_engines when there are already vehicles can cause crashes.
2009-02-26 01:53:22 +00:00
yexo
a0c4f1156a
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
2009-02-25 21:50:54 +00:00
yexo
fb7b0536e7
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
2009-02-25 21:45:14 +00:00
frosch
c5684e56ec
(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
2009-02-25 21:29:50 +00:00
frosch
c7e324bb40
(svn r15582) -Cleanup: Remove unused function AdjustTileCoordRandomly(). Btw. it would also cause desyncs and wrap around the map.
2009-02-25 21:24:42 +00:00
translators
0a2e46c6c7
(svn r15581) -Update: WebTranslator2 update to 2009-02-25 18:44:53
...
afrikaans - 7 changed by Ludslad (7)
catalan - 3 fixed by arnaullv (3)
czech - 3 fixed by Hadez (3)
danish - 12 fixed, 13 changed by ThomasA (25)
dutch - 3 fixed by habell (3)
english_US - 3 fixed by WhiteRabbit (3)
estonian - 54 fixed by t2t2 (54)
finnish - 3 fixed by jpx_ (3)
french - 3 fixed, 8 changed by belugas (8), glx (3)
german - 3 fixed by planetmaker (3)
hungarian - 3 fixed by alyr (3)
italian - 3 fixed by lorenzodv (3)
norwegian_bokmal - 7 fixed by christian (7)
romanian - 3 fixed, 5 changed by kkmic (8)
russian - 3 fixed by Smoky555 (3)
slovak - 3 fixed by James (3)
traditional_chinese - 37 fixed by irvin (37)
welsh - 3 fixed by welshdragon (3)
2009-02-25 18:45:16 +00:00
rubidium
3ae9851bd8
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
2009-02-25 17:00:59 +00:00
rubidium
1ad50ce4e6
(svn r15578) -Change: unexternalise squirrel.
2009-02-25 01:21:50 +00:00
rubidium
66a8c0a132
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
2009-02-25 00:48:04 +00:00
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
2009-02-25 00:45:52 +00:00
yexo
901230bde1
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
2009-02-25 00:14:46 +00:00
rubidium
d86ae1fde6
(svn r15574) -Fix [FS#2680]: force unload not working when trying to force unload at the station where you received the cargo
2009-02-25 00:12:57 +00:00
yexo
1104e10695
(svn r15573) -Fix (r15538): Terrain type and sea level couldn't be changed in the scenario editor.
2009-02-24 23:20:17 +00:00
smatz
13f390be3e
(svn r15572) -Fix (r13730): theoretical buffer overflow when company with too long name funded a road reconstruction
2009-02-24 22:57:02 +00:00
smatz
846044ee26
(svn r15571) -Fix: incorrect use of memset
2009-02-24 22:25:23 +00:00
yexo
2860399397
(svn r15570) -Fix: Too long strings in the advanced settings window are now truncated.
2009-02-24 22:23:47 +00:00
smatz
425fe86a3d
(svn r15569) -Codechange: replace MallocT + memset( 0 ) calls by CallocT
2009-02-24 21:32:23 +00:00
smatz
d73c1fa7bf
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
2009-02-24 20:59:17 +00:00
yexo
8beca127dd
(svn r15567) -Fix [FS#2674]: When building signals by dragging from a pre/entry/combo block signal, the signal you started at became a normal block signal.
2009-02-24 19:15:23 +00:00
rubidium
8fa247c4b1
(svn r15566) -Change: reintroduce space as valid method of selecting 'content' as long as the filter box is not focused. Enter will also work when the filter box is focused.
2009-02-24 13:32:18 +00:00
rubidium
4bf2f4a166
(svn r15565) -Fix [FS#2675]: dependency information wasn't requested after the content state was reset causing the dependencies not always being selected (and thus downloaded) automatically.
2009-02-24 13:25:35 +00:00
yexo
391fe952b9
(svn r15564) -Fix: Refresh all industry windows if the modify production cheat is enabled/disabled.
2009-02-23 22:00:29 +00:00
yexo
932b1c24b2
(svn r15563) -Change [API CHANGE]: Remove AIIndustry::GetMaxIndustryID().
2009-02-23 21:07:01 +00:00
yexo
1884ba20bc
(svn r15562) -Change: Use GetName() to determine the unique AI name instead of GetInstanceName() to make branching of AIs easier.
2009-02-23 20:57:55 +00:00
rubidium
c876e3e1b2
(svn r15561) -Fix [FS#2646]: segfault when saving a preset with unknown NewGRFs
2009-02-23 20:45:34 +00:00
rubidium
cfc233e2ab
(svn r15560) -Fix: typos in Spanish town names (Erregerre)
2009-02-23 20:42:20 +00:00
frosch
a987c7299b
(svn r15559) -Feature: Show required/already-delivered cargo needed for town-growth in town-view-window. (and only if it is really needed)
2009-02-23 20:03:38 +00:00
yexo
cabfe35e54
(svn r15558) -Cleanup: Remove some unnecessary friend declarations.
2009-02-23 19:35:19 +00:00
rubidium
85c0276d0e
(svn r15557) -Fix: the font width cache was not updated when changing fonts causing the font spacing to be off when changing fonts in-game (auto font detection).
2009-02-23 18:14:18 +00:00
rubidium
3ba802e995
(svn r15556) -Change: don't temporary malloc+free when encoding sprites, just reuse the same piece of allocated memory for each encoding.
2009-02-23 17:54:02 +00:00
rubidium
0c1b8ea602
(svn r15555) -Codechange: remove the mallocs + frees for temporary data from loading sprites.
2009-02-23 10:50:25 +00:00
rubidium
2433ba042b
(svn r15554) -Fix: -v null crashing in 2051 due to trying to show the high score of the spectator.
2009-02-23 01:51:19 +00:00
translators
c81866fb8d
(svn r15553) -Update: WebTranslator2 update to 2009-02-22 18:58:31
...
french - 2 changed by belugas (2)
japanese - 67 fixed by ickoonite (67)
polish - 3 fixed by xaxa (3)
spanish - 38 changed by erregerre (38)
2009-02-22 18:58:44 +00:00
rubidium
54f852f094
(svn r15552) -Fix (r15544): some compiler/OS combinations don't like closing the same FD twice and zlib's docs weren't very clear about whether it would close a FD it didn't open.
2009-02-22 02:57:15 +00:00
rubidium
731c1e90e8
(svn r15551) -Fix [FS#2656]: [NoAI] crash when setting a depot order to the southern part of a ship depot
2009-02-22 00:30:36 +00:00
rubidium
b68a870fe3
(svn r15550) -Fix [FS#2654]: bogus secondary error message when dynamiting industries/unmoveables; "X is in the way" isn't helpful at all in that case.
2009-02-21 21:38:46 +00:00
translators
930a31f5f5
(svn r15549) -Update: WebTranslator2 update to 2009-02-21 18:48:25
...
brazilian_portuguese - 5 changed by tucalipe (5)
german - 7 changed by planetmaker (7)
indonesian - 4 changed by fanioz (4)
korean - 2 changed by darkttd (2)
norwegian_nynorsk - 1 fixed, 7 changed by Thor (8)
polish - 15 fixed by xaxa (11), coolik (4)
romanian - 2 changed by kkmic (2)
simplified_chinese - 3 fixed by ww9980 (3)
spanish - 2 changed by eusebio (2)
2009-02-21 18:48:38 +00:00
rubidium
87751dc95d
(svn r15548) -Fix: incorrect error message when removing non-existing diagonal rail (TRACK_X/Y) with the single directional rail tool (i.e. not autorail).
2009-02-21 18:10:08 +00:00
frosch
6390ece34f
(svn r15547) -Codechange: Eliminate all == and != comparisons between v->cargo_cap and v->cargo.Count() to improve behaviour wrt. broken/incompatible grfs.
2009-02-21 15:56:02 +00:00
rubidium
81d8e55c38
(svn r15546) -Fix [FS#2651]: keep_all_autosave ignored for dedicated servers/spectators.
2009-02-21 15:23:49 +00:00
rubidium
8316c4381f
(svn r15545) -Fix [FS#2653]: if a buoy was placed directly in front of a dock, that dock was seen as a buoy and thus skipped once within 3 tiles.
2009-02-21 14:02:00 +00:00
rubidium
fdc2e85184
(svn r15544) -Fix [FS#2650]: extracting downloaded content didn't work for Windows if one uses a non-ASCII.
2009-02-21 14:00:35 +00:00
rubidium
a4567f243d
(svn r15543) -Change: allow the default debug level of 6 for a dedicated server to be overriden by -d (if used after -D).
2009-02-21 13:27:09 +00:00
frosch
157e0481ad
(svn r15542) -Feature(ette): Support vehicle vars 0x47 and 0xF2 in purchase list.
2009-02-21 13:24:55 +00:00
frosch
d3850e101c
(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
...
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
Note: It is intentional that you cannot control refittability by CB 36.
2009-02-21 12:52:41 +00:00
frosch
b674d1f6f5
(svn r15540) -Fix: Testing of 'only_this' in CmdRefitRoadVeh() could be skipped by 'continue'.
2009-02-21 11:54:25 +00:00
frosch
85333d4211
(svn r15539) -Fix: If an aircraft cannot carry any available cargo, it should not be available either instead of falling back to passenger/mail. Just like the other vehicle types also do.
2009-02-21 11:50:17 +00:00
yexo
c3c549f731
(svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui.
2009-02-21 02:34:53 +00:00
rubidium
13bc604fde
(svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ship sprite) as characters in input like filenames or text that is sent over the network.
2009-02-21 00:47:59 +00:00
glx
ab3fc1d437
(svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs
2009-02-21 00:43:18 +00:00
frosch
15789a76c1
(svn r15534) -Codechange: Rename some variables.
2009-02-20 23:21:04 +00:00
rubidium
c4fb879561
(svn r15532) -Fix (r15525): don't try to load (and forget) AI data from a non-existing AI when joining a server. In other words: you can join network servers again.
2009-02-20 21:05:27 +00:00
yexo
7dc607b2d1
(svn r15531) -Fix (r15467): AIs were stopped at every error, whether they caught it or not.
2009-02-20 13:39:18 +00:00
yexo
07a37af14c
(svn r15530) -Fix (r15519): The AIWaypoint classes were not exported to squirrel.
2009-02-20 10:03:16 +00:00
rubidium
c5677da94d
(svn r15529) -Fix [FS#2644]: the local command queue didn't get properly cleaned when leaving a game meaning you could end up executing commands of the previous network game.
2009-02-20 00:03:29 +00:00
yexo
ef67e59145
(svn r15528) -Fix (r15525): Check should be the other way around (thanks SmatZ).
2009-02-20 00:02:25 +00:00
yexo
a54061f840
(svn r15527) -Fix (r15526): A ')' too much.
2009-02-19 23:22:31 +00:00
yexo
b3fe664d90
(svn r15526) -Add [NoAI]: Support for conditional orders.
2009-02-19 23:12:57 +00:00
yexo
2fdc395d45
(svn r15525) -Fix: Don't try to find the AIs the server runs when joining a mp server.
2009-02-19 23:10:32 +00:00
yexo
3491b0fab9
(svn r15524) -Add [NoAI]: AIEngine::GetPower, AIEngine::GetWeight and AIEngine::GetMaxTractiveEffort.
2009-02-19 19:44:19 +00:00
translators
ce5b380a1d
(svn r15523) -Update: WebTranslator2 update to 2009-02-19 16:58:17
...
afrikaans - 3 fixed, 8 changed by Ludslad (11)
estonian - 14 fixed by t2t2 (14)
latvian - 1 changed by v3rb0 (1)
luxembourgish - 336 fixed by Gubius (336)
2009-02-19 16:58:24 +00:00
rubidium
a5f30dd553
(svn r15521) -Codechange: add helper function to get the display tractive effort of a vehicle.
2009-02-19 09:45:44 +00:00
yexo
459a855e60
(svn r15520) -Cleanup [NoAI]: Fix some typos, unify the comment style and update some documentation since a few enums have been renamed.
2009-02-19 09:01:34 +00:00
yexo
c0e7ddeb9e
(svn r15519) -Add [NoAI]: support for waypoints by adding AIRail::Build/Remove RailWaypoint, AIWaypoint and AIWaypointList.
2009-02-19 07:40:08 +00:00
rubidium
c2d9c85c0f
(svn r15518) -Fix [FS#2631]: use distance to closest station tile as estimate for YAPF too (NPF already does so). This makes it behave 'better' with wide stations.
2009-02-19 00:15:36 +00:00
frosch
336fda62be
(svn r15517) -Fix [FS#2642](r6455): Wagonoverrides and articulated engine parts use the colour scheme of the engine, but not its recolour callback, nor its 2CC flag. Same applies to roadvehicles.
2009-02-18 20:40:24 +00:00
frosch
3542b1dced
(svn r15516) -Fix (r10097): Livery overrides for articulated parts of roadvehicles were not applied.
2009-02-18 20:35:02 +00:00
translators
b832881a6e
(svn r15515) -Update: WebTranslator2 update to 2009-02-18 18:31:54
...
afrikaans - 10 fixed, 1 changed by Ludslad (11)
brazilian_portuguese - 6 fixed by ferrerow (6)
bulgarian - 11 fixed by Ar4i (11)
hungarian - 13 changed by alyr (13)
indonesian - 3 fixed by adjayanto (3)
japanese - 19 fixed by ickoonite (19)
latvian - 8 fixed by silentKnight (8)
lithuanian - 52 fixed by Enternald (52)
luxembourgish - 70 fixed by Gubius (70)
romanian - 23 changed by kkmic (23)
russian - 14 fixed by Smoky555 (14)
slovak - 1 fixed by James (1)
swedish - 48 fixed by giddorah (48)
welsh - 282 fixed, 2 changed by PlayDead (284)
2009-02-18 18:32:10 +00:00
rubidium
3e1664aff1
(svn r15514) -Fix: make the join/spectate command require to be connected to a network game; in SP it could lead to crashes.
2009-02-18 15:17:27 +00:00
peter1138
fd6a480004
(svn r15513) -Cleanup: Unavailable varaction variable value does not matter, but at least it can be consistent.
2009-02-18 09:14:41 +00:00
peter1138
fe5acb59f7
(svn r15512) -Cleanup: Codestyle fixes.
2009-02-18 09:10:02 +00:00
yexo
e5d6f3ef2e
(svn r15511) -Fix [FS#2641] (r15190): Generating a map with the original map generator with freeform edges on resulted in an assert.
2009-02-17 20:33:13 +00:00
translators
5d0e1f70de
(svn r15510) -Update: WebTranslator2 update to 2009-02-17 17:50:34
...
croatian - 22 fixed by tifached (22)
czech - 20 fixed by joeprusa (19), miris2009 (1)
english_US - 81 changed by WhiteRabbit (81)
hungarian - 1 changed by alyr (1)
korean - 3 fixed by darkttd (3)
latvian - 8 fixed by Reinis (5), waste (3)
luxembourgish - 50 fixed by Gubius (50)
norwegian_bokmal - 60 fixed by khh (60)
russian - 6 fixed by MajestiC (6)
slovak - 49 fixed by James (49)
swedish - 145 fixed by Andreas (9), giddorah (136)
turkish - 3 fixed by Emin (3)
welsh - 76 fixed by PlayDead (76)
2009-02-17 17:50:53 +00:00
smatz
e9378e17c8
(svn r15509) -Codechange: move definition of some Window methods to class definition
2009-02-17 12:41:29 +00:00
smatz
b8471e5401
(svn r15508) -Fix: three header files had incorrect 'anti-multiple-inclusion' header
2009-02-17 02:08:53 +00:00
smatz
42c0faf9e1
(svn r15507) -Update (r15506): rename strings in other languages too
2009-02-17 00:30:59 +00:00
smatz
42747e222c
(svn r15506) -Codechange: rename ScenarioEditorTownGenerationWindow to FoundTownWindow
2009-02-17 00:21:08 +00:00
smatz
0878541cf2
(svn r15505) -Codechange: pass name of new town as parameter to CMD_BUILD_TOWN
2009-02-16 23:23:33 +00:00
smatz
b9b14bd803
(svn r15500) -Fix (r12648): pre-0.5 OTTD stored new_nonstop and full_load_any in a different way, savegame conversion wasn't working for them
2009-02-16 21:43:44 +00:00
smatz
2f767e77e8
(svn r15499) -Fix (r15340): the default town layout was changed
2009-02-16 20:17:07 +00:00
translators
de07228f68
(svn r15498) -Update: WebTranslator2 update to 2009-02-16 18:45:15
...
catalan - 2 changed by arnaullv (2)
dutch - 3 fixed by Excel20 (3)
english_US - 7 fixed by WhiteRabbit (7)
german - 3 fixed by planetmaker (2), ralph (1)
hungarian - 1 changed by alyr (1)
lithuanian - 1 fixed by Enternald (1)
luxembourgish - 140 fixed by Gubius (140)
norwegian_nynorsk - 9 fixed, 5 changed by Thor (14)
portuguese - 4 fixed by SnowFlake (4)
romanian - 2 fixed, 5 changed by kkmic (7)
slovak - 53 fixed by James (53)
slovenian - 20 fixed by Necrolyte (20)
2009-02-16 18:45:30 +00:00
smatz
e1c43f4fac
(svn r15497) -Fix (r15027): when trains crashed, AIEvent was created only for one train
2009-02-16 17:16:58 +00:00
smatz
f65d70476b
(svn r15496) -Codechange: one division less in the train acceleration code
2009-02-16 01:57:55 +00:00
yexo
1f9ec758aa
(svn r15495) -Revert (r15383,r15422): Loading NewGRFs depends on correct settings, but the economy can only be started after loading NewGRFs. In short: r15383 causes more problems then it's worth.
2009-02-14 23:17:32 +00:00
yexo
a0b57c849e
(svn r15494) -Change [API CHANGE]: Split AIRoad::BuildRoadStation in BuildRoadStation and BuildDriveThroughRoadStation.
2009-02-14 22:06:11 +00:00
yexo
2b221f5afc
(svn r15492) -Change [API CHANGE]: Split AIVehicle::MoveWagon in MoveWagon and MoveWagonChain (frosch).
2009-02-14 21:22:42 +00:00
yexo
336abd66a2
(svn r15491) -Change [API CHANGE]: AIMarine::BuildWaterDepot now accepts a front tile instead of a bool is_vertical (frosch).
2009-02-14 21:19:33 +00:00
yexo
7d88077add
(svn r15490) -Change [API CHANGE]: Remove AIBridge::GetYearAvailable. AIBridge::IsValidBridge now only returns true for available bridges.
2009-02-14 21:17:35 +00:00