smatz
8606e70819
(svn r12074) -Cleanup: use C++ variable scope and declaration in DrawTile_Trees()
2008-02-06 23:08:04 +00:00
smatz
c0c9b80db3
(svn r12073) -Codechange: stop drawing trees a bit earlier when they are invisible
2008-02-06 22:59:31 +00:00
frosch
918591c05b
(svn r12072) -Fix: Make docks at sea flood neighboured tiles.
2008-02-06 16:19:28 +00:00
frosch
7860d8d18a
(svn r12071) -Feature(ette): Draw river- and canal-edges under docks and shipdepots.
2008-02-06 16:12:23 +00:00
frosch
e95e887772
(svn r12070) -Cleanup(r12042): Water-owner of shipdepots is no longer needed. Removed.
2008-02-06 15:32:06 +00:00
belugas
94f4217984
(svn r12069) -Feature[newGRF]: Specify the purchase, rail and road description of a bridge.
2008-02-06 03:01:29 +00:00
belugas
5049ff8e8e
(svn r12068) -Fix(r12067): forgot a return
2008-02-06 02:43:42 +00:00
peter1138
f29c748d4c
(svn r12067) -Cleanup: Codestyle on loading object references
2008-02-05 23:22:34 +00:00
belugas
62b3520e51
(svn r12066) -Codechange: Rename GetBridge for the more common GetBridgeSpec
...
-Codechange: Remove direct access to the _bridge table in favor of the above mentioned GetBridgeSpec
-Codechange: Rationalize the use of Bridge type pointer
2008-02-05 05:21:02 +00:00
belugas
80daad8d4d
(svn r12065) -Codechange : removed a now useless declaration ( orig_bridge )
2008-02-05 05:03:50 +00:00
belugas
3003986e67
(svn r12064) -Codechange : Give grf bridges their own ResetBridges function, and put bridge spec in table/bridge_land.h, where it should be.
2008-02-05 04:48:56 +00:00
smatz
c261218cf5
(svn r12063) -Cleanup: use C++ indenting and variable scope/declaration in BuildTownHouse()
2008-02-05 00:30:58 +00:00
smatz
146779b158
(svn r12062) -Fix: possible deadlock when there are no houses available to build at given tile
...
-Fix: houses with zero probability could be built
2008-02-04 23:24:22 +00:00
smatz
23c669fe50
(svn r12061) -Cleanup: since r12060, DC_FORCETEST is not used anymore
2008-02-04 22:44:05 +00:00
smatz
dbfdc5df94
(svn r12060) -Fix: do not clear tiles when the town won't be able to build any buildings anyway
...
-Fix: allow building 2x2 building on slopes if not explicitly forbidden
-Fix: it was possible to build 2x1 and 1x2 buildings on slopes even if it was not allowed
2008-02-04 22:15:48 +00:00
glx
b35611dae3
(svn r12059) -Fix (r12041): industries prop 24 is a word
2008-02-04 16:48:00 +00:00
frosch
5e7c8012ec
(svn r12058) -Fix: Teach NPF where road vehicles and trams can reverse.
...
-Fix: Ships can drive through opponents' ship depots. (Thanks SmatZ)
-Codechange: Split NPFFollowTrack() in smaller parts.
2008-02-04 16:24:25 +00:00
smatz
04ef38ec60
(svn r12057) -Fix: slowdown train when approaching 90deg turn when 90deg turns are forbidden
2008-02-04 15:56:39 +00:00
frosch
2a2aa1d22a
(svn r12056) -Fix [FS#1704]: Enable YAPF to start searching inside a wormhole.
2008-02-04 15:26:35 +00:00
smatz
b206e50f80
(svn r12055) -Fix: another way to fix AI trying to build road through depots
2008-02-04 14:08:02 +00:00
peter1138
a528dc89c7
(svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types...
2008-02-04 11:28:12 +00:00
maedhros
2588879c6d
(svn r12052) -Fix [FS#1737] (r11494): The cargo translation table was loaded at the right time, but all the other global variables were now loaded too early. ;)
2008-02-03 20:23:59 +00:00
rubidium
20e9abed47
(svn r12050) -Fix: random_func broke for desync debug.
2008-02-03 16:21:19 +00:00
smatz
0ca3977af8
(svn r12049) -Fix (r10496)(r10619): memset on multibyte array with wrong byte count
2008-02-03 12:41:06 +00:00
belugas
1e51090e74
(svn r12048) -Cleanup: Move some strings in the original bridge array, adjust documentation a bit.
2008-02-03 03:37:33 +00:00
belugas
90973cdcef
(svn r12045) -Feature-ette(newGRF): Add support for var 12, Variational Action 2
2008-02-03 00:24:53 +00:00
rubidium
612ba5c787
(svn r12044) -Fix [FS#1741]: crash when centering on a vehicle (aircraft) that is outside of the map.
2008-02-02 21:09:05 +00:00
smatz
f3663fd25c
(svn r12043) -Fix [FS#1736]: allow building transmitters and lighthouses on tree tiles
2008-02-02 20:15:20 +00:00
peter1138
1d891a8b15
(svn r12042) -Fix [FS#1676]: Reimplement how rivers and canals are stored in the map, allowing the sea/river/canal status to also be
...
stored for buoys, docks, locks and depots. All these are now allowed on rivers and removal of them will revert to the
original water type.
2008-02-02 09:28:43 +00:00
belugas
7cf2c83462
(svn r12041) -Codechange: Add the loader and the property for action 00 industries, prop 24, nearby station name.
...
No assignation yet, no real work either.
2008-02-02 03:23:26 +00:00
belugas
fc4f6dcfb1
(svn r12040) -Codechange: Change IsOrderListShared from a simple function to a class member(MagicBuzz).
2008-02-02 02:45:09 +00:00
peter1138
7a78a1b51a
(svn r12038) -Fix: Change ownership of or remove statues when merging/bankrupting companies.
2008-02-01 22:13:59 +00:00
glx
525409b0fc
(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) with an OnNewDay method in the Vehicle class
2008-02-01 22:02:14 +00:00
peter1138
67782add11
(svn r12036) -Fix: For station tiles, only get road types for road stops.
2008-02-01 20:10:57 +00:00
frosch
45b79bc9f1
(svn r12035) -Fix [FS#1702]: Teach YAPF where trams can reverse, and where not.
2008-02-01 17:27:45 +00:00
belugas
803a1e2353
(svn r12034) -Codechange: A bit of code style cleaning, regarding comments.
...
Thanks to MagicBuzz who spotted yet another non-converted file
2008-02-01 17:22:24 +00:00
smatz
6537d13c8a
(svn r12033) -Fix: do not show train speed as zero after loading paused game
2008-02-01 15:09:55 +00:00
peter1138
e0849acc5a
(svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player.
2008-01-31 23:04:45 +00:00
peter1138
be548ee224
(svn r12031) -Fix [FS#1689,FS#1719]: Prevent towns from removing or claiming ownership of player owned tiles when growing.
2008-01-31 21:16:40 +00:00
miham
f3ecaf796e
(svn r12030) -Update: WebTranslator2 update to 2008-01-31 19:43:58
...
brazilian_portuguese - 1 changed by tucalipe (1)
italian - 2 changed by lorenzodv (2)
japanese - 7 fixed by ickoonite (7)
2008-01-31 18:44:28 +00:00
frosch
a1c543e064
(svn r12029) -Feature: Allow trees on shore.
2008-01-31 17:54:13 +00:00
frosch
fe9891c8ec
(svn r12028) -Codechange: Split common part of station var 0x67, house var 0x62, indtile var 0x60 and industry var 0x62 to 'newgrf_commons.cpp'.
2008-01-31 17:46:08 +00:00
orudge
2ef11e0b8b
(svn r12026) -Update: 'exit' is consistent with UK English in OpenTTD, 'quit' with US English
2008-01-30 19:07:41 +00:00
miham
bc1542d483
(svn r12025) -Update: WebTranslator2 update to 2008-01-30 19:43:26
...
czech - 1 fixed by Hadez (1)
estonian - 11 changed by kristjans (11)
french - 2 changed by belugas (2)
korean - 1 changed by darkttd (1)
spanish - 5 fixed by eusebio (5)
2008-01-30 18:43:59 +00:00
frosch
1608d67030
(svn r12024) -Codechange: Reduce code duplication inside tree_cmd.
...
-CodeChange: When rocks get removed while planting trees, barren the ground.
-Fix: In one case trees could spread under bridges.
2008-01-30 18:40:42 +00:00
frosch
a2b35067dd
(svn r12023) -Fix [FS#1690]: Put a better suited text in the quit-dialog.
2008-01-30 17:56:19 +00:00
belugas
caf7e8655c
(svn r12022) -Revert(r12018): Invisible trees are now separate from the building concept.
...
So when you want invisible trees, just select the option of the same name in the Patch Options and toggle transparency of trees.
More to come on the saga of Invisibility. So stay tuned.
2008-01-30 17:36:28 +00:00
skidd13
953c3cb6df
(svn r12021) -Cleanup: Make some parts of the town growth a bit more descriptive
...
-Codechange: Remove some needless checks
2008-01-30 17:31:39 +00:00
frosch
46589fa827
(svn r12020) -Documentation: Correct description of TropicZone.
2008-01-30 17:22:06 +00:00
peter1138
1cdee354b4
(svn r12019) -Codechange: Add support for passenger engine designation for AI-use, NewGRF property 0x08 for trains.
2008-01-30 10:27:45 +00:00
belugas
94aa04948c
(svn r12018) -Fix(FS#1721,r9563): Restore initial intent on the invisible tree while transparent building patch setting
2008-01-30 03:34:24 +00:00
rubidium
44f4ebffed
(svn r12017) -Fix: when you have more than 9 network interfaces you'll enter the wonderfull world of overflows.
2008-01-29 21:43:22 +00:00
egladil
be6737a2db
(svn r12016) -Fix (r12003): os x compilation was broken again ;)
2008-01-29 19:23:31 +00:00
peter1138
fb8973c64a
(svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings.
2008-01-29 17:09:00 +00:00
rubidium
a736e8500a
(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
2008-01-29 14:19:07 +00:00
frosch
9c4cb84c03
(svn r12013) -Fix: When modifying watered tiles, mark neighboured canals and rivers dirty in more cases.
2008-01-29 14:17:13 +00:00
frosch
7cf4f09c26
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
2008-01-29 14:02:18 +00:00
frosch
cda0e9f91c
(svn r12011) -Fix [FS#1701]: Do not consider one-corner-raised-shores to be watered tiles from all sides.
2008-01-29 13:54:52 +00:00
smatz
379f89fc7e
(svn r12010) -Fix (r11994): build tramway window should use STR_WHITE_TRAMWAY_CONSTRUCTION
2008-01-29 13:52:55 +00:00
peter1138
b20d220333
(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
02f774793b
(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
fdd71514b2
(svn r12007) -Fix (r12003): win32 compilation was broken again ;)
2008-01-29 00:45:24 +00:00
rubidium
1629699094
(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
c9a9103566
(svn r12005) -Fix [FS#1717]: possible reading from an invalid pointer. Patch by PhilSophus.
2008-01-29 00:29:28 +00:00
rubidium
3b2145aafe
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
2008-01-29 00:27:25 +00:00
rubidium
fde33b5547
(svn r12003) -Codechange: don't declare InteractiveRandom[Range] in multiple places.
2008-01-29 00:26:31 +00:00
peter1138
1a9b741e43
(svn r12002) -Cleanup (r11981): Remove obsolete code to skip sprites from indexed GRFs.
2008-01-28 17:51:45 +00:00
frosch
d3c7a35d22
(svn r12001) -Fix: When skipping Action 11 or 12, also skip belonging sprites.
2008-01-28 15:55:59 +00:00
frosch
abc6e70447
(svn r12000) -Fix (r11926): If no river NewGRF is loaded, use sloped water from locks.
2008-01-28 15:19:35 +00:00
frosch
a1b98cda59
(svn r11999) -Fix: Do entrance-slope-check for every tile of railstations.
2008-01-28 14:36:54 +00:00
smatz
a9031cc5f5
(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
0253b1d02a
(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
c8ba8d930b
(svn r11996) -Fix [FS#1706]: update train statusbar when stopping from zero speed
2008-01-27 20:20:53 +00:00
maedhros
c5b81c9382
(svn r11995) -Cleanup (r11994): Change the string names in all the other languages.
2008-01-27 17:34:08 +00:00
maedhros
21eef65e77
(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
0847def759
(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
7b29dcde3c
(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
97a1cbdfa1
(svn r11991) -Cleanup: Remove strings removed in r11990
2008-01-26 22:41:24 +00:00
peter1138
c6656d6b2f
(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
2fc2188127
(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
c99eb9e456
(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
d3990083d3
(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
e214e03c28
(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
b329781ab2
(svn r11984) -Fix: Also draw corner shores under rail tracks.
2008-01-25 16:51:35 +00:00
frosch
6f6708e844
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
2008-01-25 15:47:58 +00:00
frosch
d11aeb118c
(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
eeeeeb9336
(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
bbdc5a9314
(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
4991dcecc7
(svn r11978) -Codechange: Replace some global variables with window owned ones
2008-01-24 18:35:35 +00:00
belugas
44d085af6c
(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
1fc0c0d2dc
(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
da754951f1
(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
79aa7247c0
(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
5f9a877376
(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
697b07c99c
(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
2008-01-24 10:47:44 +00:00
peter1138
9c65bcea7d
(svn r11970) -Cleanup: Remove old comment
2008-01-24 10:41:12 +00:00
smatz
541247c830
(svn r11969) -Codechange: documentation update, there are no 'track bits under bridge' anymore
2008-01-23 23:22:47 +00:00
smatz
5a7c903770
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
2008-01-23 22:34:04 +00:00
smatz
b5641ae0f2
(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
e40944f8e0
(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
4cb91fa591
(svn r11965) -Codechange: simplified tunnel/bridge code in TPFMode1
2008-01-23 18:24:04 +00:00
peter1138
b718cae67d
(svn r11964) -Fix [FS#1685]: Tropic zone data was returned incorrectly.
2008-01-23 17:45:48 +00:00
belugas
9c16461c29
(svn r11963) -Fix(r11961): Forgot to specify the meaning of the magical 6 substraction
2008-01-23 17:40:37 +00:00
smatz
d6eaf1a11a
(svn r11962) -Cleanup: OPF is no longer used to update signals
2008-01-23 17:30:28 +00:00
belugas
4a3e135086
(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
0b888ccc00
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
2008-01-23 14:51:36 +00:00
peter1138
9515328962
(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
a31ebdb2be
(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
e35cf20a23
(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
0f966a316a
(svn r11956) -Fix [FS#1675]: Disallow building locks and docks on rapids.
2008-01-23 08:47:49 +00:00
peter1138
ff0891426f
(svn r11955) -Fix (r11926): Prevent bridge and tunnel ends being placed on rivers.
2008-01-23 08:28:19 +00:00
smatz
983fdb8a4f
(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
da53070a38
(svn r11952) -Fix (r11926): Prevent industries from being built on rivers, unless they require water.
2008-01-22 22:17:28 +00:00
smatz
3a423a8747
(svn r11951) -Fix (r11279): loading of very old savegames was broken
2008-01-22 21:01:35 +00:00
peter1138
39f6173401
(svn r11949) -Codechange: add river icon and cursor, drawn by skidd13.
2008-01-22 20:04:30 +00:00
frosch
49d2087d7f
(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
b99c83246b
(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
7d1e3086b8
(svn r11945) -Fix: FileExists() failed for non latin paths (win32)
2008-01-22 15:47:40 +00:00
smatz
96a18d859f
(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
59ec5e62ce
(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
30bac58bde
(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
ffec79bbcf
(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
9444eb4484
(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
ca1b3e7b4e
(svn r11938) -Codechange: support loading of canal/river properties (though still ignored)
2008-01-21 20:41:04 +00:00
frosch
0a6425926b
(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
f23e71f22f
(svn r11936) -Fix: 'BRIDGE_TOO_LOW_FOR_TERRAIN'-check was wrong for steep slopes.
2008-01-21 15:20:58 +00:00
bjarni
000117aa19
(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
9ca929c812
(svn r11934) -Codechange: add persistent random data for river and canal tiles.
2008-01-20 18:30:53 +00:00
miham
ffb9ca164e
(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
2c5c97346b
(svn r11932) -Codechange: Forgot two occurences of widget enumification
2008-01-20 04:01:28 +00:00
belugas
3423032dbb
(svn r11931) -Codechange: enumify the widgets numbers. Give breathing room on the case switches too...
2008-01-20 03:56:15 +00:00
belugas
90a770250f
(svn r11930) -Codechange: a bit of code style application
2008-01-20 03:11:14 +00:00
bjarni
e91230415d
(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
2f6ee3a4a1
(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
a580c8d059
(svn r11927) -Fix (r11926): unable to place canals in game
2008-01-19 18:24:20 +00:00
peter1138
4a2f7db99b
(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
aa0412e0bc
(svn r11925) -Fix (r122, r9867): loading old, pre savegame version 2, savegames.
2008-01-19 14:00:04 +00:00
peter1138
02c9484ebb
(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
1712a8a0e1
(svn r11923) -Cleanup: Remove strings removed from english.txt in r11919
2008-01-18 22:55:02 +00:00
smatz
730dda867b
(svn r11922) -Codechange: use MaybeBarCrossingWithSound() to bar crossing with sound
2008-01-18 21:44:20 +00:00
peter1138
14416791af
(svn r11921) -Cleanup: correct indenting and switch case line spacing.
2008-01-18 21:33:19 +00:00
glx
600046f3d7
(svn r11920) -Fix (r11844): train count was incorrect in network lobby window (and 'players' command)
2008-01-18 21:25:18 +00:00
peter1138
b6d0684826
(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
70025a149d
(svn r11918) -Codechange: Draw engine lists at widget positions instead of fixed pixel positions
2008-01-18 18:18:39 +00:00
smatz
22a7b95c10
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
2008-01-18 14:48:57 +00:00
smatz
1d59439166
(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
68707808c0
(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
b7f50533c2
(svn r11914) -Documentation: fix some @file statement
2008-01-18 03:48:29 +00:00
smatz
0b3db1a92d
(svn r11913) -Fix (r11871): update signals after company bankrupt and disaster too
2008-01-18 02:16:39 +00:00
peter1138
307b0e8e7a
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
2008-01-17 21:57:20 +00:00
peter1138
ada41b7b3f
(svn r11911) -Codechange: use enum for autoreplace window widgets
2008-01-17 21:44:52 +00:00
smatz
8d077b16d8
(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
ac0fa7f69f
(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
822242f411
(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
35135222b5
(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
17c9ea9ca3
(svn r11906) -Fix: fixed a typo in german language (reported by Botcher0)
2008-01-17 19:35:37 +00:00
peter1138
6d3aa07a24
(svn r11905) -Codechange: add widget enums for player finances and player livery windows
2008-01-17 19:12:53 +00:00
peter1138
d80e04d6f6
(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
44a4ff835d
(svn r11903) -Fix: try to fix MorphOS compilation
2008-01-17 18:21:31 +00:00
peter1138
ad54075acc
(svn r11902) -Codechange: use new dropdown widget for game options window
2008-01-17 18:10:27 +00:00
peter1138
c313676c66
(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
c74cf439fa
(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
35f3421842
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
2008-01-17 17:35:59 +00:00
frosch
c579bffed2
(svn r11898) -Fix: Update neighboured canals + signals when flooding non-flat tiles, too.
2008-01-17 17:13:47 +00:00
frosch
978a7ca56a
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
2008-01-17 16:55:13 +00:00
glx
4f31704e2e
(svn r11896) -Fix (r11886): a missing const broke compilation with MSVC
2008-01-17 16:46:41 +00:00
glx
f37174f0e2
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
2008-01-17 16:41:02 +00:00
peter1138
a9c71ce375
(svn r11894) -Cleanup: Remove strings removed from english.txt in r11893
2008-01-17 14:06:49 +00:00
peter1138
68fc3b35da
(svn r11893) -Codechange: build map size drop downs dynamically and remove unneeded strings
2008-01-17 14:00:17 +00:00
peter1138
f788298209
(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
08c01e64b8
(svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo.
2008-01-17 02:10:55 +00:00
glx
3d61a1adc5
(svn r11888) -Codechange: simplify sorting of the strings in town names dropdown
2008-01-17 02:10:26 +00:00
rubidium
f658b79e15
(svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI.
2008-01-17 02:09:34 +00:00
glx
69c18efdca
(svn r11886) -Add: sort the strings in languages dropdown
2008-01-17 00:21:43 +00:00
peter1138
4d9a9bf6ff
(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
bc438a3033
(svn r11884) -Cleanup: leftover use of widget numbers instead of enum
2008-01-16 23:46:46 +00:00
smatz
c8178d43c1
(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
ac7bc24b0e
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
2008-01-16 21:17:31 +00:00
peter1138
69cb009075
(svn r11881) -Cleanup: Code style for global variables.
2008-01-16 18:34:53 +00:00
peter1138
330ec8bdd6
(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
abac83795d
(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
019ffe29b8
(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
692fbb3c05
(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
5659cbe6fe
(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
beb1b07f5f
(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
2817e5425b
(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
7a66d5e21d
(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
77a20eae43
(svn r11872) -Fix (r9874): EngineHasReplacementForPlayer() didn't look in ALL_GROUP
2008-01-16 01:27:24 +00:00
smatz
9556623281
(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
40a7ace4fa
(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
6891bc2011
(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
576f8ad93e
(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
ab7cb0804d
(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
245f05a7cc
(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later
2008-01-15 15:00:01 +00:00
peter1138
932c586dfe
(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
26c621945d
(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
0078fd1699
(svn r11861) -Fix: do not call rail specific functions when removing road tunnel/bridge
2008-01-15 11:45:29 +00:00
peter1138
ea6535c864
(svn r11860) -Fix: Test station class validity against number of classes, not abosolute limit.
2008-01-15 11:43:06 +00:00
peter1138
68a3df82b9
(svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list.
2008-01-15 10:36:51 +00:00
peter1138
2723128ba9
(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