rubidium
56ad26a3aa
(svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages.
2008-07-18 16:26:51 +00:00
rubidium
9d035df146
(svn r13729) -Fix: assumption that non-north tiles of a house do not have the 1x1 building bit set was flawed with some NewGRFs. This caused the amount of houses to differ, which causes the town radii to differ, which causes desyncs when towns are expanded.
2008-07-18 12:20:31 +00:00
smatz
faae16cddc
(svn r13728) -Codechange: define DEBUG as an empty block so compiler warns us less
2008-07-18 12:20:30 +00:00
smatz
8fb9f600c8
(svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was broken
2008-07-18 12:11:46 +00:00
smatz
632e2059b9
(svn r13721) -Codechange: one less multiplication for colour mixing in 32bpp blitters (GeekToo)
2008-07-17 23:43:47 +00:00
rubidium
c1594e45c5
(svn r13720) -Fix (r13715): string wasn't correctly passed to draw function.
2008-07-17 21:15:57 +00:00
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
2008-07-17 20:13:01 +00:00
rubidium
83824f4c86
(svn r13718) -Fix: possible desync on the autorenew settings 20+ game years (i.e. 4.5+ hours) after a company was started.
2008-07-17 16:38:26 +00:00
rubidium
2810d26fde
(svn r13717) -Codechange: place the whole 'create new company' command in #ifdef ENABLE_NETWORK as it may only be executed when we are playing in a network game.
2008-07-17 15:16:11 +00:00
rubidium
a1ca1da1b3
(svn r13716) -Fix [FS#2144]: any player could construct new companies.
2008-07-17 15:14:42 +00:00
rubidium
5a94972c2d
(svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
...
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
2008-07-17 13:47:04 +00:00
rubidium
31d283c6c8
(svn r13714) -Fix: remove the unique_id from the message that a client has joined as it is only exposes the unique_id more than needed. Patch by dih.
2008-07-17 12:02:09 +00:00
rubidium
348600eca9
(svn r13713) -Fix: possible crash on creating a network packet.
2008-07-17 11:47:57 +00:00
rubidium
03afcec36f
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
2008-07-17 11:19:20 +00:00
miham
7c531c4ece
(svn r13707) -Update: WebTranslator2 update to 2008-07-16 01:21:36
...
brazilian_portuguese - 3 fixed by tucalipe (3)
bulgarian - 78 fixed, 230 changed by thetitan (3), groupsky (305)
catalan - 3 fixed by arnaullv (3)
dutch - 3 fixed by webfreakz (3)
italian - 3 changed by lorenzodv (3)
korean - 4 fixed, 5 changed by leejaeuk5 (9)
russian - 3 fixed by Smoky555 (3)
slovenian - 4 fixed by Necrolyte (4)
spanish - 3 fixed by eusebio (3)
swedish - 4 fixed by daishan (4)
ukrainian - 2 fixed by mad (2)
2008-07-15 23:27:28 +00:00
frosch
e190ab858d
(svn r13706) -Fix (r13695): Small typo.
2008-07-15 17:13:50 +00:00
belugas
ba53aa91a1
(svn r13705) -Codechange: Define and use BridgePieces enum, which will remove a few more magic numbers
2008-07-15 00:34:34 +00:00
rubidium
2e68b35106
(svn r13704) -Fix: make timetables work more sensible when used in conjunction with conditional orders, i.e. make it possibly to tell how long to travel to the next destination if you jump.
2008-07-14 21:01:49 +00:00
rubidium
68613f4ba0
(svn r13703) -Update: the other language files due to a few changed strings in r13702.
2008-07-14 20:36:21 +00:00
rubidium
91e317cd1c
(svn r13702) -Fix: do not overflow the order/timetable window when 'long' orders are displayed.
2008-07-14 20:18:06 +00:00
glx
d9d32d3619
(svn r13701) -Codechange: add some more info in crash.log
2008-07-14 20:04:54 +00:00
rubidium
42d0500f40
(svn r13700) -Fix: possible buffer overflow in string truncation code.
2008-07-14 18:22:15 +00:00
rubidium
f6ab930cc0
(svn r13699) -Fix: handle SETX(Y) properly when truncating a string instead of ignoring it and returning a too long string.
2008-07-14 17:31:41 +00:00
frosch
e631c70b1c
(svn r13698) -Fix (r13697): MorphOS compilation.
2008-07-13 19:44:05 +00:00
frosch
ac0ae1536f
(svn r13697) -Feature: Add some support for symbolic links in .tar files.
2008-07-13 16:09:00 +00:00
belugas
dfeb80fb9b
(svn r13696) -Fix[GUI]: The Build button of the vehicle list is now hidden, instead of just disabled. It will be only visible when called from the Depot Building Window.
...
Less confusion, hopefully. Suggested by Eddi.
2008-07-13 02:43:46 +00:00
rubidium
6b212485f8
(svn r13695) -Fix [FS#2120]: in some cases the (sound) mixer could overflow causing artefacts in the sound.
2008-07-12 22:30:10 +00:00
rubidium
4b3395fbd4
(svn r13694) -Change: make it more explicit that you've opened the available train/ship/etc. list instead of the one where you can actually build vehicles by setting the appropriate title for the window.
2008-07-12 22:28:34 +00:00
frosch
16ad1fe7bb
(svn r13693) -Fix (r11106, r11117): Do not rely on .tar files always ending with a block of zeros.
2008-07-12 14:49:43 +00:00
rubidium
bb3292943a
(svn r13692) -Fix (r13674): loading PNG sprites could very quickly fill the sprite cache.
2008-07-12 14:03:36 +00:00
smatz
a47b118a80
(svn r13691) -Codechange: make it easier to determine whether a command is ran in the context of autoreplace or not
2008-07-09 20:55:47 +00:00
belugas
e9a1142e0d
(svn r13683) -Codechange: privatize a function that is not used outside of the class who calls it
2008-07-09 02:18:51 +00:00
belugas
a324f30783
(svn r13682) -Codechange: -Codechange: remove a now useless variable(dih).
2008-07-08 23:07:58 +00:00
rubidium
91a27d6441
(svn r13681) -Revert (r13678, r13677): the fixes didn't work in all cases (assertions on savegame loads).
...
-Fix [FS#2102]: but now in a hopefully beter way.
2008-07-08 15:10:23 +00:00
rubidium
0984d10d9f
(svn r13680) -Fix: NPF crashing when a ship tried to find a nearby depot when on an aqueduct.
2008-07-07 16:04:38 +00:00
rubidium
4db7c4f549
(svn r13679) -Fix [FS#2131]: saving TTD imported games in recession failed due to wrong (and unneeded) type conversions in the saveload code.
2008-07-07 09:23:54 +00:00
rubidium
b2479212ef
(svn r13678) -Fix (r13677): electric trains from pre elrail savegames would get stopped on load.
2008-07-06 11:08:40 +00:00
rubidium
ba22744899
(svn r13677) -Fix [FS#2102]: in the case that elrails and 'realistic' acceleration are disabled all electrified engines would have no power on load, until the vehicle got turned around, loaded or got into a depot.
2008-07-04 21:43:17 +00:00
rubidium
7375d56418
(svn r13676) -Fix [FS#2126]: inactive companies from old (TTD) saves could be marked active in some cases, which then loads garbage in their statistics and such.
2008-07-04 19:00:11 +00:00
rubidium
9a8d1bcad5
(svn r13675) -Fix: memory leak when NewGRFs got forcefully disabled and they defined GOTO labels.
2008-07-04 18:42:04 +00:00
rubidium
0570ba8461
(svn r13674) -Fix [FS#2127]: crash when drawing a non-real sprite. The drawing of the non-real sprite is caused when two NewGRFs replace the same sprite and the first replaces it with a real sprite (and thus assumes it remains a real sprite) and the second replaces it with a non-real sprite. OpenTTD already looked at whether the sprite to load should be seen as a real or non-real sprite, but it failed to replace non-real sprites with a substitute real sprite when getting the sprite from the cache.
2008-07-04 14:45:51 +00:00
rubidium
c1add55758
(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
2008-07-03 18:00:36 +00:00
belugas
a380976a2a
(svn r13672) -Fix(r13670): silent warnings that MSVC did not raised. Looks like enums can not be easily matched :(
2008-07-03 01:08:35 +00:00
frosch
ebb0059773
(svn r13671) -Cleanup: Zeros for sell.
2008-07-01 18:56:40 +00:00
belugas
741044e97b
(svn r13670) -Codechange : Merge some very alike events handlers.
2008-07-01 00:04:09 +00:00
frosch
ffb7e8ee17
(svn r13667) -Documentation: Comment 'tgp.cpp' a bit. Based on patch by CommanderZ.
2008-06-30 19:54:03 +00:00
belugas
496baad3aa
(svn r13665) -Fix[FS#2119]: Wrong PlayerID used for sending a message to.Patch by Yexo
2008-06-30 16:59:35 +00:00
rubidium
4642e9f75a
(svn r13664) -Fix [FS#2117]: bus/truck forgetting go-to-depot order when entering a non-drivethrough road stop.
2008-06-30 15:13:40 +00:00
belugas
490f013c58
(svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus
2008-06-30 14:58:58 +00:00
rubidium
ad2bcaeae5
(svn r13662) -Fix [FS#2113]: crash when adding conditional orders to ships.
2008-06-30 14:49:50 +00:00
rubidium
6d1b927814
(svn r13661) -Fix: server crashing when banning the rconning client.
2008-06-30 14:48:44 +00:00
frosch
cfdc710104
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
2008-06-28 15:44:24 +00:00
frosch
654ea1a310
(svn r13648) -Cleanup (r5303): Amplitudes should be amplitudes and not amplitudes/16.
2008-06-27 20:59:30 +00:00
skidd13
0a178274e2
(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant
2008-06-27 17:46:43 +00:00
belugas
54333f5f06
(svn r13646) -Change: typos and miss-aligned enum values
2008-06-27 16:16:35 +00:00
frosch
8a800ee258
(svn r13645) -Codechange: Convert a macro into an inlined member function.
2008-06-27 15:01:18 +00:00
belugas
fef077823d
(svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
...
Thanks to glx :)
2008-06-27 02:26:51 +00:00
belugas
16e2717c0e
(svn r13643) -Codechange: Enumify some loosely related values been used in the toolbar resizing processes
2008-06-27 01:26:13 +00:00
belugas
554419d735
(svn r13642) -Documentation: Add the enum values to the widget arrays, in concordance with code style
2008-06-26 17:43:56 +00:00
belugas
5eabd09a97
(svn r13641) -Fix: Misleading enum name.
2008-06-26 17:13:39 +00:00
smatz
7ec2ad621d
(svn r13640) -Codechange: make colours behind not fully solid objects less darker for BM_TRANSPARENT (for 32bpp blitters)
2008-06-26 16:47:29 +00:00
smatz
faebe10d81
(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
...
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
2008-06-26 15:46:19 +00:00
smatz
6f3b1745c2
(svn r13638) -Fix: signed/unsigned warning for MSVC9 and gcc2
2008-06-26 00:40:42 +00:00
miham
556e8ade9a
(svn r13637) -Update: WebTranslator2 update to 2008-06-25 23:36:50
...
brazilian_portuguese - 9 fixed by tucalipe (9)
bulgarian - 25 fixed by thetitan (11), kokobongo (14)
catalan - 9 fixed, 4 changed by arnaullv (13)
croatian - 5 fixed by knovak (5)
czech - 8 fixed, 9 changed by Hadez (17)
dutch - 9 fixed by habell (9)
french - 12 fixed by glx (10), belugas (2)
italian - 12 fixed by lorenzodv (12)
korean - 8 fixed, 7 changed by leejaeuk5 (15)
russian - 9 fixed by Smoky555 (9)
slovenian - 18 fixed by Necrolyte (18)
spanish - 9 fixed by eusebio (9)
swedish - 8 fixed by daishan (8)
traditional_chinese - 38 fixed, 108 changed by tiberiusteng (146)
ukrainian - 12 fixed, 2 deleted, 55 changed by mad (69)
2008-06-25 21:37:59 +00:00
frosch
545c1f1045
(svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for.
2008-06-25 20:04:27 +00:00
rubidium
ed298d6ff8
(svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed.
2008-06-25 19:33:11 +00:00
frosch
2b071f84ea
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
2008-06-25 18:46:05 +00:00
smatz
b7dfaa2ced
(svn r13631) -Fix (r13618): forgot #define avoiding multiple inclusions
2008-06-25 17:45:05 +00:00
skidd13
cbb081793a
(svn r13630) -Update: apply english.txt changes from r13628 to other languages
2008-06-25 17:37:12 +00:00
frosch
b5f2bd51fb
(svn r13629) -Fix [FS#2108](r13603): diameter != radius
2008-06-25 17:30:53 +00:00
skidd13
3dea3cbe63
(svn r13628) -Feature: enable building of aqueducts in the scenario editor
...
-Codechange: related to this split the waterway based buttons from the landscape generation window
2008-06-25 17:30:16 +00:00
smatz
fdc4d1922d
(svn r13626) -Fix (r11871): signals were not updated when player removed signals from nonexistent track sharing bits with existing track
...
So disallow removing signals from nonexistent track
2008-06-24 23:38:10 +00:00
rubidium
ecbd249dc4
(svn r13624) -Fix [FS#2106]: crash when one tries to raise the nothern corner of MP_VOID tiles (i.e. the southern corner of the tiles on the southern map edge) in the scenario editor.
2008-06-24 15:58:01 +00:00
rubidium
6002e3d643
(svn r13623) -Codechange: only show the 'load' of articulated RV parts that have a capacity instead of showing 'empty' parts when a vehicle is completely full.
2008-06-24 13:49:13 +00:00
rubidium
c81e4e3d7e
(svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos.
2008-06-24 13:47:15 +00:00
rubidium
65a4dc8902
(svn r13621) -Fix: building roadbits in the wrong direction on bridges or building roadbits from underneath the bridge to the bridgehead is impossible, so don't silently ignore that error when building over houses and industries is not ignored.
2008-06-24 11:42:01 +00:00
smatz
96d880ea9e
(svn r13619) -Codechange: use 'const char *' instead of std::string for blitter and driver names
...
Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
2008-06-24 09:15:45 +00:00
smatz
40d5242f91
(svn r13618) -Codechange: move tar-specific declarations to separate file
...
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-24 09:05:24 +00:00
skidd13
241435226c
(svn r13617) -Codechange: calculate the diff in StationWaitingSorter directly
2008-06-23 22:51:21 +00:00
rubidium
c8d2db3e04
(svn r13612) -Fix [FS#2104]: wrong comment of CmdSetAutoReplace. Patch by Yexo.
2008-06-23 08:49:09 +00:00
rubidium
d87b6c3937
(svn r13611) -Fix [FS#2100]: if the first bridge can't be build for a given length, then none of the other bridges can. Effectively meaning that if someone replaces the first bridge with a bridge that can be only 3 tiles longs then only other bridges that can be 3 tiles long will be buildable, but only if they are 3 tiles long.
2008-06-23 08:38:07 +00:00
skidd13
6169c3fc17
(svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken
2008-06-22 15:41:38 +00:00
skidd13
8b7d893d85
(svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead)
2008-06-22 15:21:51 +00:00
belugas
ccd27d1e5b
(svn r13603) -Feature{newGRF]: Add var 65 in Variational Action 2 Variables for Houses.
...
This var will return the manhattan distance of the nearest house that match a given criteria.
The criterias can be: 0 : house ID/ 1 : Class ID/ 2 : grf ID
The search radius can be defined too, up to 64.
2008-06-21 23:59:38 +00:00
smatz
6cb9d3802d
(svn r13602) -Codechange: little speedup for 8bpp-optimized blitter
2008-06-21 20:58:34 +00:00
smatz
d4a4075dc6
(svn r13601) -Codechange: resize the Tile Info window when it is needed, make it better readable
2008-06-21 18:59:15 +00:00
belugas
915a9ea6bd
(svn r13597) -Codechange: Enumification of the Map menu items.
...
The rework allowed to remove a function, by merging two quite similar ones.
2008-06-21 01:40:56 +00:00
frosch
aadd3b29af
(svn r13594) -Feature(ette)[FS#2093]: Supply newgrfs with 'day of month', 'leap year' and 'day of year'.
2008-06-20 21:14:10 +00:00
smatz
3d56c07440
(svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken
2008-06-20 20:40:47 +00:00
skidd13
5e21504107
(svn r13592) -Fix: window size remembering was broken
2008-06-20 14:54:47 +00:00
peter1138
1d5c418fbe
(svn r13591) -Codechange: Support CB36 in the vehicle offer window.
2008-06-20 07:23:00 +00:00
belugas
84df01f00b
(svn r13590) -Codechange: Enumification of the Save/Load menu items
2008-06-20 01:55:00 +00:00
smatz
c1a1e28b88
(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis
2008-06-19 20:06:55 +00:00
belugas
6fa570762c
(svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think?
2008-06-19 20:04:24 +00:00
skidd13
ec261a6456
(svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
...
-Cleanup: some small things referring the change
2008-06-19 19:58:30 +00:00
belugas
0fdb8057bb
(svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions.
2008-06-19 19:58:26 +00:00
bjarni
7fa33c28a9
(svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
...
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support
Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
2008-06-19 17:54:23 +00:00
rubidium
5b615eae3a
(svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they are build adjacent to them.
2008-06-19 13:04:41 +00:00
rubidium
aef8a214c3
(svn r13579) -Fix [FS#2088]: process the order coming after a conditional order, otherwise the vehicle would already leaving the station before it knows where the next destination is, making it leave in the wrong way. However, after processing as many conditional orders as there are in the order list it will stop processing them in order to not create an infinite loop.
2008-06-19 11:45:52 +00:00
rubidium
dd0a66e202
(svn r13576) -Codechange: disable static NewGRFs when non-static NewGRFs query them in the context of network games. This makes it impossible for static NewGRFs to disable non-static NewGRFs and 'bad' things happening because the non-static NewGRF doesn't know about the static NewGRF.
2008-06-19 10:20:45 +00:00