peter1138
c4707760cf
(svn r12009) -Fix [FS#1707]: Avoid loading sample.cat if it 'looks' incorrect, and avoid later null pointer dereferences by moving volume lookup deeper.
2008-01-29 13:27:31 +00:00
miham
bfc1e5d88a
(svn r12008) -Update: WebTranslator2 update to 2008-01-29 14:07:31
...
brazilian_portuguese - 5 fixed, 5 changed by fukumori (4), tucalipe (6)
bulgarian - 7 fixed by thetitan (7)
catalan - 1 fixed by arnaullv (1)
danish - 9 fixed by ThomasA (9)
dutch - 5 fixed by habell (5)
estonian - 7 fixed, 12 changed by kristjans (19)
french - 1 fixed by glx (1)
german - 6 fixed by moewe2 (6)
italian - 1 fixed by lorenzodv (1)
korean - 6 fixed, 11 changed by leejaeuk5 (17)
russian - 9 fixed by Smoky555 (9)
slovak - 7 fixed by lengyel (7)
slovenian - 7 fixed by Necrolyte (7)
swedish - 6 fixed by ChrillDeVille (6)
ukrainian - 7 fixed by mad (7)
2008-01-29 13:13:19 +00:00
glx
fadeb9ca2e
(svn r12007) -Fix (r12003): win32 compilation was broken again ;)
2008-01-29 00:45:24 +00:00
rubidium
3b20e4d09a
(svn r12006) -Fix: implement FS#1697 without the nasty side effects as specified in FS#1712.
2008-01-29 00:36:55 +00:00
rubidium
7c310600ba
(svn r12005) -Fix [FS#1717]: possible reading from an invalid pointer. Patch by PhilSophus.
2008-01-29 00:29:28 +00:00
rubidium
1b7051768c
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
2008-01-29 00:27:25 +00:00
rubidium
3f104194d6
(svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places.
2008-01-29 00:26:31 +00:00
peter1138
af2429f8e0
(svn r12002) -Cleanup (r11981): Remove obsolete code to skip sprites from indexed GRFs.
2008-01-28 17:51:45 +00:00
frosch
5d9326ff03
(svn r12001) -Fix: When skipping Action 11 or 12, also skip belonging sprites.
2008-01-28 15:55:59 +00:00
frosch
b7946e07a6
(svn r12000) -Fix (r11926): If no river NewGRF is loaded, use sloped water from locks.
2008-01-28 15:19:35 +00:00
frosch
02366bce29
(svn r11999) -Fix: Do entrance-slope-check for every tile of railstations.
2008-01-28 14:36:54 +00:00
smatz
db50a6d231
(svn r11998) -Fix [FS#1692](r10053): possible remote assert by setting bit 6 of p1 for CMD_REMOVE_ROAD
2008-01-28 12:40:31 +00:00
belugas
a1eb524b81
(svn r11997) -Fix(FS#1712, r11985): Remove the code temporary, until a better scheme is implemented.
2008-01-28 03:33:41 +00:00
smatz
f22b0127af
(svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero speed
2008-01-27 20:20:53 +00:00
maedhros
9aa240dbb6
(svn r11995) -Cleanup (r11994): Change the string names in all the other languages.
2008-01-27 17:34:08 +00:00
maedhros
f95fb570ad
(svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs.
2008-01-27 17:32:12 +00:00
peter1138
ec1d547889
(svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long.
2008-01-27 11:01:10 +00:00
bjarni
f93943ebcf
(svn r11992) -Fix (r9905): When building two rail stations close to each other (with control) so they looked like one long track trains would see them as one (spotted and fixed by eddi)
2008-01-27 02:09:46 +00:00
peter1138
f9f917f205
(svn r11991) -Cleanup: Remove strings removed in r11990
2008-01-26 22:41:24 +00:00
peter1138
befe9fb43f
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
...
cargo waiting list instead of just one. The station view window is now
resizable to cope with the extra information.
2008-01-26 22:15:39 +00:00
peter1138
191954d8a7
(svn r11989) -Fix: Resize autoreplace window to fit purchase information text if it is too large.
2008-01-26 21:02:35 +00:00
peter1138
c5b749f983
(svn r11988) -Codechange: Add a generic way of changing a widget's size and adjust the widgets around it to suit.
2008-01-26 20:55:04 +00:00
belugas
2ff76007b0
(svn r11987) -Feature[newGRF]: Allow the industry view window to be resized only when callback 3A (Show additional text in industry window) is available for the current industry.
...
This now allows grf authors to specify longer than 3 lines of text.
2008-01-26 03:11:27 +00:00
belugas
ad3c4a39f6
(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
2008-01-25 18:13:04 +00:00
frosch
9d63fd232e
(svn r11984) -Fix: Also draw corner shores under rail tracks.
2008-01-25 16:51:35 +00:00
frosch
d4dc5e0775
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
2008-01-25 15:47:58 +00:00
frosch
d13311e710
(svn r11982) -Revert (r8738): Now we have shores in corners. No need to remove them from TTDP games.
2008-01-25 13:54:27 +00:00
peter1138
e37b88ebfc
(svn r11981) -Fix [FS#1698]: Use unicode glyph mapping to fix up missing/shuffled sprites in original data files instead of shuffling or skipping
...
sprites directly. Some required glyphs were not loaded.
-Fix: Large capital U with grave (Ù) along with some other glyphs are broken in the original data files, so do no display them.
2008-01-25 13:48:39 +00:00
rubidium
f037d98ef4
(svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken in such a manner that it triggers an internal compiler error without any clue what of the code is wrong. Even trying to bisect the problem does not give a single line of code that causes the trouble.
2008-01-24 18:47:05 +00:00
skidd13
99325b0553
(svn r11978) -Codechange: Replace some global variables with window owned ones
2008-01-24 18:35:35 +00:00
belugas
7c50416d64
(svn r11977) -Fix(r11976): not a typo, not a bug. Just a removal that should have been done.
...
Would help to compile first...
2008-01-24 18:28:52 +00:00
belugas
e918b8d31b
(svn r11976) -Fix: It seems that industries using results 0D/0E on callback cb29/35 were a bit too eager to close down.
2008-01-24 18:16:04 +00:00
frosch
51f03faf83
(svn r11974) -Fix [FS#1684]: Shore and sea tiles under bridges were converted to canals in old savegames.
2008-01-24 14:57:43 +00:00
frosch
4a1ad2c85f
(svn r11973) -Fix (r11726, r11947)[FS#1683]: Use grass tiles for corner shores, if shores got replaced by ActionA.
2008-01-24 14:49:40 +00:00
smatz
773446df5e
(svn r11972) -Fix: old AI shouldn't build fast planes with a small airport in orders
2008-01-24 14:22:10 +00:00
peter1138
f8255e10d5
(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
2008-01-24 10:47:44 +00:00
peter1138
7ef297187e
(svn r11970) -Cleanup: Remove old comment
2008-01-24 10:41:12 +00:00
smatz
c22723c643
(svn r11969) -Codechange: documentation update, there are no 'track bits under bridge' anymore
2008-01-23 23:22:47 +00:00
smatz
74af65e556
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
2008-01-23 22:34:04 +00:00
smatz
dbd4d7d6a8
(svn r11967) -Fix (r1400): MP_ROAD can have railbits too - OPF searching over rail of diffent owner behind crossing
2008-01-23 20:02:30 +00:00
smatz
c19fd4fcde
(svn r11966) -Fix: OPF was searching through depots and normal road stops
...
In effect, it also fixes old AI bugs like FS#1403 and FS#1506
2008-01-23 19:31:11 +00:00
smatz
75784655b7
(svn r11965) -Codechange: simplified tunnel/bridge code in TPFMode1
2008-01-23 18:24:04 +00:00
peter1138
18df5480ba
(svn r11964) -Fix [FS#1685]: Tropic zone data was returned incorrectly.
2008-01-23 17:45:48 +00:00
belugas
ba1f3b4834
(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
2008-01-23 17:40:37 +00:00
smatz
881b74e882
(svn r11962) -Cleanup: OPF is no longer used to update signals
2008-01-23 17:30:28 +00:00
belugas
fa39916fe9
(svn r11961) -Feature[newGRF]: Add support for Action 0D, var 13: informations about current map size.
2008-01-23 17:08:35 +00:00
smatz
8be486c27e
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
2008-01-23 14:51:36 +00:00
peter1138
622f251197
(svn r11959) -Codechange: Use macro to loop for specific engine types instead of using specific indexes each time.
...
-Codechange: Minor scope changes in said loops.
2008-01-23 13:20:51 +00:00
smatz
51d7692aca
(svn r11958) -Fix (r11204): NewAI couldn't build any road vehicles when there were any tram grfs loaded
2008-01-23 13:06:00 +00:00
peter1138
f8b5b6667f
(svn r11957) -Codechange [FS#1678]: Minor simplification and optimisation when checking for available road/rail types (bilbo)
2008-01-23 09:43:53 +00:00
peter1138
a2d416b253
(svn r11956) -Fix [FS#1675]: Disallow building locks and docks on rapids.
2008-01-23 08:47:49 +00:00
peter1138
ae7689620c
(svn r11955) -Fix (r11926): Prevent bridge and tunnel ends being placed on rivers.
2008-01-23 08:28:19 +00:00
smatz
d89c5e945f
(svn r11953) -Fix (r11172): do not allow modifying roadbits when other roadtypes would need different foundation
2008-01-23 00:36:48 +00:00
peter1138
b5534e42a0
(svn r11952) -Fix (r11926): Prevent industries from being built on rivers, unless they require water.
2008-01-22 22:17:28 +00:00
smatz
171e84cbad
(svn r11951) -Fix (r11279): loading of very old savegames was broken
2008-01-22 21:01:35 +00:00
peter1138
d213987a13
(svn r11949) -Codechange: add river icon and cursor, drawn by skidd13.
2008-01-22 20:04:30 +00:00
frosch
a242dadad2
(svn r11947) -Feature: Make use of new sprites added by Action5 type 0D.
...
Tiles which only consist of shore do not flood anymore, instead they get removed if they are no longer connected to flooding water.
2008-01-22 17:48:08 +00:00
frosch
8a72af3a13
(svn r11946) -Fix: slope detection of bridge ramps.
...
YAPF failed for steep slopes.
Trolly failed for a lot.
2008-01-22 16:08:17 +00:00
glx
1d219ad7b6
(svn r11945) -Fix: FileExists() failed for non latin paths (win32)
2008-01-22 15:47:40 +00:00
smatz
22973fc2ce
(svn r11944) -Fix: allow building drive-through road/tram stops at road/tram track that has no owner
2008-01-22 15:40:29 +00:00
rubidium
38d690acc8
(svn r11943) -Codechange: add and use a simple structure to support small stacks by allocating it on the heap or pushing a few kB of data onto the stack when there is a large stack.
2008-01-22 12:09:12 +00:00
peter1138
5e4f4bcdc5
(svn r11942) -Codechange: Merge chars.grf into openttd[d|w].grf using action 12. Remove obsolete tables used for index mapping.
2008-01-22 08:47:30 +00:00
peter1138
78156065cf
(svn r11940) -Codechange: Store short filename once per open file instead of once per sprite cache entry. Not all file types need this, but most of the time no sprite cache entry needed it either.
2008-01-22 07:27:06 +00:00
rubidium
a83b91dbc5
(svn r11939) -Codechange: some type fixes and very initial steps into supporting NDS by default. Based on work by Dominik.
2008-01-21 23:55:57 +00:00
peter1138
9d754a7f76
(svn r11938) -Codechange: support loading of canal/river properties (though still ignored)
2008-01-21 20:41:04 +00:00
frosch
2e63435124
(svn r11937) -Feature: Allow building bridge heads on more slopes.
...
These are SLOPE_NW, SLOPE_SW, SLOPE_SE, SLOPE_NE (with bridge perpendicular to the slope) and SLOPE_NS, SLOPE_EW.
2008-01-21 15:48:00 +00:00
frosch
05ab49eb23
(svn r11936) -Fix: 'BRIDGE_TOO_LOW_FOR_TERRAIN'-check was wrong for steep slopes.
2008-01-21 15:20:58 +00:00
bjarni
6786802863
(svn r11935) -Fix (r11875)[FS#1672]: autosend aircraft to hangar for replacement check inverted the check for autorenew
...
Now it triggers when renew setting is on and only if it's on
Note: aircraft already enroute to hangars due to this bug will still go there. They will only head there once though
2008-01-21 10:31:27 +00:00
peter1138
b967c9918e
(svn r11934) -Codechange: add persistent random data for river and canal tiles.
2008-01-20 18:30:53 +00:00
miham
80931cdd13
(svn r11933) -Update: WebTranslator2 update to 2008-01-20 18:42:56
...
brazilian_portuguese - 2 fixed by fukumori (2)
catalan - 6 fixed by arnaullv (6)
croatian - 4 changed by blozo (4)
czech - 6 fixed by Hadez (6)
dutch - 2 fixed by habell (2)
french - 6 fixed by glx (6)
hungarian - 15 fixed by miham (15)
italian - 6 fixed by lorenzodv (6)
portuguese - 5 fixed, 2 changed by nars (7)
russian - 1 changed by HMage (1)
spanish - 3 fixed by eusebio (3)
2008-01-20 17:43:38 +00:00
belugas
daf1e4b4c4
(svn r11932) -Codechange: Forgot two occurences of widget enumification
2008-01-20 04:01:28 +00:00
belugas
1047888547
(svn r11931) -Codechange: enumify the widgets numbers. Give breathing room on the case switches too...
2008-01-20 03:56:15 +00:00
belugas
f8fc0ca086
(svn r11930) -Codechange: a bit of code style application
2008-01-20 03:11:14 +00:00
bjarni
9fdf784b7c
(svn r11929) -Fix (r9981)[FS#1624]: [autoreplace] fixed a case where a single headed locomotive caused an assert when being replaced to a dualheaded one
...
This triggered if the player had enough money to replace and refit one of them but not enough to refit the last one as well
2008-01-19 23:34:52 +00:00
bjarni
52e5f50158
(svn r11928) -Fix (r6393): [autoreplace] autoreplace could refit train engines to the wrong cargo type if the old engine had no cargo capacity and the new one had
...
Now autoreplace will always look at the wagons to figure out what to replace to (as originally intended)
2008-01-19 22:47:07 +00:00
peter1138
bb66cf27cc
(svn r11927) -Fix (r11926): unable to place canals in game
2008-01-19 18:24:20 +00:00
peter1138
0c6bdb0d21
(svn r11926) -Feature: Rivers. Graphics must be provided by NewGRF else rivers are drawn as canals. Rivers can currently only be placed with-in the scenario editor.
2008-01-19 17:00:54 +00:00
rubidium
8b90809718
(svn r11925) -Fix (r122, r9867): loading old, pre savegame version 2, savegames.
2008-01-19 14:00:04 +00:00
peter1138
cc05abf382
(svn r11924) -Codechange: All dropdowns now use the dropdown widget, so compatibility code can be removed
2008-01-19 11:08:06 +00:00
glx
8e15c0fba8
(svn r11923) -Cleanup: Remove strings removed from english.txt in r11919
2008-01-18 22:55:02 +00:00
smatz
f05caedf7c
(svn r11922) -Codechange: use MaybeBarCrossingWithSound() to bar crossing with sound
2008-01-18 21:44:20 +00:00
peter1138
f6684c9afd
(svn r11921) -Cleanup: correct indenting and switch case line spacing.
2008-01-18 21:33:19 +00:00
glx
b3e35db958
(svn r11920) -Fix (r11844): train count was incorrect in network lobby window (and 'players' command)
2008-01-18 21:25:18 +00:00
peter1138
9c482d5e54
(svn r11919) -Codechange: Assign numbered parameters to world generator widgets to avoid separate DrawString()s, and do the same for the scenario flat-land window.
2008-01-18 21:08:40 +00:00
peter1138
aa556f123d
(svn r11918) -Codechange: Draw engine lists at widget positions instead of fixed pixel positions
2008-01-18 18:18:39 +00:00
smatz
66a0fafc93
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
2008-01-18 14:48:57 +00:00
smatz
dfb91c26ec
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
...
-Fix: refit button widget was not correctly updated
2008-01-18 13:02:47 +00:00
peter1138
04da1e1d45
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
2008-01-18 10:36:55 +00:00
glx
bba1a62db1
(svn r11914) -Documentation: fix some @file statement
2008-01-18 03:48:29 +00:00
smatz
91cb42fa73
(svn r11913) -Fix (r11871): update signals after company bankrupt and disaster too
2008-01-18 02:16:39 +00:00
peter1138
1182a940cf
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
2008-01-17 21:57:20 +00:00
peter1138
898298847f
(svn r11911) -Codechange: use enum for autoreplace window widgets
2008-01-17 21:44:52 +00:00
smatz
8dbf03e322
(svn r11910) -Fix: play 'ding-ding' crossing sound in more cases (except gameload and crossing construction)
...
-Fix: crossing sound is bound to tile, not to vehicle
2008-01-17 20:41:33 +00:00
peter1138
8794c5bc3c
(svn r11909) -Codechange: use dropdown widget for player livery, network lobby/setup and news settings windows
2008-01-17 20:00:13 +00:00
smatz
b20d1eee6c
(svn r11908) -Fix: update crossing when merging a company, when building a crossing and after loading older savegame
2008-01-17 19:49:06 +00:00
peter1138
e0f759f71e
(svn r11907) -Codechange: clean up of worldgen/heightmap ui: replace many separate DrawString() calls with widgets, use dropdown widgets, and use consistent positioning/sizing.
2008-01-17 19:41:05 +00:00
miham
2f9413a799
(svn r11906) -Fix: fixed a typo in german language (reported by Botcher0)
2008-01-17 19:35:37 +00:00
peter1138
a50192361f
(svn r11905) -Codechange: add widget enums for player finances and player livery windows
2008-01-17 19:12:53 +00:00
peter1138
727d07c67e
(svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
2008-01-17 18:49:39 +00:00
smatz
e01a7e2e91
(svn r11903) -Fix: try to fix MorphOS compilation
2008-01-17 18:21:31 +00:00
peter1138
3f11c27958
(svn r11902) -Codechange: use new dropdown widget for game options window
2008-01-17 18:10:27 +00:00
peter1138
9fdb9a82a2
(svn r11901) -Add: add two widgets for dropdowns, one raised and one inset, to eventually replace use of two widgets for each dropdown control.
2008-01-17 18:09:15 +00:00
smatz
2c38d3066f
(svn r11900) -Fix: set correctly crossing state after train reversal, train leaving crossing, train crash
...
Fixes several ways to leave crossing red forever or to leave it unbarred when there is a train on crossing
2008-01-17 17:57:39 +00:00
frosch
3ae0c5316c
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
2008-01-17 17:35:59 +00:00
frosch
c7fe664119
(svn r11898) -Fix: Update neighboured canals + signals when flooding non-flat tiles, too.
2008-01-17 17:13:47 +00:00
frosch
03e7f6f2d2
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
2008-01-17 16:55:13 +00:00
glx
82727a8713
(svn r11896) -Fix (r11886): a missing const broke compilation with MSVC
2008-01-17 16:46:41 +00:00
glx
80d62cb358
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
2008-01-17 16:41:02 +00:00
peter1138
8bc5115a1a
(svn r11894) -Cleanup: Remove strings removed from english.txt in r11893
2008-01-17 14:06:49 +00:00
peter1138
5d8f7dbe60
(svn r11893) -Codechange: build map size drop downs dynamically and remove unneeded strings
2008-01-17 14:00:17 +00:00
peter1138
41df004043
(svn r11892) -Fix (r11879): View switched from ungrouped to all vehicles as ungrouped is not technically a valid group, and ensure dropdown is removed
...
on any click in the window.
2008-01-17 13:37:28 +00:00
rubidium
a325bef3f5
(svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo.
2008-01-17 02:10:55 +00:00
glx
4e847a9c52
(svn r11888) -Codechange: simplify sorting of the strings in town names dropdown
2008-01-17 02:10:26 +00:00
rubidium
c141639bcc
(svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI.
2008-01-17 02:09:34 +00:00
glx
2ad9edda91
(svn r11886) -Add: sort the strings in languages dropdown
2008-01-17 00:21:43 +00:00
peter1138
20c2de3ace
(svn r11885) -Cleanup: Remove gotos from widget drawing code. A side affect is that it is now possible for any widget type to be shown disabled.
2008-01-17 00:06:36 +00:00
peter1138
b4ed1609bf
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
2008-01-16 23:46:46 +00:00
smatz
7eff702c0a
(svn r11883) -Fix (r11864): assert when trying to remove rail from a house or industry tile
2008-01-16 22:26:45 +00:00
smatz
fc2895e8c2
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
2008-01-16 21:17:31 +00:00
peter1138
df7286e7c1
(svn r11881) -Cleanup: Code style for global variables.
2008-01-16 18:34:53 +00:00
peter1138
e2724bed6c
(svn r11880) -Codechange: Generate vehicle group action dropdown dynamically, and assign an enum for the function return codes.
2008-01-16 18:25:23 +00:00
peter1138
389f8e0d8f
(svn r11879) -Fix: Only update group action drop down list when clicking on the dropdown text/button. Other times is not needed and caused a double free.
2008-01-16 17:43:46 +00:00
peter1138
c2ae2334ec
(svn r11878) -Fix: Crash in MP in vehicle group window if the currently selected group is deleted by another player.
2008-01-16 16:52:50 +00:00
smatz
3ad8b79550
(svn r11877) -Fix: another way to crash competitors' train in a station
...
-Codechange: increase the speed train is approaching line end/semaphore in non-diagonal direction a bit
2008-01-16 15:48:36 +00:00
frosch
9a9a1dcb6c
(svn r11876) -Fix: Start industry tile animation also for overridden industry tiles. (Will only apply to new games or newly build industries.)
2008-01-16 15:06:48 +00:00
bjarni
a09b0e21e4
(svn r11875) -Fix: automatically sending aircraft to depot for autoreplace/renew is now triggered by the correct conditions
...
Now it triggers by the following conditions:
- aircraft is old enough for renew or needs to be autoreplaced
- player has 2*cost of new aircraft+autorenew money (we don't want to send many aircraft to hangars when there is only money for replacing one)
- aircraft has no hangars in it's order list
- new aircraft is buildable (imagine autorenewing a retired design)
This triggers right after a helicopter takes off or when a plane touches the ground while landing
Another effect of this change is that this functionality no longer generates network traffic
2008-01-16 13:59:08 +00:00
rubidium
049e615cfb
(svn r11874) -Fix [FS#1655]: all wagons of maglev/monorail trains would get the livery colour of the engine instead of their wagon type.
2008-01-16 11:25:15 +00:00
belugas
88206b8808
(svn r11873) -Codechange: less a few magical numbers and a tiny bit more comments on town zones
2008-01-16 02:53:55 +00:00
bjarni
48c2669185
(svn r11872) -Fix (r9874): EngineHasReplacementForPlayer() didn't look in ALL_GROUP
2008-01-16 01:27:24 +00:00
smatz
61e40b1aa5
(svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station
2008-01-16 01:18:15 +00:00
smatz
70a9c544b8
(svn r11870) -Fix: slow down train when approaching tile we can't enter in more cases
...
(tunnel/bridge/depot from wrong direction, competitor's track, wrong railtype)
-Fix: do not make crossing red when we can't enter it in any case
2008-01-16 00:33:28 +00:00
rubidium
a3a5ff6057
(svn r11867) -Fix: do not reset changes to persistent storages during world generation.
...
-Fix: store changes to persistent storages after performing all the game logic instead of resetting them.
2008-01-15 18:51:46 +00:00
rubidium
736640fd87
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
2008-01-15 18:44:22 +00:00
peter1138
e938855375
(svn r11865) -Feature(tte): Support scrolling of drop down lists when in drag mode by moving the pointer above or below the list.
2008-01-15 16:30:08 +00:00
smatz
81cad58c68
(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later
2008-01-15 15:00:01 +00:00
peter1138
c954ce1b33
(svn r11863) -Fix (r11848): One day I'll learn C++... Delete all items in a drop down list before deleting the list.
2008-01-15 13:20:58 +00:00
rubidium
fcee6dad93
(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too.
2008-01-15 13:19:49 +00:00
smatz
e0c61a8921
(svn r11861) -Fix: do not call rail specific functions when removing road tunnel/bridge
2008-01-15 11:45:29 +00:00
peter1138
ef704510cd
(svn r11860) -Fix: Test station class validity against number of classes, not abosolute limit.
2008-01-15 11:43:06 +00:00
peter1138
b4d476b7d1
(svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list.
2008-01-15 10:36:51 +00:00
peter1138
327ea90331
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
2008-01-15 08:14:22 +00:00
rubidium
c7f9705e4a
(svn r11857) -Fix: some compile time warnings.
2008-01-15 00:48:14 +00:00
glx
d4e8ffd7b3
(svn r11856) -Revert (r11772): since FS#1335 is solved, we do not need the extra checking and such anymore.
2008-01-15 00:11:28 +00:00
glx
8344327a91
(svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs
2008-01-15 00:03:48 +00:00
peter1138
6fa0463d79
(svn r11854) -Fix (r11848): Nightly build farm showed up more compiler warnings... c++ is fun
2008-01-14 20:52:43 +00:00
miham
ccd557fa54
(svn r11852) -Update: WebTranslator2 update to 2008-01-14 21:05:38
...
brazilian_portuguese - 36 changed by fukumori (36)
korean - 1 fixed by leejaeuk5 (1)
piglatin - 20 fixed by adammw (20)
portuguese - 1 fixed by nars (1)
2008-01-14 20:06:18 +00:00
belugas
e91e9d9b4e
(svn r11851) -Codechange: A few magic numbers removal, plus a little code style
2008-01-14 18:19:29 +00:00
peter1138
85e49e6290
(svn r11849) -Fix (r11848): Incomplete(?) class broke MSVC/mingw compilation
2008-01-14 16:35:49 +00:00
peter1138
1fa2285327
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
2008-01-14 16:10:58 +00:00
smatz
c6de18c3db
(svn r11847) -Fix: do not affect the speed a train is entering a depot by trackbits behind it
2008-01-14 14:46:09 +00:00
peter1138
7475bf20ec
(svn r11846) -Fix [FS#1651]: implicit conversion from unsigned to signed int caused compilation failure with MSVC.
2008-01-14 11:18:43 +00:00
smatz
a9f69f387d
(svn r11845) -Codechange: simplify train collision detection a bit
2008-01-13 23:53:33 +00:00
glx
88e16866bc
(svn r11844) -Fix: road vehicle count was incorrect in network lobby window
2008-01-13 22:27:06 +00:00
smatz
b3bf60000e
(svn r11843) -Fix: mark dirty canal tile even in diagonal direction from flooded tile
2008-01-13 22:12:39 +00:00
rubidium
f57ab9f99f
(svn r11842) -Fix: libtimidity.cpp did not compile anymore.
2008-01-13 22:10:54 +00:00
glx
b1951ac447
(svn r11841) -Fix: win32 compilation
2008-01-13 22:07:33 +00:00
rubidium
9ac26e1bf1
(svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server.
2008-01-13 21:51:53 +00:00
rubidium
df12937f19
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
smatz
5d379d6696
(svn r11838) -Fix (r11320): draw correctly canal next to half flooded rail tile
2008-01-13 17:55:00 +00:00
bjarni
adf1e34ead
(svn r11837) -Feature: [OSX] added "/Library/Application Support/OpenTTD" to the search paths (based on patch by pv2b)
...
It is possible to set this to something else setting shared-dir with config
This works on other OSes as well but it's off by default (and not really tested)
2008-01-13 17:45:29 +00:00
bjarni
6c4ebd91ea
(svn r11836) -Fix [r11834]: [OSX] fixed compilation
2008-01-13 17:37:17 +00:00
smatz
b3e28dc5ad
(svn r11835) -Fix: mark depot, viewports, vehicle lists and vehicle details dirty when a train crashes
2008-01-13 14:42:28 +00:00
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
2008-01-13 14:37:30 +00:00
rubidium
fafab82a31
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
2008-01-13 13:36:01 +00:00
smatz
86a6268f3e
(svn r11831) -Fix: call TrainConsistChanged() when removing crashed train part to be consistent with saveload process
2008-01-13 13:11:59 +00:00
rubidium
975f1b4825
(svn r11830) -Fix [FS#1625]: road vehicles would not wait in line, but at a single point on bridges. Based on a patch by SmatZ.
2008-01-13 12:08:35 +00:00
rubidium
0ca79e2fb8
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
2008-01-13 01:39:22 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
72c9b35b11
(svn r11827) -Codechange: do not include enum_type.hpp unnecessary.
2008-01-13 00:28:01 +00:00
glx
818979ebe3
(svn r11826) -Fix (r10444): at least one instance of dmusic driver is needed for it to be registered and usable
2008-01-13 00:14:29 +00:00
rubidium
bfa6087e0f
(svn r11825) -Fix (FS#1627): an articulated road vehicle could split up when it turned around at a corner and then would enter a drive through station at the next tile.
2008-01-12 22:10:00 +00:00
peter1138
3fb100c670
(svn r11824) -Fix (r11822): Converting signs from TTD games incomplete
2008-01-12 21:25:04 +00:00
peter1138
4bbe6358d9
(svn r11823) -Fix (r11822): Custom names from old TTD games were not updated.
2008-01-12 21:01:27 +00:00
peter1138
0f7392bd61
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
...
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
2008-01-12 19:58:06 +00:00
smatz
74f9be8f2c
(svn r11821) -Fix (r11802): 'optimization assert' when removing crashed wagon in some cases
2008-01-12 19:33:25 +00:00
smatz
9c9b743242
(svn r11820) -Fix: invalidate depot window when removing crashed train
2008-01-12 19:24:58 +00:00
smatz
b18b7f6f22
(svn r11819) -Fix: do not access the Vehicle struct that has been already deleted when removing crashed train
2008-01-12 19:20:44 +00:00
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
peter1138
63cc41cd1c
(svn r11817) -Codechange: Base vehicle group validity on owner, not name.
2008-01-12 13:36:22 +00:00
rubidium
07e0e0a1ff
(svn r11816) -Fix: forgot clearing one byte, causing the passwords to differ slightly on different platforms.
2008-01-12 08:34:16 +00:00
smatz
81b3635c80
(svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable
2008-01-11 22:29:47 +00:00
orudge
c4ad3c648b
(svn r11814) -Fix: Get OpenTTD compiling again on OS/2
2008-01-11 18:53:52 +00:00
frosch
7d3ecec5b9
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
2008-01-11 17:12:41 +00:00
smatz
fa1f94e599
(svn r11812) -Codechange: introduce TrainExitDir() to simplify some functions
2008-01-11 15:10:59 +00:00
rubidium
97d6e0e6c0
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
2008-01-11 00:30:32 +00:00
smatz
2ba5bf8947
(svn r11810) -Fix (r11802): reset sets when leaving prematurely
2008-01-10 22:46:04 +00:00
smatz
aa11580621
(svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot
2008-01-10 21:54:45 +00:00
frosch
49f741aaa3
(svn r11807) -Codechange: Make Action5 handler more upwards- and TTDP-compatible by allowing specifiing more sprites than needed.
2008-01-10 18:02:15 +00:00
glx
fe35fa15e4
(svn r11806) -Fix (r11793) [FS#1638]: sign inversion when updating income and expenses
2008-01-10 15:51:34 +00:00
frosch
9629b26677
(svn r11805) -Fix [FS#1620]: VEHICLE_TRIGGER_EMPTY was triggered continuously while train waiting in station.
2008-01-10 13:13:18 +00:00
belugas
88f11bbfeb
(svn r11804) -Fix(r11797,FS#1636): Industry tiles should receive the same medecine as indstries themselves regarding the resolver's object
2008-01-10 00:53:17 +00:00
peter1138
0645689a87
(svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour
2008-01-09 23:17:40 +00:00
smatz
bc4ed3eafd
(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track
...
-Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements
2008-01-09 23:00:59 +00:00
rubidium
c004cc1fd9
(svn r11801) -Codechange: remove some unneeded includes from some header files.
2008-01-09 21:27:39 +00:00
rubidium
2d2e1e3863
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
2008-01-09 21:05:03 +00:00
peter1138
a5101fb403
(svn r11799) -Codechange: no need to special-case helicopter rotor 'overrides'
2008-01-09 20:23:12 +00:00
belugas
1bfe4e0e02
(svn r11798) -Codechange: add comments and give a more representative function's name
2008-01-09 18:35:18 +00:00
belugas
4bbe046499
(svn r11797) -Fix: Add protection against not already created industry while doing industry callback.
...
Some variables used were linked to invalid industry.
2008-01-09 18:14:29 +00:00
glx
8ee8d1b964
(svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed.
2008-01-09 17:47:05 +00:00
glx
55d8f7ed72
(svn r11794) -Fix [FS#1632]: reversing a train when loading at a station with an adjacent station in the same axis crashed.
2008-01-09 17:09:53 +00:00
rubidium
0365c1f33b
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
2008-01-09 16:55:48 +00:00
rubidium
98b4fa7c07
(svn r11792) -Codechange: move some (virtually) globally included AI related structs to a place where they are only included a few times.
2008-01-09 16:40:02 +00:00
peter1138
323f6e461a
(svn r11791) -Cleanup: move railtype data into table/, like other data files.
2008-01-09 16:02:13 +00:00
rubidium
c42711e360
(svn r11790) -Update: apparantly it's 2008 already ;). Patch by Anne Stellingwerf (FS#1613).
2008-01-09 11:46:40 +00:00
peter1138
0ae26a0312
(svn r11789) -Codechange: coding style for global variable names
2008-01-09 10:15:20 +00:00
rubidium
285a4a106f
(svn r11788) -Fix (11787): makedepend doesn't mark delete files as changed...
2008-01-09 09:57:48 +00:00
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
2008-01-09 09:45:45 +00:00
peter1138
342ad858e5
(svn r11786) -Codechange: shuffle more includes
2008-01-09 08:12:10 +00:00
rubidium
c08bff8931
(svn r11785) -Codechange: remove some unneeded includes.
2008-01-09 00:59:02 +00:00
peter1138
1cabc8eb63
(svn r11784) -Codechange: set up initial engine data in one place
2008-01-08 18:25:51 +00:00
peter1138
7a5c529db4
(svn r11783) -Codechange: compare engine type with its type property, not by its index
2008-01-08 18:16:26 +00:00
peter1138
d2fb6614c6
(svn r11782) -Codechange: e->type was used before being properly initialized (it relied on previous runs) but there is no need to invalidate window data during game load as the windows in question cannot be open.
2008-01-08 16:07:32 +00:00
peter1138
8c7bd8fef4
(svn r11781) -Codechange: variable scope and initialization
2008-01-07 22:38:30 +00:00
peter1138
ba4ab96bcc
(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
2008-01-07 16:41:03 +00:00
glx
9e875495bf
(svn r11779) -Fix: win32 compile failed. Also removed a duplicate include
2008-01-07 15:35:36 +00:00
rubidium
0d41fe2874
(svn r11778) -Fix: compiles with ICONV failed.
2008-01-07 15:17:23 +00:00
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
2008-01-07 14:23:25 +00:00
rubidium
71d4004a85
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
2008-01-07 14:02:26 +00:00
rubidium
e2f7ec1d3e
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
2008-01-07 09:19:53 +00:00
rubidium
444e77d8bc
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
2008-01-07 00:57:19 +00:00
rubidium
779ce7fda9
(svn r11773) -Codechange: move some non-clear-land functions from clear_cmd.cpp to a more correct location.
2008-01-07 00:45:05 +00:00
glx
cfcce9603c
(svn r11772) -Change: add some extra checking in the hope to find the cause of FS#1335
2008-01-07 00:43:03 +00:00
rubidium
2469bca24c
(svn r11771) -Codechange: split settings.h into better separated headers.
2008-01-07 00:19:09 +00:00
peter1138
588f1d2aca
(svn r11770) -Codechange: An engine type's type is EngineID, not byte.
2008-01-06 20:54:55 +00:00
miham
96ef3a7e14
(svn r11769) -Update: WebTranslator2 update to 2008-01-06 19:58:01
...
brazilian_portuguese - 2 fixed, 15 changed by fukumori (17)
bulgarian - 29 fixed, 10 changed by groupsky (39)
croatian - 13 fixed by knovak (13)
czech - 2 fixed by Hadez (2)
dutch - 1 fixed by habell (1)
estonian - 1 fixed by kristjans (1)
french - 1 fixed, 1 changed by glx (2)
galician - 38 fixed by Condex (38)
italian - 1 fixed by lorenzodv (1)
japanese - 1 fixed by ickoonite (1)
norwegian_bokmal - 1 fixed by brygge_2 (1)
romanian - 1 fixed by kneekoo (1)
slovak - 1 fixed by lengyel (1)
swedish - 2 fixed by daishan (2)
ukrainian - 2 fixed by mad (2)
2008-01-06 18:58:55 +00:00
rubidium
84606b5212
(svn r11768) -Codechange: move some terraform related gui stuff from main_gui.cpp to terraform_gui.cpp (and introduce terraform_gui.h). Based on a patch by Roujin.
2008-01-06 18:56:43 +00:00
smatz
9728072310
(svn r11767) -Fix: do not call rail specific functions when building road bridge
...
-Fix: missing space in terraform_gui.cpp
2008-01-06 11:39:40 +00:00
belugas
578390ada7
(svn r11766) -Codechange: Last fine tunings on smooth economy, by Sirkoz.
2008-01-06 01:06:12 +00:00
rubidium
409f07199c
(svn r11765) -Fix: compile warning (Roujin).
2008-01-05 22:34:04 +00:00
rubidium
902b810787
(svn r11764) -Change: make the 'do characters exist in the current font file(s)' more robust.
2008-01-05 22:19:27 +00:00
smatz
4023920f22
(svn r11763) -Fix: update signal states after merging a company
2008-01-05 22:04:11 +00:00
glx
7a890182c0
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
2008-01-05 21:42:34 +00:00
peter1138
0c4e3b83e4
(svn r11761) -Codechange: Use appropriate variable types for NewGRF engine overrides, and adjust scope while there.
2008-01-05 15:39:22 +00:00
smatz
f02cf9281b
(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
...
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
2008-01-04 19:45:29 +00:00
peter1138
aefb86d7fe
(svn r11759) -Feature: Add drag-n-drop support to the raise/lower land tools. Land is raised/lowered at the start and the rest of the area levelled to match. Patch by Roujin.
2008-01-04 18:18:46 +00:00
peter1138
89fa5dc142
(svn r11758) -Fix(ette): Populate 'void' cargo slots (unused slots in temperate and arctic) with default data as per pre-newcargo support. These slots are still disabled by default, but some NewGRFs (erroneously?) expect the default data.
2008-01-04 17:25:53 +00:00
belugas
a021159e4e
(svn r11757) -Fix(r11727): Don't use a function's default parameter when the value can be (more adequately, even better) computed from another source.
...
Thanks peter1138.
2008-01-04 15:39:08 +00:00
peter1138
cb0e80fcb3
(svn r11756) -Fix: Out of bounds access caused if a vehicle's cargo amount was higher than its capacity when resolving sprite groups.
2008-01-04 13:40:23 +00:00
peter1138
7f4a03d073
(svn r11755) -Fix: Debug level string buffer was not long enough to contain all debug levels.
2008-01-04 10:09:57 +00:00
belugas
bd9741e086
(svn r11754) -Fix(r11753): One too much command separator (;). Thanks glx for spotting
2008-01-04 03:31:08 +00:00
belugas
bed549f4be
(svn r11753) -Codechange: re-indent the switch case structures, as to be more code style oriented.
...
Hoping it makes the whole file easier to follow/read
2008-01-04 03:11:36 +00:00
belugas
975300be97
(svn r11752) -Fix(r11745): Silence a MSVC warning (glx)
2008-01-04 03:04:19 +00:00
belugas
1347ffa8cf
(svn r11751) -Codechange: Enumify some widgets (and others) and while at it, apply some code style
2008-01-04 02:32:58 +00:00
glx
bf57e3d868
(svn r11750) -Revert (r11749): commited too much
2008-01-03 23:54:23 +00:00
glx
e9a35fd75d
(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color
2008-01-03 23:50:58 +00:00
belugas
87a68bd80f
(svn r11748) -Codechange: Remove magic numbers introduced on r11746 and r11727
...
-Codechange: A few bad coding style inadvertendly applied too
2008-01-03 14:33:10 +00:00
belugas
f8925b6faa
(svn r11747) -Change: Return of the prodigal son (or something). Little update (but highly noticed) on the OpenTTD Team
2008-01-03 14:04:08 +00:00
belugas
a7ac4f656c
(svn r11746) -Fix(r11727): Make sure that action 0A does follow the same new ordering of shore sprites. It was not considered in the missing shore patch
2008-01-03 02:39:06 +00:00
skidd13
7b6bfa5fc4
(svn r11745) -Codechange: Unify the spinner widget drawing of the difficulty settings window and make its disabled state min max aware.
2008-01-02 23:59:11 +00:00
glx
3265ed1b70
(svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime 3.14 or superior, as it now have snprintf() and vsnprintf conform to C99
2008-01-02 18:42:51 +00:00