Darkvater
92f5aa81ab
(svn r5863) Release 0.4.8
2006-08-12 12:38:43 +00:00
Darkvater
4e11b36000
(svn r5862) - Prepare 0.4 branch for release. Update readme's, bugs, installers, changelog, etc. to 0.4.8
2006-08-12 12:35:23 +00:00
Darkvater
2452a20e07
(svn r5861) - Backport from trunk (r5839):
...
A ship in a depot must be stopped before allowed to be cloned (copied ship.h from trunk).
2006-08-12 12:22:38 +00:00
Darkvater
ffa39381d9
(svn r5858) - Backport from trunk (r5801):
...
The exception dialog showed the last modification-date of win32.c instead of the
last compilation-date.
2006-08-12 12:13:08 +00:00
Darkvater
f2e4b69d5c
(svn r5857) - Backport from trunk (r5800):
...
When directories were changed in 'Play Scenario', pressing 'New Game' showed
scenarios from that directory, not the default one.
2006-08-12 12:11:54 +00:00
Darkvater
a597fd50e6
(svn r5856) - Backport from trunk (r3598):
...
Suppress invalid warning by assigning value to variable
2006-08-12 12:01:20 +00:00
Darkvater
6f920cee6c
(svn r5678) - Prepare 0.4 branch for release. Update readme's, bugs, installers, changelog, etc. to 0.4.8-RC2
2006-07-31 15:49:12 +00:00
Darkvater
bd736e240a
(svn r5674) - Backport from trunk (r5664):
...
Certain combinations of trains crash when moved around inside the depot.
2006-07-31 12:12:14 +00:00
Darkvater
6c3eedee86
(svn r5673) - Backport from trunk (r5655):
...
Reversed arrow-sign in the multiplayer list column headers on sort by name
2006-07-31 12:11:14 +00:00
Darkvater
9214c5e0a5
(svn r5672) - Backport from trunk (r5652):
...
Industry production change button doesn't work for oilrig passangers.
2006-07-31 12:10:20 +00:00
Darkvater
6af2e64186
(svn r5671) - Backport from trunk (r5504, r5512):
...
Added Italian town name generator. While not a fix, it is added along the same lines
as the turkish town names. Official translation > official townnames (if existing).
2006-07-31 12:08:08 +00:00
Darkvater
58b4fd7683
(svn r5669) - Backport from trunk (r5464, r3641):
...
Codechange: verify the presence of music files in the gm folder. Slightly altered r5464
to exclude the addition of music.c and left out the extra functionality. While in essence
this is not a true fix, several people have reported a rising CPU usage because Dmusic
kept indefinitely looping the file list. This should solve that.
2006-07-31 11:50:23 +00:00
Darkvater
f3cce610c8
(svn r5668) - Backport from trunk (r5454):
...
Helicopters stopping in depot after autorenew/autoreplace
2006-07-31 11:29:18 +00:00
Darkvater
5c30032fe5
(svn r5666) - Backport from trunk (Webtranslator2):
...
Language changes. Galician has 28 untranslated strings.
2006-07-30 23:43:47 +00:00
tron
6708e181eb
(svn r5499) Fix a case of an uninitialised variable in r5368 which caused some graphical glitches at foundations (wrong foundation borders, flickering)
...
This problem only exists in the backport
2006-07-15 09:21:29 +00:00
truelight
d81a7bf904
(svn r5498) -Fix: in r4677, Darkvater ported patch r4508 from trunk wrongly into the 0.4 branch. Because of that stations no longer delivered goods to industries if they were more then 2 tiles away, instead of the allowed station_spread * 2.
2006-07-14 18:45:31 +00:00
truelight
9c95e99871
(svn r5492) -Backport (r5491) -Fix: [ #9 ] MorphOS crashed when you go a level up on root level (tokai)
2006-07-13 18:20:51 +00:00
truelight
8ecd975951
(svn r5490) -Backport (r5489) -Fix: corrected tokai's name and morphos details (tokai)
2006-07-13 17:58:55 +00:00
truelight
955d4393e0
(svn r5488) -Backport (r5487) -Fix: [ #8 ] UDP sockets were used even if network-availability was set to false (tokai)
2006-07-13 17:54:57 +00:00
bjarni
f0ba57ea82
(svn r5440) -Backport: rev 5428 -Fix: [vehicles] sovled crash when trying to build a vehicle type, that is set to max 0 (spotted by roboman)
2006-07-01 10:46:50 +00:00
bjarni
ebae6200c0
(svn r5439) -Backport [OSX] rev 5438 -Code cleanup [OSX] removed UNIVERSAL_BINARY as a phony target since the target is long gone. Also corrected BUILD_OSX_BUNDLE as phony target
...
also corrected two $(BUILD_OSX_BUNDLE) to BUILD_OSX_BUNDLE, so the bundle will always build
2006-07-01 10:44:32 +00:00
peter1138
47fc5a070b
(svn r5424) - Correct typo in the date of the man file
2006-06-29 05:54:16 +00:00
Darkvater
a22933719b
(svn r5414) Also update the readme file to 0.4.8
2006-06-28 23:04:03 +00:00
Darkvater
5fe523dfcd
(svn r5410) - Prepare 0.4 branch for release. Update readme's, bugs, installers and makefile, changelog, etc. to 0.4.8
2006-06-28 21:28:58 +00:00
Darkvater
514eee8067
(svn r5408) - Backport from trunk (Webtranslator2):
...
Language changes. Galician, Icelandic seems to have lazy translators..
2006-06-28 20:09:32 +00:00
Darkvater
3ed386c180
(svn r5407) - Backport from trunk (r5397):
...
Redraw the screen when switching the signal side
2006-06-28 20:05:02 +00:00
tron
22df8a8d6b
(svn r5369) -Backport: 5363, 5364, 5365
...
-Fix: It was possible to dig into a tunnel if certain rail combinations were ontop of it
2006-06-26 15:59:58 +00:00
tron
a2fc417d86
(svn r5368) -Backport: 5351, 5352
...
-Fix: Several graphical glitches at adjacent tiles with foundations. Some borders were missing, some were superfluous
-Fix: Return accurate slope information for tunnels and bridges to fix several foundation graphics glitches
2006-06-26 15:00:23 +00:00
tron
339160760b
(svn r5367) -Backport: 5348
...
-Fix: A HQ could only be flooded at its northern tile, the other 3 were immune to water
2006-06-26 14:58:41 +00:00
tron
93713354a2
(svn r5356) Move the inclusion of slope.h to reduce diff to trunk
2006-06-25 09:07:49 +00:00
tron
e3e64430d7
(svn r5350) -Backport: r5327
...
Use DrawFoundation() for houses
-Fix: Some graphical glitches on house tiles with foundations
-Fix: The selection cursor is now aligned with the top of the foundation for house tiles
2006-06-24 09:48:51 +00:00
tron
20b5c17faa
(svn r5349) -Backport: r5315
...
-Fix: Prohibit altering a road tile while road works are in progress
This fixes some glitches like "turning" the excavation by adding/removing road bits or removing the road piece
2006-06-24 09:12:15 +00:00
tron
f0fd9921a2
(svn r5331) -Backport: r5294
...
-Fix: Plug a memory leak
2006-06-21 19:39:54 +00:00
tron
47a1e50406
(svn r5330) -Backport: r5292, r5293, r5295, r5297
...
-Fix: When using SIOCGIFCONF to detect network interfaces accomodate for the fact that struct sockaddr doesn't have fixed size in all implementations
-Fix: Not all network interfaces are capable of broadcasting. Don't record those which aren't
-Fix: Not all networks are /24. Generate proper broadcast addresses for non-/24 nets
2006-06-21 19:39:23 +00:00
tron
c96daf6230
(svn r5329) -Backport: r5291
...
-Fix: '-f' switch is not valid on windows, so don't show it in help
2006-06-21 19:35:50 +00:00
Darkvater
257ba823a0
(svn r5290) - Backport from trunk (r's and lots of it):
...
Language changes. Galician (29 missing) and Icelandic (20 missing) are bad off.
Norwegian, Brazilian-Portugese (2 missing) and Slovak (1 missing).
2006-06-16 19:43:39 +00:00
Darkvater
7fd164deba
(svn r5289) - Backport from trunk (r5175, r5176):
...
Autoreplaced trains can leave all wagons in depot under certain circumstances
2006-06-16 18:59:26 +00:00
tron
73dab80259
(svn r5284) -Backport: r5264
...
-Fix: The wrong IP could get unbanned, e.g. 'unban 1.2.3.42' could result in unbanning 1.2.3.4
2006-06-15 16:47:13 +00:00
tron
91fc18dcdc
(svn r5283) -Backport: r5260
...
-Fix: It was possible to convert the railtype of a bridge while a train was on it
2006-06-15 16:45:29 +00:00
tron
6d4c3f9636
(svn r5282) -Backport: r5226
...
-Fix: It was possible to rename signs or waypoints with the chat box
2006-06-15 15:25:18 +00:00
tron
d070a97f7a
(svn r5281) -Backport: r5124
...
-Fix: Be more strict what it means for an aircraft to be in a hangar: It's not just being stopped on a hangar tile
2006-06-15 14:45:03 +00:00
tron
a8d2aa157a
(svn r5280) -Backport: r5119
...
-Fix: If a road vehicle is on a road depot tile and stopped doesn't mean it's in the depot. Use the proper test for this
2006-06-15 14:34:31 +00:00
tron
af0354ad24
(svn r5279) -Backport: r4116
...
-Fix: The AI should send a plane into a hangar if it's not in a hangar _or_ not stopped, not when it's not in a hangar _and_ not stopped
2006-06-15 14:16:57 +00:00
tron
12a68cc7c3
(svn r5115) Move helper functions to where they belong
2006-06-05 08:30:58 +00:00
Darkvater
45ea5388fe
(svn r5110) - Backport from trunk (r's and lots of it):
...
Language changes. Galician (67 missing!) and Icelandic (20 missing) are bad off.
Spanish, Norwegian, Brazilian-Portugese (2 missing) and Slovak (1 missing).
2006-06-04 22:34:52 +00:00
Darkvater
1be4771689
(svn r5109) - Backport from trunk (r5097):
...
The trolly AI used information from the wrong industry when calculating the
amount of to be transported goods
2006-06-04 22:03:58 +00:00
Darkvater
590cd1d07b
(svn r5108) - Backport from trunk (r5092):
...
There was a gross race condition in the AI code which made it pretty random
if the AI could give a new vehicle its orders
2006-06-04 22:02:51 +00:00
Darkvater
4f27e53d17
(svn r5107) - Backport from trunk (r5085, r5088):
...
Add parentheses to CHANCE16*() macro parameters
2006-06-04 21:58:48 +00:00
Darkvater
f026c645e3
(svn r5106) - Backport from trunk (r4964):
...
Fix NTP over bridges: don't check the rail type when on a bridge
2006-06-04 21:40:21 +00:00
Darkvater
00f2b3e713
(svn r5102) - Backport from trunk (r4753):
...
Truncate text in dropdown lists to stop text overflowing.
2006-06-04 17:25:00 +00:00
peter1138
ca175e873f
(svn r5072) - Backport from trunk (r5071):
...
- Fix (FS#184): "Erroneous train reversal on waypoints". When processing the next train order, do not even consider reversing the train if the last order was to a waypoint.
2006-06-02 13:23:22 +00:00
Darkvater
86e4f20be8
(svn r4947) - Fix [FS#145]: Starting scenarios did not adhere to local difficulty settings
2006-05-22 16:44:16 +00:00
Darkvater
d24165ea71
(svn r4932) - Codechange: (r4931): move GetTileMaxZ to tile.[ch] instead of lingering it in tunnelbridge_cmd.c. Might be needed some day for some other backport commit (Tron).
2006-05-20 20:56:31 +00:00
Darkvater
c2e9eb7d7b
(svn r4931) - Backport from trunk (r4766):
...
Vehicles on a sloped tile under a bridge were affected by the bridge speed limit
2006-05-20 20:16:08 +00:00
Darkvater
ec9870a611
(svn r4930) - Backport from trunk (r4859):
...
Fix issue with train pathfinding over level crossings.
2006-05-20 18:43:59 +00:00
Darkvater
1f9a69bc89
(svn r4929) - Backport from trunk (r's and lots of it):
...
Language changes. It seems no strings are missing, good job translators :D
2006-05-20 18:41:11 +00:00
Darkvater
a707c043fc
(svn r4926) - Backport from trunk (r4914):
...
Aircraft can now serve as feeders
2006-05-20 17:36:06 +00:00
Darkvater
587cedc35b
(svn r4925) - Backport from trunk (r4911):
...
The AI no longer attempts to build signals under bridges.
2006-05-20 17:35:11 +00:00
Darkvater
f5e0e18dca
(svn r4924) - Backport from trunk (r4906):
...
Refresh build vehicle window (if opened) when converting rail depot
2006-05-20 17:33:36 +00:00
Darkvater
5c8bd4b143
(svn r4923) - Backport from trunk (r4892):
...
Crash when sorting an empty server list.
2006-05-20 17:22:32 +00:00
Darkvater
d1ca343504
(svn r4922) - Backport from trunk (r4827):
...
The build-tree window button defaulted to a place-push-button on opening where
no treetype is selected.
2006-05-20 17:14:54 +00:00
Darkvater
a27b563c40
(svn r4921) - Backport from trunk (r4825, r4826, r4829):
...
Game crashes when cloning/autoreplace reaches train-limit
2006-05-20 17:11:09 +00:00
Darkvater
f6e8773297
(svn r4919) - Backport from trunk (r4812, r4008, r4110):
...
NTP properly checks for railtypes on non-plain-rail-tiles
2006-05-20 15:54:46 +00:00
Darkvater
0f012198c4
(svn r4894) - Backport from trunk (r4750):
...
Trains could enter certain sloped rail tiles under bridges with incompatible rail type
2006-05-16 22:11:15 +00:00
Darkvater
d27bedce36
(svn r4893) - Fix (FS#57): Disable NPF totally for ships as it wholly kills performance (blathijs). Only for 0.4/ branch and 0.4.8.
2006-05-16 21:38:41 +00:00
Darkvater
8892c1d1de
(svn r4731) - Backport from trunk (r4203):
...
Fix: compile on older mingw32 versions (3.1.0)
2006-05-03 21:57:09 +00:00
Darkvater
660d991cc1
(svn r4730) - Backport from trunk (r4690):
...
Fix (r4668, br4301): Editing a too long string in the editbox resulted in improper strings
Update about box with Mihamix's real name
2006-05-03 21:40:45 +00:00
Darkvater
63a1bc7ee7
(svn r4728) - Backport from trunk (r4689):
...
Codechange: correct parameter order or calloc, and use the sizeof
the variable rather than a struct
2006-05-03 21:35:10 +00:00
Darkvater
2aba4c3354
(svn r4727) - Backport from trunk (r4688):
...
Fix: Ensure the map memory is cleared after it is allocated. This fixes
random deserts that sometimes occurred.
2006-05-03 21:34:07 +00:00
Darkvater
4021f48c58
(svn r4726) - Backport from trunk (r4373, r4374, r4402):
...
Fix: Some weird behaviour with tile selection near bridges
2006-05-03 21:28:48 +00:00
Darkvater
ca6ccf035f
(svn r4718) - Backport from trunk (r4715):
...
Fix: Don't allow PF to enter train depot from the back (signal updates)
2006-05-03 20:25:10 +00:00
Darkvater
f2143b3d9b
(svn r4717) - Backport from trunk (r4466):
...
Fix: Game no longer crashes when the last vehicle serving a station has been
deleted. This is not exactly the same fix as in trunk/ where it might still
accept types of invalid types but it doesn't crash anymore. The true fix is
not possible without a savegame bump.
2006-05-03 20:09:28 +00:00
Darkvater
9c97eb32ba
(svn r4701) - Backport from trunk (r4520):
...
Fix: Reset the last built railtype when starting a new game
2006-05-02 21:19:48 +00:00
Darkvater
f9fc273d2a
(svn r4695) - Backport language changes from trunk up to r4592.
2006-05-02 19:52:56 +00:00
Darkvater
343fdd71ef
(svn r4687) - Backport from trunk (r4674):
...
Codechange: use correct parameter order for allocating sound file memory
2006-05-02 14:14:04 +00:00
Darkvater
3d8b1c4fec
(svn r4686) - Backport from trunk (r4639):
...
Feature: Turksih town names (Turkish is in the lang/ folder, so
town names are appropiate)
2006-05-02 14:12:19 +00:00
Darkvater
00c45347fd
(svn r4685) - Backport from trunk (r4599):
...
Fix: Cloned vehicles get the same service interval as the original vehicle
2006-05-02 14:06:15 +00:00
Darkvater
6fc56409e6
(svn r4684) - Backport from trunk (r4591):
...
Fix: Game no longer errors out when "Many random towns" is selected
in the scenario editor.
2006-05-02 14:02:23 +00:00
Darkvater
8e4cf4d599
(svn r4683) - Backport from trunk (r4586):
...
Codechange: Recursive commands that rely on _error_message to handle
success/failure can fail if a recursive call fails but doesn't set the
error message, thus resulting in an old, possibly erroneous being used
2006-05-02 14:00:26 +00:00
Darkvater
52d25fe06f
(svn r4682) - Backport from trunk (r4585, r4950):
...
Fix: Obscure road dragging bug. The road build command did not
return the appropiate error message of invalid-slope when building road.
2006-05-02 13:58:43 +00:00
Darkvater
17b691188d
(svn r4681) - Backport from trunk (r4576):
...
Fix : Temperate bank will no longer appear (during game) in
tropic landscape. This bug is from the original game.
2006-05-02 13:50:30 +00:00
Darkvater
ec18908c82
(svn r4680) - Backport from trunk (r4560):
...
Fix: Remove VS2005 undefined vsnprintf() as it doesn't exist
in the windows libraries (only _vsnprintf). This caused the bad
function to be called that could result in non-properly terminated
strings
2006-05-02 13:48:33 +00:00
Darkvater
271af9fbfc
(svn r4679) - Backport from trunk (r4521):
...
Fix: be consistent about the size of the player-name in MP. This
hopefully fixes a crash on lesser OS's (eg Win98)
2006-05-02 13:47:00 +00:00
Darkvater
ba6fcc84c8
(svn r4678) - Backport from trunk (r4518, r4558):
...
Fix: specify the 'stopall' console command as a debug command.
2006-05-02 13:44:41 +00:00
Darkvater
a8ddd50157
(svn r4677) - Backport from trunk (r4508):
...
Fix: Fixed a problem that caused DeliverGoodsToIndustry to not work
as intended
2006-05-02 13:42:33 +00:00
Darkvater
dcfd3acc8f
(svn r4676) - Backport from trunk (r4505):
...
Fix: Ships can now be used to set up feeders as well.
2006-05-02 13:37:36 +00:00
Darkvater
d5bcaec677
(svn r4675) - Backport from trunk (r4501):
...
Fix: When, in a train that has multiple engines in front, the _first_
of those engines is sold, all the orders are copied to the second
engine (to ensure "seamless" operation). The next_shared/prev_shared
pointers where not updated correctly during this operation.
2006-05-02 13:36:38 +00:00
Darkvater
a336c7cd0c
(svn r4673) - Backport from trunk (r4468):
...
Correct declaration of NORETURN for gcc
2006-05-02 13:30:13 +00:00
Darkvater
a343d86500
(svn r4672) - Backport from trunk (r4467):
...
New plantations now cause the correct ".. being planted .." news item
2006-05-02 13:29:06 +00:00
Darkvater
61370f9e14
(svn r4671) - Backport from trunk (r4445):
...
Danish town names were saved/loaded as Swiss (previous in the list)
2006-05-02 13:27:19 +00:00
Darkvater
f7228e0b3a
(svn r4670) - Backport from trunk (r4435):
...
In CmdRemoveRoad tiletype was not checked for ownership (heavily edited)
2006-05-02 13:25:03 +00:00
Darkvater
eb703a5768
(svn r4669) - Backport from trunk (r4343):
...
[Autoreplace] Fix drawing of train list for outdated engines.
2006-05-02 13:11:00 +00:00
Darkvater
f0e3fa29e5
(svn r4668) - Backport from trunk (r4301):
...
Fix: the maxlength parameter of Textbuf is supposed to be the siz
of the buffer (so length of string + '\0'), but in the code it
was a mix of both.
2006-05-02 13:07:23 +00:00
Darkvater
aba21dd563
(svn r4667) - Backport from trunk (r4291):
...
Fix: validate all received strings for correctness. This fixes
potential crashes on hacked clients/servers
2006-05-02 13:00:07 +00:00
Darkvater
f8eb72e188
(svn r4666) - Backport from trunk (r4267):
...
Validate the error number that a client receives from a server, and
encapsulate this functionality into GetNetworkErrorMsg()
2006-05-02 12:58:13 +00:00
Darkvater
f9a2d113ab
(svn r4665) - Backport from trunk (r4241, r4243):
...
Fix: Perform validation on the error number that a server receives
from a client. An invalid value may cause the server to terminate.
2006-05-02 12:54:23 +00:00
Darkvater
f26027da17
(svn r4664) - Backport from trunk (r4228):
...
Fix: [autoreplace] allow replacement of wagons even when the
engine fails to be replaced
2006-05-02 12:52:09 +00:00
Darkvater
a32fdb390f
(svn r4663) - Backport from trunk (r4195):
...
Codechange: Initialize order variables to avoid a compiler warning.
2006-05-02 12:47:51 +00:00
Darkvater
8bfb955d4b
(svn r4662) - Backport from trunk (r4192):
...
Fix: In the depot, moving wagons from the end of a very long train
to a short train where the short train was scrolled off the window
would cause a game crash.
2006-05-02 12:44:55 +00:00
Darkvater
3a3a1da4e7
(svn r4661) - Backport from trunk (r3865-r3867, r3869, r3870, r3873, r3894, r4059, r4064-r4066, r4217):
...
Add: a fully optional configure script, that is a wrapper
around makefile.config
2006-05-02 12:42:21 +00:00
Darkvater
ec47441ce4
(svn r4660) - Backport from trunk (r4183, r4197, r4217):
...
Codechange: [Makefile]: removed MANUAL_CONFIG as it's not used anymore
This should hopefully fix the issue where WITH_SDL can be defined while
SDL_CONFIG is not. Added an error if WITH_SDL is defined but SDL_CONFIG
is not.
Replace the dash of SDL_CONFIG/LIBPNG_CONFIG with an underscore
2006-05-02 12:28:35 +00:00
Darkvater
39ebb55b9b
(svn r4659) - Backport from trunk (r4158):
...
Fix: [autoreplace] cost for refitting the new vehicle is now
added to the cost animation. The player always paid for it, but
it was not displayed until now
2006-05-02 12:17:16 +00:00
bjarni
c59beffe6b
(svn r4624) -Backported r4149 from trunk
...
main reason is that it fixes the load/save issue for OSX 10.3.9, but the other stuff in this commit can't be taken as it's a result of the fix
full commit log entry:
-Codechange: [OSX] rewrite of how universal binaries are compiled
Now OSX stores object files in .OSX and instead of making FAT object files, there are one for each architecture
Each architecture got their own targets to make a non-FAT binary and in the end, lipo will merge them into one binary
It's now possible to select which architectures you want to support by defining OTTD_PPC, OTTD_PPC970 (G5) and/or OTTD_i386
All combos are supported. UNIVERSAL_BINARY and TRIPLE_BINARY can still be used even though it's possible to gain the same result by using the new flags
Making a universal build when you already got part of it compiled (say the PPC part), it will reuse it and only compile the i386 part to save time
Note: in some cases when you switch flags, you risk that openttd is not updated. Delete it and try again. The Makefile can't solve this except if it forces linking each time
This fixes: FS#87 universal binary building borked in 0.4.7
Now universal binaries work on OSX 10.3.9 again
Building universal binaries no longer needs to store flags in Makefile.config as the new design makes it possible to figure everything out automatically
2006-04-29 14:38:21 +00:00
celestar
2576164325
(svn r4608) -Backported r4413 from trunk:
...
-Fix: fixed a bug which pushed the client back to the main menu when a
server is in the mainserver-list which sends out illegal signals. Many
tnx to 'test' for finding and isolating the problem.
-Fix: also specify the problem a bit better
2006-04-28 07:53:10 +00:00
celestar
bacbe211e7
(svn r4607) -Backported r4389 from trunk:
...
-Fix: [NPF] Don't mark tiles when debugging in multiplayer, this will cause desyncs
2006-04-28 07:51:32 +00:00
celestar
0381a100fa
(svn r4606) -Backported r4341 from trunk:
...
-(FS#101) When a player got bankrupt, slots were not cleared, because vehicles got deleted directly by DeleteVehicle
2006-04-28 07:47:55 +00:00
celestar
6573b46ca3
(svn r4605) -Backported revisions 4304, 4309, 4310, 4312, 4313, 4314 from trunk (chatbox-related stuff)
...
-The chat box' parent window (the main toolbar, wtf?) doesn't care for the WE_ON_EDIT_TEXT_CANCEL event, so don't send one. This code looks like it was mindlessly copy&pasted from the query box
-The initial string of the chat box is always the empty string, so don't jump through hoops to check if nothing was entered and simplify the code
-The chat box has no visible window title, therefore remove the string
-Calculate the maximum pixel width of the entered text in the chat box from the "text box"-widget instead of hardcoding an arbitrary - and wrong - number
-The parent window of the chat box is always the main toolbar (?!), therefore don't pass this information as parameter
-a buffer overflow of the chat box introduced in r1263. Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it
2006-04-28 07:45:44 +00:00
orudge
05b541f63a
(svn r4207) - Fix: Update OS/2 on 0.4 branch, too
2006-03-31 16:19:16 +00:00
Darkvater
8a74170da0
(svn r4117) - Prepare 0.4 branch for release. Update readme's, bugs, installers and makefile, changelog, etc. to 0.4.7
2006-03-26 18:49:31 +00:00
bjarni
a0bf18c3c9
(svn r4104) -Backported 4102: updated OSX docs about triple binary
2006-03-25 08:54:09 +00:00
bjarni
31b226dc9f
(svn r4102) -Backported 3673, 3674, 3675, 3679, 3682, 3882, 3884 [all OSX]
...
added support for G5 (ppc970) optimised code
added support for triple binaries (ppc, ppc970, i386)
updated the makefile to handle building of universal and triple in a more automated way (way less flags to set)
now it's no longer needed to spent minutes setting up flags when releasing. It works out of the box :)
note: even though it looks like it's a lot of commits, it really is that there changes were introduced in small pieces in the trunk
2006-03-25 08:45:30 +00:00
bjarni
b320aa40fa
(svn r4100) -Backported 4082 and 4099
...
the cocoa driver no longer crashes when going to fullscreen (this one depended on the resolution)
teh cocoa driver speedup of around 1000% applies to Intel macs, so the driver is now just as fast as the PPC one
2006-03-25 07:40:02 +00:00
bjarni
37835e9158
(svn r4097) -Backported 4084 properly (included the last line)
...
also added a header that is needed because we didn't backport the new feature, that includes the header in the trunk
2006-03-24 23:33:30 +00:00
bjarni
749a4f8c7d
(svn r4095) -Backport 4060, 4084
...
made the release target for OSX do more work (less manual work when releasing)
updated some OSX documentation
2006-03-24 22:55:16 +00:00
peter1138
e72232dc4c
(svn r4094) - Allow unused wagons have their ->first set. This fixes the faulty
...
cache warning message, and noticably speeds up depot operations in large
games. Backport of r3576 from trunk
2006-03-24 22:36:54 +00:00
matthijs
45a4c69842
(svn r4072) - Backport from trunk (4071):
...
- Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop. Small omission from r4023 (fix by glx)
2006-03-23 17:52:08 +00:00
matthijs
a2c882af6f
(svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
2006-03-22 22:38:29 +00:00
matthijs
bb7c37b515
(svn r4041) [Debian] Change next version number to 0.4.6 instead of 0.4.5.1.
2006-03-22 22:26:16 +00:00
Darkvater
ec54b3ac24
(svn r4040) - Prepare 0.4.5 branch for release. Update readme's, bugs, installers and makefile, changelog, etc. to 0.4.6
2006-03-22 22:25:46 +00:00
bjarni
a9032183df
(svn r4038) -backport (3966, 3972 and 4019) -Fix: [OSX 10.3 and newer] [ 1157244 ] Can't save game if name contains german umlauts (loading savegames with certain chars still look a bit odd)
2006-03-22 21:40:26 +00:00
bjarni
90feff4982
(svn r4037) -backported (3676): updated the install readme for OSX
2006-03-22 21:24:26 +00:00
matthijs
e434485dd8
(svn r4036) * Prepare debian release files for 0.4.5.1 release.
2006-03-22 21:18:33 +00:00
matthijs
dcc4ccf4e9
(svn r4035) - Backport from trunk (4033):
...
- Codechange: [Debian] Update debian packaging files to use debconf for user interaction.
2006-03-22 21:16:31 +00:00
bjarni
ef7e4abf7f
(svn r4034) merged 3618:3971 for video/cocoa_v.m (major speedup for PPC fullscreen fix)
2006-03-22 21:11:05 +00:00
matthijs
5d0ed8fab8
(svn r4032) -Backport from trunk (3507):
...
- Fix: [Makefile] Make sure the ICON_DIR gets created before copying files there.
- Fix: Fix small syntactic error in the manpage.
2006-03-22 21:04:13 +00:00
Darkvater
ed7df6e2bf
(svn r4031) - Backport from trunk (r4030):
...
- [win32] Change compiler settings to use the multithreaded CRT. This prevents
certain crashes on multi-threaded machines.
2006-03-22 20:46:07 +00:00
Darkvater
7cf9e0d8ca
(svn r4029) - Backport from trunk (r4023):
...
Fix: [ 1453646 NPF ] Road vehicles planning through the back of depots and stations.
2006-03-22 20:33:30 +00:00
celestar
85141929a8
(svn r4018) -Backport from trunk (4001:4002):
...
Add length parameter to FiosMakeSavegameName() and use this function for creating the full path instead of home-brewn snprintf.
Use the title of a savegame in the saveload dialog-editbox. This gets rid of the '.sav' appended to each game as well as properly showing UTF-8 saves when this is implemented. Also don't change the text if the save has failed.
2006-03-22 11:26:08 +00:00
celestar
f4d5c1b01b
(svn r4017) -Backport from trunk (3999): Change the order of DestroyWindow and ChangeDisplay. On some machines a sizechange messagequeue is handled before sending WM_DISPLAYCHANGE resulting in an improper resolution written to the configuration file when exiting from fullscreen. (Frostregen)
2006-03-22 11:24:27 +00:00
celestar
31d6286cb4
(svn r4016) -Backport from trunk (3998): When removing rail track from a tile where only X and Y pieces exist, explicitly update signals in both directions.
2006-03-22 11:23:22 +00:00
celestar
ca0a0cdbfd
(svn r4015) -Backport from trunk: Default the patch-setting 'pause_on_join' to true.
2006-03-22 11:17:21 +00:00
celestar
04572ed7fe
(svn r4014) -Backport from trunk: Slope and height information returned for some tile types is wrong
2006-03-22 11:13:20 +00:00
celestar
ebfef9683e
(svn r4013) -Fix last commit. CheckTunnelInWay works differently from IsTunnelInWay :S
2006-03-22 11:11:52 +00:00
celestar
c05d3dd558
(svn r4012) -Backport from trunk (3992, 3995): Rewrote the code to determine whether a rail-tile can be terraformed.
...
Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one)
Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts.
2006-03-22 10:32:07 +00:00
Darkvater
6e029fe97d
(svn r3978) - Change all STRING1's back to STRING in french.txt because these {STRINGn} are only applicable to english.txt. Fixup of r3973. Sorry. Backport of r3977 from trunk
2006-03-19 09:03:25 +00:00
belugas
26ed195319
(svn r3975) Update french translation, adding STRING1 where needed, as well as other omissions.
...
Thanks to Darkvater for this opportunity.
No typo this time
2006-03-19 01:52:05 +00:00
Darkvater
7170357a10
(svn r3970) - FS#56 - [Crash] Missing glyph(s) in big-font. Added several missing glyphs for the big font. Backport of r3940 from trunk
2006-03-18 16:03:55 +00:00
Darkvater
e4bbd3b41c
(svn r3969) - [ 1439907 ] Increase client list window width so at least most languages fit (wikipedian). Backport of r3933 from trunk
2006-03-18 16:03:04 +00:00
Darkvater
5ed5e6beed
(svn r3968) - Update german and finnish languages. Backport of r3932, r3943 from trunk
2006-03-18 16:02:19 +00:00
Darkvater
5de94db9df
(svn r3967) - Fix: Properly set back the owner of a crossing/road-under bridge after removing it. For crossings we can always use .m2 because it is already 0 when not owned by a town. Backport of r3876, r3893 from trunk
2006-03-18 16:00:02 +00:00
Darkvater
6b664a3ba0
(svn r3965) - [win32] Remove mapfile generation and generate a pdb file instead. This and the corresponding executable is enough to trace the source of a crash given by crash.txt by using WinDbg for example. Mapfiles are a bit deprecated in the newer VS environments.
...
- [win32] Show the revision in crash.txt and enable the button to show the crash text in the crash-window
- Backport of r3871, r3872 from trunk
2006-03-18 15:51:04 +00:00
Darkvater
beee5698f9
(svn r3964) -Fix: [autoreplace]: (FS#67) autoreplacing trains now keep their tile length instead of their pixel length. Backport of r3811 from trunk
2006-03-18 15:49:00 +00:00
Darkvater
a86ec733a0
(svn r3963) Update debian packaging files to the ones used for releasing 0.4.5 (see os/debian/changelog for details).
...
Fix a small debconf issue which was in the 0.4.5 release. Backport of r3801 from trunk
2006-03-18 15:48:15 +00:00
Darkvater
37c1135d6b
(svn r3962) -Fix: Mark the right tile as dirty. It's just a graphical glitch which happend in r1592. Backport of r3792 from trunk
2006-03-18 15:47:16 +00:00
Darkvater
923dee9bec
(svn r3961) - Fix crash when resizing news history window. Backport of r3778 from trunk
2006-03-18 15:46:09 +00:00
Darkvater
1856976d8e
(svn r3960) -Fix: Correctly implement minimum search, so road vehicles head twoards the closest station, not the last one in the list. Backport of r3751 from trunk
2006-03-18 15:45:23 +00:00
Darkvater
818a5a596f
(svn r3959) -Fix: [FS#61] The tooltips for raising and lowering land buttons in the scenario editor are interchanged (Reported and fixed by lc). Backport of r3749 from trunk
2006-03-18 15:32:38 +00:00
Darkvater
2be4b388ec
(svn r3958) Change HASBIT() to return 0/1 instead of 0/value of tested bit. Backport of r3747 from trunk
2006-03-18 15:31:34 +00:00
Darkvater
300aba48cc
(svn r3957) -Fix: Correctly restore the roadside after roadworks are finished. Backport of r3680 from trunk
2006-03-18 15:29:24 +00:00
Darkvater
f470a87dea
(svn r3956) - Fix: [Multistop] Check the status of the destination road stop instead of a station's first road stop. This only has effect with road vehicle queuing disabled. Backport of r3663, r3681 from trunk
2006-03-18 15:28:26 +00:00
Darkvater
4b938510a5
(svn r3955) - Fix: validate the setting of max_companies/spectators through the console. Backport of r3591, r3593 from trunk
2006-03-18 15:25:25 +00:00
Darkvater
7ddae93da8
(svn r3954) - Explicitly update v->first in TrainConsistChanged() if necessary, as this is far faster than brute forcing it later.
...
- When loading a game, call TrainConsistChanged() for each train head separately before updating images, as v->first is used extensively in GetTrainImage() for custom graphics. This gives a significant speed improvement on loading a game.
- Rewrite GetFreeUnitNumber() so that only one loop of vehicles is required. Instead a list of used/unused numbers is created and the first unused number is chosen. This significantly improves performance in large games.
- Improve game-load times. Backport of r3570-3572 from trunk
2006-03-18 15:22:27 +00:00
Darkvater
f75365fcf4
(svn r3953) - Grr, compile before you commit. Wrong merge of 3529/3553 in r3948
2006-03-18 15:19:30 +00:00
Darkvater
e89a98d296
(svn r3952) - Fix: On loading a game, GetPlayerRailtypes() didn't account for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs. Backport of r3565 from trunk
2006-03-18 15:17:57 +00:00
Darkvater
8157969b2b
(svn r3951) - Restore plural forms of cargo types for several languages. Backport of r3560 from trunk.
2006-03-18 15:16:12 +00:00
Darkvater
b3ccef7045
(svn r3950) - Add directives to allow Visual Studio 2005 compilation. Backport of r3551 from trunk.
2006-03-18 15:14:34 +00:00
Darkvater
af0fb58264
(svn r3949) - Revert r3467, was total nonesense, my fault. Backport of r3532 from trunk
2006-03-18 15:13:35 +00:00
Darkvater
5f2e2ef32a
(svn r3948) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; alignment issues (thanks Tron for the help). Backport of r3529, r3553 from trunk
2006-03-18 15:12:24 +00:00
Darkvater
8353c1260a
(svn r3526) - Codechange: Add additional linker information to release builds to help figure out crashes more easily
2006-02-03 17:24:37 +00:00
Darkvater
8de919ce50
(svn r3519) - [0.4.5-Branch] backport changes from abused tags/ (nothing important)
2006-02-01 22:02:47 +00:00
Darkvater
f9cacc9f5c
(svn r3518) - Add proper revision numbers for bugfixing branch
2006-02-01 21:53:12 +00:00
Darkvater
af3ac4954a
(svn r3517) - Branch: added branch for stable 0.4.5
2006-02-01 21:47:10 +00:00
Darkvater
0993ff118c
(svn r3505) - Update known-bugs and delete scenarios from SVN.
2006-01-31 23:38:58 +00:00
Darkvater
024db8d058
(svn r3502) - Update appropiate files with release information for 0.4.5
2006-01-31 22:26:00 +00:00
Darkvater
896551850a
(svn r3501) - Load the lobby-window with up-to-date data upon opening
2006-01-31 22:24:02 +00:00
Darkvater
f2448ebfd4
(svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking.
2006-01-31 22:16:15 +00:00
Darkvater
9d07426a29
(svn r3499) - Fix: a few gui glitches in the network window:
...
1. disable widgets also when the active companies/spectators is bigger than the max.
This can happen if the server has changed the settings.
2. updated scroll-count in the lobby as the window is higher.
2006-01-31 20:05:44 +00:00
tron
4e2bb34be3
(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8
2006-01-31 19:06:02 +00:00
Darkvater
0f535026cf
(svn r3497) - Update some more language files (thanks ln- (finnish), egladil (swedish))
2006-01-31 18:31:05 +00:00
peter1138
9fd6b1009e
(svn r3496) - Validate filename titles before they get displayed. This avoids crashes with UTF-8 encoded or bad filenames by replacing undisplayable characters with a '?'
2006-01-31 12:08:49 +00:00
tron
822afdcecd
(svn r3495) Rename the string handles for cargo names with a quantity and abbreviated cargo names to something sensible, i.e. STR_QUANTITY_$NAME and STR_ABBREV_$NAME
2006-01-31 06:53:32 +00:00
Darkvater
58f5dbd365
(svn r3494) - Update several languages. Thanks all translators online atm (Bjarni, glx, MeusH, Tron, me, my sister)
...
- Remove the most blatant of untranslated or wrongly-outdated strings.
2006-01-30 22:36:35 +00:00
bjarni
a092ee463f
(svn r3493) -docs: [OSX] forgot to add Cocoa drivers and universal binaries as supported (thanks to Tobin for noticing)
2006-01-30 19:31:02 +00:00
bjarni
e2df07ec05
(svn r3492) -docs: [OSX] Updated readme regarding compiling universal binaries
2006-01-30 19:17:48 +00:00
peter1138
e2dda7bce6
(svn r3491) - NewGRF Fix: Handle loading of rail vehicle flags (unimplemented)
2006-01-30 18:42:46 +00:00
tron
5e1e902600
(svn r3490) -Fix: A bunch (10) of off-by-one errors when checking if a TileIndex points to a tile on the map
2006-01-30 17:18:45 +00:00
tron
c8dd64bdbc
(svn r3489) Remove an unused declaration
2006-01-30 16:58:05 +00:00
tron
7d03773383
(svn r3488) Simplify the check in r3419
2006-01-30 16:57:47 +00:00
tron
2f668b8669
(svn r3487) -Fix: Price for demolishing a bridge was dependent on orientation and map size
2006-01-30 16:48:24 +00:00
peter1138
876813cd9d
(svn r3486) - NewGRF fix: Always reinitialize the ttdpatch flags as patch settings may have changed.
2006-01-30 14:50:55 +00:00
Darkvater
61a7b45dd9
(svn r3485) - [Post-PBS]: when reverting PBS and removing station-tile reservations a station can of course not be a crossing as well. Thanks glx.
2006-01-30 14:03:34 +00:00
bjarni
8c7e594b08
(svn r3484) -fix: fixed issue in last commit where loading savegame versions 18 and 19 didn't init the multiheaded engine pointers
2006-01-29 23:04:51 +00:00
truelight
b7beb3d87d
(svn r3483) -Fix: fixed warning about setjmp (tnx Bjarni for testing, and tnx for
...
taking the effort to commit it)
2006-01-29 22:42:17 +00:00
Darkvater
e6d16d17dc
(svn r3482) - Fix: since multiheaded links are not saved anymore do NOT save them anymore at all, return the extra space. Since Bjarni's fix for this was abominable, the weird situation arises of 2 NULL structs of free space, of which the first isn't usable.
2006-01-29 22:40:51 +00:00
Darkvater
f3b0de85bf
(svn r3481) - Try and fix an svn discrepancy of trolly.h #2
2006-01-29 21:38:24 +00:00
Darkvater
b2fac2e99f
(svn r3480) - Try and fix an svn discrepancy of trolly.h
2006-01-29 21:37:39 +00:00
truelight
f7603ba3ac
(svn r3479) -Fix: fixed warnings on 64bit platforms (anyway, most 64bit platforms)
...
(tnx to qball and DarkVater for testing)
2006-01-29 20:32:30 +00:00
Darkvater
ddfe8f608f
(svn r3478) - Fix: In the network game list do the default sorting on connectivity (so servers which you can join are on top) and sort on names as a second criteria on clients and connectivity.
2006-01-29 20:24:18 +00:00
truelight
8b8ef85ccb
(svn r3477) -Fix: a fix that fixed the last commit.. I shouldn't be committing here :)
2006-01-29 20:06:26 +00:00
truelight
524934bbf6
(svn r3476) -Fix: fixed a warning from the OSX compiler, it is bogus, but oh well
2006-01-29 20:03:50 +00:00
Darkvater
132125de77
(svn r3475) - Fix: you couldn't remove an item from a list-type of config ingame from the configuration file. Whatever you did, upon restart of OpenTTD those items were still there. To fix this we initialize the first item to NULL in SaveList as it is rebuilt anyways fully.
2006-01-29 19:50:01 +00:00
truelight
9d11d11d68
(svn r3474) -Fix: don't use CXXFLAGS for DEP and CFLAGS for Compile, gives funny results ;)
2006-01-29 19:49:15 +00:00
Darkvater
98c62ba8e0
(svn r3473) - [PBS] forgot to delete pbs.[ch]
2006-01-29 19:01:13 +00:00
Darkvater
4e09974975
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
...
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
Darkvater
bb49381cd3
(svn r3470) - Fix: plug a memleak in _network_host_list.
2006-01-29 18:34:43 +00:00
Darkvater
20538e9b40
(svn r3469) - Fix: plug a possible memleak with subsequential strdup's without freeing the previous value and make it possible to ban offline clients
2006-01-29 18:04:52 +00:00
peter1138
2de4331931
(svn r3468) - Fix: Rail type availability should take climate type into account.
2006-01-29 12:52:07 +00:00
Darkvater
5fed533ce8
(svn r3467) - CodeChange: Remove an useless assignment (reads a value and just writes it back)" tree_cmd.c
2006-01-29 10:57:23 +00:00
Darkvater
f4e7d3203a
(svn r3466) - Codechange: Some changes to increase readability of signals code.
2006-01-29 10:50:27 +00:00
peter1138
ff8b3f980f
(svn r3465) - Reduce length of reverse scrolling patch option to make it fit in the window
2006-01-29 09:52:54 +00:00
Darkvater
051c5da378
(svn r3464) - Fix: restate some of the sprites in their old spaces. Was missed out because the patch was so huge. Thanks to Tron for pointing out the command of diff to ignore whitespace-only changes (--diff-cmd diff -x -ub)
2006-01-28 13:43:45 +00:00
Darkvater
0e41c3dc58
(svn r3463) - Fix: it seems estonian/turkish were moved back from unfinished. So update project file and fix their errors
2006-01-28 13:33:02 +00:00
Darkvater
8931913884
(svn r3462) - Fix: a one-off pixel alignment in the minimap window that "overflowed" its panel in the tropical climate (qball should be satisfied now)
2006-01-28 12:23:54 +00:00
Darkvater
a235c72b0d
(svn r3461) - Fix: Increase window-size as for 64-bit machines it wasn't enough
2006-01-28 11:52:20 +00:00
Darkvater
3924b84744
(svn r3460) - Fix: fix language errors and translate some missing string as far as my knowledge of those languages go (thx egladil for swedish)
2006-01-28 11:18:09 +00:00
Darkvater
691c93ee99
(svn r3459) - CodeChange: add help-output to strgen and also verbose variants of the switches
2006-01-28 11:10:52 +00:00
truelight
0bcdd910f9
(svn r3458) -Fix: forgot one instance in last commit
2006-01-28 11:09:16 +00:00
truelight
0d010c97e6
(svn r3457) -Fix: killed some warnings about strict-alias in an ugly way (but it works ;))
2006-01-28 11:08:07 +00:00
matthijs
585b47b6c5
(svn r3456) - Feature: [Makefile] Icons can now be installed in a seperate directory.
2006-01-28 10:16:15 +00:00
matthijs
9c1ad5d610
(svn r3455) * Assert against modifying the outer border of a map into anything but MP_VOID. This might detect a bug that has been there for quite some time, if it hasn't been fixed already.
2006-01-28 09:45:25 +00:00
Darkvater
b3a2f09ae9
(svn r3454) - Fix: company-count was not updated correctly when loading a saved game with already existing companies for multiplayer.
2006-01-28 01:33:57 +00:00
Darkvater
d6933998e4
(svn r3453) - CodeChange: Also show the landinfo debug information when building in release mode; however it is shown at debug level 1.
2006-01-27 17:06:29 +00:00
Darkvater
7e604b72db
(svn r3451) - Fix documentation; PBS bits were missing for bridge
2006-01-27 14:55:43 +00:00
Darkvater
d16dea5859
(svn r3450) - Revert r3448 partly as some mingw's do have uint defined, others don't, so this needs more research
2006-01-27 09:45:44 +00:00
peter1138
571bbc06d7
(svn r3449) - NewGRF Fix: When changing the sprite ID of a vehicle, if it is not FD (custom graphics), the value needs to changed from a 16bit array offset to an array index. (fixes tropicstw.grf)
2006-01-27 07:13:58 +00:00
Darkvater
a6756ccf21
(svn r3448) - Fix: wrap up some MinGW warnings
2006-01-26 22:09:25 +00:00
Darkvater
1a2fac805c
(svn r3447) - CodeChange: [ 1360866 ] station_land.h Naming ALL sprites. Also replaced the SPTR_STATUE_GROUND by the more obvious SPR_CONCRETE_GROUND in unmovable_cmd.c. No functional changes except for commenting out PALETTE_RECOLOR_SPRITE in table/sprites.h. (Belugas)
2006-01-26 19:06:16 +00:00
Darkvater
6fb36934a8
(svn r3446) - Fix: incorrect validating of tree-planting command which can allow a buffer-overflow (Tron)
2006-01-26 18:45:04 +00:00
Darkvater
663b1c6c00
(svn r3445) - Fix: [ 1415379 ] Enhance documentation of lift destination
...
- Fix: wrong documentation of trees (Tron)
2006-01-26 18:36:14 +00:00
peter1138
452ae7470b
(svn r3443) - Fix signed/unsigned comparison warning when compiling with gcc 2.95 (tokai)
2006-01-26 17:43:31 +00:00
Darkvater
c8a2c7ae94
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
2006-01-26 17:32:49 +00:00
Darkvater
070edf2f73
(svn r3441) - Feature: Allow the network game list to be sorted (by name/clients/compatibility ascending/descending)
2006-01-26 17:10:11 +00:00
Darkvater
2612d48550
(svn r3439) - CodeChange: Remove a whole bunch of global variables and put them into the WP() macro. Also combine more than one WP-custom element. For this the maximum size of w->custom (WP) has been increased, and multiple types put inside one with possibly moved to the corresponding gui file if it is only used there.
2006-01-26 16:19:24 +00:00
Darkvater
bc450bbc9a
(svn r3438) - Fix: first request company data, then general. Yes, it should be the other way around, but with the current network code this doesn't work. So workaround (have some nice promise from TrueLight for fixing ;))
2006-01-26 15:55:53 +00:00
Darkvater
fa735869e1
(svn r3435) - Fix a warning, removed unused extern and some comments in network_gamelist.c
2006-01-26 13:01:53 +00:00
Darkvater
8721b05453
(svn r3434) - Correctly update all network information when pressing refresh in the lobby. Also always allow the join button to a server unless all clients are used up (otherwise you can always join an existing company
2006-01-26 12:56:05 +00:00
peter1138
952f246433
(svn r3431) - Fix crash when moving vehicles around in a train depot under certain conditions.
2006-01-25 21:33:57 +00:00
Darkvater
a8758cbf5e
(svn r3430) - You can of course not join when there are more companies than the maximum set, not the other way around.
2006-01-25 19:14:50 +00:00
Darkvater
2b287a9e72
(svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information.
2006-01-25 19:03:50 +00:00
Darkvater
0d80c70b5f
(svn r3428) - Feature: server_info was left out previous commit. Move some commands about a bit for better logical placement
2006-01-25 18:40:12 +00:00
Darkvater
78fa9c7393
(svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
2006-01-25 18:11:06 +00:00
peter1138
42a9353ae2
(svn r3426) - Fix typo from r3019 -- only affected NPF debugging.
2006-01-24 18:38:06 +00:00
Darkvater
a4807caf6a
(svn r3425) - Fix: Followup to r3421. Correctly reset the TileHighLightData structure to prevent crashes in all the other cases where it is not guarded against sufficiently
2006-01-24 18:08:04 +00:00
peter1138
ec7d2fbb39
(svn r3424) - NewGRF fix: Only power should decide whether a rail vehicle is an engine or a wagon. (fixes SHIKI 810 in jpsetw.grf)
2006-01-24 09:33:51 +00:00
peter1138
098300cc7d
(svn r3423) - NewGRF: Update the base_intro age at which an engine will have a randomized intro date, as per (the now updated) spec.
2006-01-24 07:41:28 +00:00
peter1138
0f28e74e3e
(svn r3422) - Fix: If an engine reaches the rear of a depot, make the engine turn around before it reaches the tile end (same as a normal end of line.) This fixes a bug whereby the engine could poke into the depot and crash with another engine just leaving it.
2006-01-23 21:05:05 +00:00
peter1138
70efa805cb
(svn r3421) - Revert r3412 as it didn't work.
...
- Fix station builder issue by checking the tile is in bounds.
2006-01-23 19:12:35 +00:00
peter1138
93082104dd
(svn r3420) - Fix typo made back in r2997...
2006-01-23 17:43:46 +00:00
Darkvater
188352ea3e
(svn r3419) - Fix: [FS#40] (Possible) game crash on removing track/road under bridge. This was caused by a wrong tile-occupancy testing where it was assumed that a vehicle's height is only a multitude of 8 (a single height-difference). This is incorrect as a vehicle on a slope will assume all height levels between the lower-and upper-bounds. The crash is still possible as seen in the Flyspray bugreport but this has a different cause.
2006-01-22 17:17:11 +00:00
peter1138
cc7a9d1ce6
(svn r3418) - Fix: When removing a town-owned tunnel the player's rating was not reduced, as it checked the ownership of the tunnel after clearing it. Now we perform the rating adjustment before clearing the tiles. (spotted by glx)
2006-01-22 16:23:05 +00:00
peter1138
979a8fea86
(svn r3417) - Make company league table window pinnable.
2006-01-22 10:00:04 +00:00
peter1138
128249e63e
(svn r3416) - Fix: Disallow building an oil rig above sea level.
2006-01-22 09:52:20 +00:00
peter1138
a1342c9d52
(svn r3415) - Fix: Disable the clone and refit buttons in the train view when viewing another player's vehicles, or as a spectator. (thanks to UnderBuilder for pointing this out)
2006-01-21 22:09:25 +00:00
peter1138
d13763a9c4
(svn r3414) - Fix: Disable the Fund New Industry menu item and window when connected to a server as a spectator.
2006-01-21 21:45:34 +00:00
peter1138
d22e8c636d
(svn r3413) - Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece.
2006-01-21 20:34:17 +00:00
peter1138
935ab76f0f
(svn r3412) - Fix: When changing game mode, reset the tile highlight data, as it may now be out of bounds. This fixes (at least) an assertion when opening the station builder window.
2006-01-21 19:39:26 +00:00
peter1138
016c498216
(svn r3411) - Fix: When changing the server password via the console, actually set the password as well as flag whether it is required.
2006-01-19 21:29:54 +00:00
peter1138
102f9be296
(svn r3410) - NewGRF fix: Only add a random number of days to an engine's base introduction date if that date is not 0.
2006-01-19 18:33:20 +00:00
peter1138
e78997fdfd
(svn r3409) - Change the server advertisement interval to use the frame counter instead
...
of game days. This allows a paused server to continue to advertise itself.
This also fixes advertising for games that start before 1922.
2006-01-19 17:50:40 +00:00
Darkvater
6971aee967
(svn r3408) - Ok, compile before you commit; sorry (fix previous commit)
2006-01-19 16:12:24 +00:00
Darkvater
a292621b14
(svn r3407) - Feature: Kick and ban now with IP numbers.
2006-01-19 15:58:57 +00:00
peter1138
26226f1d43
(svn r3406) - Update year in copyright text
2006-01-19 08:10:11 +00:00
Darkvater
d161a8a330
(svn r3405) - Feature: Make subsidies window pinnable. Don't ask me why this wasn't included in the first round of pinning.
2006-01-18 18:12:49 +00:00
peter1138
27954279d6
(svn r3404) - Add missing svn properties.
2006-01-18 15:43:21 +00:00
bjarni
e35a131153
(svn r3403) -Codechange: [multiheaded engines] the references between the front and rear engines are no longer saved
...
instead the pointers are generated on load
2006-01-18 15:05:01 +00:00
bjarni
b87b5f1187
(svn r3402) -Fix: [building/cloning] added a string telling if build failed due to not being able to build a vehicle. Triggered when cloning a retired design
2006-01-18 14:12:26 +00:00
tron
8403f2bd33
(svn r3401) (Hopefully) fix some inaccuracies
2006-01-16 15:23:06 +00:00
tron
887ad00dff
(svn r3400) Convert the bit patterns to big endian notation
2006-01-15 10:46:36 +00:00
tron
5988069372
(svn r3399) Simplify markup
2006-01-15 10:26:07 +00:00
tron
f1b53b113f
(svn r3398) Remove TTDp nomenclature
2006-01-15 09:17:01 +00:00
peter1138
2a746ffa2d
(svn r3397) - NewGRF fix: Show nfo sprite number instead of current sprite id for warning messages -- this makes this output more useful...
2006-01-13 18:40:39 +00:00
peter1138
90aff7a026
(svn r3396) - Autoreplace changes:
...
- Change fixed array per player to a single pool. This avoids future problems
with vehicle numbers and decreases savegame size. Engine replacements from
previous savegames will be lost.
- Move engine replacement code from players.c to engine.c.
(thanks to blathijs for rewriting this)
2006-01-12 15:52:18 +00:00
peter1138
28ca056d56
(svn r3395) Add Id tag (and svn property) to macosx files.
2006-01-12 11:20:41 +00:00
peter1138
2067b2e7b4
(svn r3394) - NewGRF fix: ignore non-climate dependent cargo types. The spec is rather vague on this, but we don't support newcargos anyway.
2006-01-12 07:57:40 +00:00
bjarni
be288e4d1b
(svn r3393) -Fix: [OSX] some keyboards had a different scancode for opening the console (egladil)
2006-01-09 21:14:56 +00:00
peter1138
7c5a58bbad
(svn r3392) Train depot fixes:
...
- Only count the parts from the source train that will be moved, not the whole train.
- Don't count articulated parts of an engine. This alleviates issues with autoreplacing very long trains.
2006-01-08 16:56:41 +00:00
peter1138
019e794234
(svn r3391) - PBS Fix: Keep PBS reservation state when building a bridge over rail.
2006-01-08 12:44:11 +00:00
bjarni
4bf1741783
(svn r3390) -Fix: [autoreplace] fixed issue where autoreplace failed to attach the cars if the front engine was replaced
...
and the front engine was multiheaded and the first vehicle after it was the rear part of that engine
2006-01-08 12:20:13 +00:00
tron
de34ab97a2
(svn r3389) -Fix: No fence was placed when placing fences and the neighbouring tile is a rail configuration which permits a fence but has a signal
...
(Per request of peter1138 the above line does not contain any commas)
2006-01-07 17:26:37 +00:00
peter1138
e81c316134
(svn r3388) - NewGRF: Allow train running cost class to differ from engine class. Also fix typo in r3384.
2006-01-07 16:47:59 +00:00
tron
18de531671
(svn r3387) Restructure the code, which places fences along railroad tracks.
...
This includes no functional changes, just some cleanup before some bugfix
2006-01-07 16:30:49 +00:00
peter1138
793a0099d4
(svn r3386) - NewGRF: Small comment update, and fix for possible issue with engine class not getting set.
2006-01-07 13:26:52 +00:00
bjarni
c86e6e008d
(svn r3385) -Fix: [OSX] fixed endian issue in cocoa sound driver. Now it works correctly on x86 too (hopefully)
2006-01-07 13:21:04 +00:00
peter1138
473b3072ea
(svn r3384) - NewGRF fix: running cost should be halved for dual head vehicles.
2006-01-07 13:20:02 +00:00
bjarni
1cfabfbb09
(svn r3383) -Code cleanup: [OSX] removed SDL support from FAT binaries as it caused problems for non-SDL builds
...
FAT binaries now need to rely on COCOA drivers. SDL didn't work properly anyway
2006-01-07 13:13:49 +00:00
bjarni
015db8a461
(svn r3382) -Feature: [OSX] added the flag JAGUAR to crosscompile for OSX 10.2.8 on 10.4
2006-01-07 12:53:57 +00:00
truelight
e8c871a603
(svn r3381) -Fix: r3374 left one bug: allow moving around wagons in a 100 long train
2006-01-07 10:57:32 +00:00
truelight
e373bd02ba
(svn r3380) -Fix: removed 'size' from r3379, because it was pretty silly
...
-Note: no longer showhelp publish -p, as it is deprecated
2006-01-07 10:15:46 +00:00
truelight
835cd6ea28
(svn r3379) -Fix: protect showhelp against any possible overflow
...
-Add: [ FS#15 ] Added revision / version at top of help (./openttd -h)
2006-01-06 22:52:31 +00:00
peter1138
79ce0def50
(svn r3378) - NewGRF Fix: Use order status to determine whether a vehicle is loading instead
...
of speed, and get that state from first vehicle in a train consist.
2006-01-06 22:49:00 +00:00
truelight
4cda74cb31
(svn r3377) -Fix: [ FS#24 ] Min. profit in detail performance rating gave you full points if you had no vehicles, and was limited to 20k. Solved both. (Partly based on Graphite his patch)
2006-01-06 22:16:17 +00:00
truelight
efd3d42107
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
...
-Fix: [ FS#30 ] don't reset date in SE when pressing RandomLand (rewrote patch of MeusH, but Peter warned me I should put his name in, so... oh well)
2006-01-06 21:57:37 +00:00
truelight
10a2787fd5
(svn r3375) -Add: [ FS#29 ] show an error dialog for OSX cocoa driver (egladil)
2006-01-06 21:27:44 +00:00
truelight
b542f784f9
(svn r3374) -Fix: [ FS#36 ] Don't allow trains to get bigger than 100 via drag and drop
2006-01-06 21:10:58 +00:00
truelight
54501dc6df
(svn r3373) -Fix: don't link a wagon to itself, which resulted in a wagon disapearing, and a depot which was unable to remove
2006-01-06 18:26:02 +00:00
peter1138
183f6f6d07
(svn r3372) - Fix: update signal states when building or removing rail station blocks
2006-01-06 17:45:43 +00:00
truelight
b23ffe4045
(svn r3371) -Fix: don't allow road-vehicles to perform an out-of-bound operation while overtaking in a curve (tnx to guru3, Tron and peter1138)
...
-Codechange: while at that, removed a local variable (more pretty :))
2006-01-06 17:25:39 +00:00
peter1138
71fb252a8a
(svn r3370) Improve alignment of text within total cargo tab of train view window
2006-01-06 09:50:43 +00:00
matthijs
08a3e346cd
(svn r3369) - Codechange: Replace tables _signals_table, _signals_table_other and _signals_table_both by the equivalent calls to rail.h functions.
...
- Codechange: Add a few constants.
2006-01-06 00:08:00 +00:00
tron
72b70fa042
(svn r3368) Fix the same type of off-by-one error when checking, if the passed coordinate is on the map, like in r3357, but this time in DoCommandP - *cough* code duplication *cough*
2006-01-05 21:50:09 +00:00
tron
af70b49bf7
(svn r3367) Unify the 4 distinct CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command.
...
As side effect this is a
-Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle - which of course failed for non-trains
2006-01-05 21:35:54 +00:00
tron
5ac1a89f92
(svn r3366) Make an unnecessarily global variable local
2006-01-05 16:51:10 +00:00
tron
e272b03fee
(svn r3365) Staticise 36 functions
2006-01-05 12:40:50 +00:00
tron
980e8f525b
(svn r3364) Remove 3 unused functions (ScrollWindowToTile, AllocateWindowAutoPlace, AllocateWindowAutoPlace2)
2006-01-05 12:00:38 +00:00
truelight
1d88dfd460
(svn r3363) -Fix: 'fixed' the transfer problem. This doesn't really fix it, but gives a bit more fair amount of money. Can only be fixed correctly with CargoPackets as suggested in branch.
2006-01-05 11:18:58 +00:00
peter1138
4b464093e7
(svn r3362) Fix issue with loading old (TTD) savegames:
...
- move call to convert from old to new train subtypes.
- ensure AI is started for AI players.
2006-01-04 20:18:39 +00:00
peter1138
911a8aa08d
(svn r3361) - Clone Vehicle: Disallow cloning of crashed rail vehicles after starting removal process.
2006-01-04 16:53:00 +00:00
peter1138
f55153ce3c
(svn r3360) Fix initialization of engines for precalculation of default refit mask.
2006-01-02 22:40:39 +00:00
peter1138
eeeebf9f6d
(svn r3359) - Autoreplace GUI: When starting or stopping a replacement, redraw the replace window after the command has completed, rather than after calling the command.
2006-01-02 19:55:09 +00:00
tron
5353d05865
(svn r3358) Remove another piece of unused code
2005-12-30 22:09:01 +00:00
tron
608e9a7203
(svn r3357) Fix an off-by-one error in checking if a coordinate passed to a command is on the map
2005-12-30 14:28:32 +00:00
peter1138
2a94a64711
(svn r3356) - Remove unused parameter of AfterLoadGame().
...
- Initialize _sl_version after loading an old savegame.
2005-12-29 22:28:19 +00:00
tron
10c6d4c738
(svn r3355) Three minor improvements for french (by me using dict.leo.org, OKed by Belugas)
2005-12-29 19:09:05 +00:00
tron
6820aada04
(svn r3354) Fix a typo, which survived for about 3000 revisions: s/SRT_SORT_BY/STR_SORT_BY/ (noticed by chu)
2005-12-29 19:06:44 +00:00
tron
246c126d25
(svn r3353) Simplify the automatic length adjustment algorithm for replacing trains: Use the length of the train before the replacement as reference length
2005-12-29 12:42:59 +00:00
peter1138
1ffc700797
(svn r3352) - NewGRF: Move initialization of vehicle random_bits to DC_EXEC blocks to allow use of Random() instead of InteractiveRandom(), which will alleviate some possible network desyncs.
2005-12-28 22:29:59 +00:00
peter1138
a4de62577d
(svn r3351) Make sort criteria selection widgets in player train list consistent with those widgets in other vehicle type lists. (Stops "Total capacity per cargo type" overflowing)
2005-12-28 09:40:26 +00:00
peter1138
d6bfff85cb
(svn r3350) Fix widget glitch in player ship window (missed in r1379)
2005-12-28 09:29:00 +00:00
peter1138
37c3cd2e5b
(svn r3349) Fix off-by-one error in drawing matrix widget, from r3181.
2005-12-28 08:39:43 +00:00
tron
7e5da7d8b2
(svn r3348) Dependency checking didn't include all compile parameters, which lead to wrong results
2005-12-27 22:55:24 +00:00
tron
0f03d94fbe
(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?)
2005-12-27 20:44:42 +00:00
peter1138
6319e8910f
(svn r3346) - Increase size of aircraft refit window by one item; fixes "[ 1387477 ] Can't refit aircraft to carry Fizzy Drinks"
2005-12-27 16:37:50 +00:00
tron
8c707f6211
(svn r3345) Remove untranslated strings
2005-12-26 18:24:01 +00:00
tron
fad5dcffda
(svn r3344) Small fixes for the Danish (Thanks to Bjarni) and Dutch (Thanks to Truelight) translation
2005-12-26 18:22:34 +00:00
peter1138
878c868f02
(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.
2005-12-26 15:41:24 +00:00
tron
a857706145
(svn r3342) Remove some cruft
2005-12-25 19:44:23 +00:00
truelight
8ffe9da482
(svn r3341) -Codechange: make mingw32 happy, and renamed Rectangle, because it already exists on that platform
2005-12-25 15:05:59 +00:00
tron
19d0517c71
(svn r3340) Fix dependency calculation: dependencies didn't get recalculated if a header file changed
...
Also really automagically create the dependency directories by deriving the directory names from $(DEPS)
2005-12-25 09:19:16 +00:00
tron
fa78c057ee
(svn r3339) Remove unnecessary includes
2005-12-24 20:54:31 +00:00
tron
e5e15808f1
(svn r3338) Wrong file in last commit
2005-12-24 20:53:02 +00:00
tron
c11fb56bf7
(svn r3337) Remove an unused variable and add 2 times static
2005-12-24 20:51:21 +00:00
tron
f2db7e7245
(svn r3336) byte -> WindowClass, uint16 -> WindowNumber
2005-12-24 15:01:17 +00:00
miham
955f06b9ac
(svn r3335) [Translations] Moved estonian to ready
2005-12-24 13:22:38 +00:00
tron
9b0b2e8d2e
(svn r3334) Remove 2 unused window classes
2005-12-24 12:47:51 +00:00
tron
5df6a12ed3
(svn r3333) Remove some the unimplemented option DISPLAY_WARNINGS from the config writer
2005-12-24 12:47:31 +00:00
tron
671c085206
(svn r3332) Fix r3317, a few things got messed up in the translator system
2005-12-24 12:16:56 +00:00
tron
9abf05dcef
(svn r3331) CMD_PLACE_SIGN doesn't use p1, so don't pass anything seemingly meaningful
2005-12-24 10:16:34 +00:00
matthijs
128317d3ec
(svn r3329) - Doc: Some documentation cleanups.
...
- Add: TracksOverlap() (from the map branch), TrackdirBitsToTrackBits(), DiagdirReachesTrackdirs(), DiagdirReachesTracks().
- Fix: Infinite loop in the pathfinder introduces in r3321.
2005-12-21 13:53:44 +00:00
Darkvater
be01586049
(svn r3328) - Fix: [ 1352739 ] landscape_grid.html showing wrong bit usage (belugas)
2005-12-21 01:43:26 +00:00
Darkvater
15220f3578
(svn r3327) - Fix: [ 1373581 ] landscape.html documentation. Railway types are stored in m3, not m4. According to the mask (RAILTYPE_MASK), this is should be 0..1 but 0..3 are actually reserved. (egladil)
2005-12-21 01:40:41 +00:00
Darkvater
97e9141c65
(svn r3326) - Fix: [ 1226832 ] Build fails if SDL is built without pthread support (dst)
2005-12-21 01:19:03 +00:00
Darkvater
a24de0ba3b
(svn r3325) - Fix: You couldn't send an airplane to a hangar for mandatory servicing, the NON_STOP flag failed the command.
2005-12-21 01:14:01 +00:00
Darkvater
7142512754
(svn r3324) - Codechange: set native eol-style on missing files not yet set so
2005-12-20 21:59:34 +00:00
Darkvater
db03c5d5e8
(svn r3323) - Fix: automatically enable new AI when turning on the AI in multiplayer feature (it only works that way and we all know users don't read).
2005-12-20 21:24:50 +00:00
Darkvater
0f41b99c5e
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
...
- CodeChange: added str_validate(char *str) function that checks if a string contains only printable characters and if not, replaces those characters by question marks. Also move IsValidAsciiChar() to string.h
2005-12-20 20:52:05 +00:00
matthijs
8f873d4ece
(svn r3321) - Fix: A wrong use of the map m5 bits, where a previously calculated "bits" variable should have been used. This resulted in the pathfinder imagining junctions, which negatively affects performance somewhat (Darkvater).
...
- Fix: [ 1346377 ] Limiting the "depth" of the search tree fixes this assert.
Though the above fix seems to fix this bug too, it will only make it less likely to occur. The problem here was the StackedItem::depth field overflowing, which made the pathfinder think it was at the first tile again. Adding an explicit overflow check should fix this.
2005-12-20 00:50:16 +00:00
Darkvater
bb90e51ac5
(svn r3320) - Fix: FS#22 - Exiting with double size enabled saves wrong window size. Reset the window size to its true size upon exiting when double-size is active. Is set in ClientSizeChanged.
2005-12-19 00:19:12 +00:00
Darkvater
e744bbee59
(svn r3319) - Fix (regression): "Unnamed Competitors". A result of revision r3224 which allowed AI's for multiplayer. Old AI's didn't function correctly anymore. The update of last-built tile is moved back, but to a slightly different place so it is only executed when the command is actually successfully executed. This code shouldn't be neccessary, but alas, the old AI doesn't use DoCommandDP() functions.
2005-12-18 22:48:45 +00:00
Darkvater
a7793e97a5
(svn r3318) - Codechange: [FS#27] MSVC projectfile & documentation update (bociusz)
2005-12-18 20:48:22 +00:00
miham
e66db9c6d4
(svn r3317) [Translations] Updated to 2005-12-18
2005-12-18 17:04:02 +00:00
peter1138
3532b91eef
(svn r3316) - NewGRF: Unload engine names before loading grf files. This fixes names in climates where the engines don't get loaded. Renamed function to reflect its purpose.
2005-12-18 14:03:28 +00:00
tron
3561a3068e
(svn r3314) Add 2 times static
2005-12-18 12:17:53 +00:00
tron
b06b3e2ca2
(svn r3313) Remove GPMI related changes from trunk
...
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
2005-12-18 12:10:46 +00:00
tron
2956b119b2
(svn r3311) Remove the unnecessary global variable _grffile_count: It's just the scroll count of a list and furthermore only used in one file
2005-12-18 08:01:05 +00:00
tron
bd909b0952
(svn r3310) Fix a couple of warnings: Initialise all struct members, disambiguate cascaded if/else, remove an unused variable, use (void) for empty parameter lists
2005-12-17 14:26:43 +00:00
peter1138
592aee1e27
(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
2005-12-16 22:01:38 +00:00
tron
28fe368b7f
(svn r3308) BAD
...
foo.h: int bar;
GOOD
foo.h: extern int bar;
foo.c: int bar;
2005-12-15 17:55:59 +00:00
tron
ca52ec33b2
(svn r3307) A file shall include its own header
2005-12-14 20:45:12 +00:00
truelight
6884453b66
(svn r3306) -Fix: forgot sometimes to switch to the right current_player for AIs
2005-12-14 19:21:56 +00:00
truelight
531073bea0
(svn r3305) -Rename: Changed all instances of ottd_ related to the AI to ttai_
2005-12-14 15:54:23 +00:00
truelight
f94da63a8d
(svn r3304) -Add: allow AI-events to see the UID of the command
...
-Fix: improved the logic of the UID code for AIs
2005-12-14 14:38:23 +00:00
peter1138
f6330faead
(svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK
2005-12-14 09:15:06 +00:00
peter1138
ec274769b9
(svn r3302) - Fix: split drawing of text buttons and the closebox, so the closebox symbol can be centred.
2005-12-14 08:05:36 +00:00
tron
560e92aa4a
(svn r3301) One more static
2005-12-14 06:51:19 +00:00
tron
cc2b51320f
(svn r3300) Remove unreachable code - in this case some duplicate breaks
2005-12-14 06:49:54 +00:00
tron
4634243110
(svn r3299) Remove the unimplemented -l option, which should select the language
2005-12-14 06:32:06 +00:00
tron
bf98086de8
(svn r3298) Remove unused and write-only variables
2005-12-14 06:28:48 +00:00
tron
23bfc03054
(svn r3297) Staticise
2005-12-14 06:20:23 +00:00
tron
ce94c90a7b
(svn r3296) Warn about testing an undefined macro with #if - should most probably be #ifdef
2005-12-14 06:16:34 +00:00
Darkvater
d8727d7fcd
(svn r3295) - Regressionfix: scrolling with mousewheel no longer worked in saveload dialogs because of restriction that scroller is only active for widget + next widget is scrollbar. Yes, we need a better window system.
2005-12-13 22:28:44 +00:00
Darkvater
56998926e7
(svn r3294) - Fix: use INVALID_STRING_ID instead of -1.
...
- Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
2005-12-13 21:21:57 +00:00
Darkvater
2a60262c99
(svn r3293) - Miscellaneous: add peter1138 as developer
2005-12-13 20:20:44 +00:00
peter1138
560a4a9c4a
(svn r3292) - Autoreplace: Disallow replacing to an engine type that already has a replacement set up; this stops loops being set up.
2005-12-13 12:31:48 +00:00
peter1138
04f39ef749
(svn r3291) - Codechange, Autoreplace: Replace int with EngineID and -1 with INVALID_ENGINE, as appropriate.
2005-12-13 09:57:07 +00:00
peter1138
07c3abfe92
(svn r3290) - Fix: "[ 1360054 ] Rename Sign, Cause Game Crash, nightly version r3213": Added filter to test for valid character input.
2005-12-13 07:32:06 +00:00
tron
2dc8e0c3d9
(svn r3289) 32 times static
2005-12-11 10:36:48 +00:00
peter1138
f4e1f18a15
(svn r3288) Set svn properties on cocoa related files, and add Id tag.
...
Add extern to cocoa sound driver.
2005-12-11 10:25:27 +00:00
tron
ec2675c2c5
(svn r3287) Turn the winres.o: openttd.rc special case into a normal %.o: %.rc rule
2005-12-11 07:36:49 +00:00
bjarni
42d8e8410b
(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default
2005-12-10 23:03:59 +00:00
truelight
be65f908c8
(svn r3285) -Codechange: Tron was confused by a name, so let's make him happy,
...
prefixed it with 'tmp', so now we know it is a temp char* :)
2005-12-10 18:50:07 +00:00
truelight
0de260182b
(svn r3284) -Fix: DoCommand always cleans up _cmd_text (tnx to Tron)
2005-12-10 18:47:40 +00:00
truelight
ba7cc8e190
(svn r3283) -Fix: decode_parameters was still used, while _cmd_text is the way
...
-Fix: _cmd_text is cleared after a command, so we need to store it
temporaray in order to first test the command, before executing
2005-12-10 18:43:49 +00:00
peter1138
809b03c81a
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
2005-12-10 12:05:39 +00:00
bjarni
6a6e145010
(svn r3281) -Feature: [OSX] added native cocoa sound and video drivers (egladil)
...
you can still use SDL drivers if you like and you have to run "make upgradeconf" to start using the cocoa drivers (or manually write WITH_COCOA:=1)
since SDL breaks the cocoa drivers, you can't compile with both SDL and cocoa support
Using cocoa drivers makes it easier to make universal binaries and it solves:
-FS#18 [OSX] SDL is weird in universal binaries
-FS#2 [OSX] lazy pointer crash on exit
-FS#10 [OSX] linking error when linking statically to SDL 1.2.8 (needless to explain this, but it means it should be able to compile statically with the default settings now)
-[ 1215073 ] Switching to large size out of fullscreen crashes
Using SDL drivers will still have those issues though
2005-12-10 11:16:45 +00:00
tron
f1877b3fe9
(svn r3280) Merge the seperate (C|CXX|OBJC)_SOURCES variables into a single variable SRCS
...
Now adding a new file to compile is just adding a line like SRCS += $(FIILE), regardless of type
2005-12-10 07:29:31 +00:00
truelight
b6ca90e021
(svn r3279) -Fix: do not try to execute something that is not set to execute
...
-Fix: do not increase an uid number if it isn't returned
2005-12-09 19:29:11 +00:00
truelight
c872ac4eb4
(svn r3278) -Fix: lets update the tail-pointer if we add a new item, else the linkedlist never grows ;)
2005-12-09 19:12:11 +00:00
truelight
e9e1c4de53
(svn r3277) -Fix: lets use the right DoCommand for testing a build (tnx to Igor2Code)
2005-12-09 17:42:56 +00:00
bjarni
26a5e120e8
(svn r3276) reverted the last two commits. OSX 10.2 kept finding new stuff to prevent it from running OpenTTD, so now it's not supported anymore
2005-12-09 13:17:31 +00:00
bjarni
6cfdfcc4ba
(svn r3275) -Fix: [OSX] removed libpng support and error dialogs from jaguar crosscompiles to fix crash
2005-12-09 13:07:21 +00:00
bjarni
111e5ef0fd
(svn r3274) -Fix: [OSX] added JAGUAR flag to crosscompile for OSX 10.2 (codenamed jaguar)
...
JAGUAR and FAT_BINARY can't be used at the same time
JAGUAR will disable network support due to missing libs in 10.2
2005-12-09 12:15:52 +00:00
bjarni
578883266f
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
...
10.2 support appears to be broken right now
Changed BUILD_UNIVERSAL_BINARY into FAT_BINARY (I got tired of typing)
2005-12-09 11:08:24 +00:00
bjarni
05fbf0ada5
(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without network support
2005-12-08 21:12:15 +00:00
hackykid
2148e1fa89
(svn r3271) Remove some debug statements of mine which somehow got into svn.
2005-12-08 09:12:25 +00:00
peter1138
1c57091230
(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
2005-12-07 15:48:52 +00:00
truelight
54cb542e1d
(svn r3269) -Fix: return CMD_ERROR instead of -1 if AI_DoCommandChecked fails
2005-12-07 14:56:42 +00:00
bjarni
bfc8b30325
(svn r3268) moved lithuanian.txt to unfinished as it is broken and haven't been updated for a few months
2005-12-06 23:37:44 +00:00
bjarni
4bc7265b03
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
...
now PPC code is always compiled before x86 code
strgen and lng files are only compiled once, which results in shorter building time
the makefile now assigns default values to undefined values so much less needs to be set up
the code is now easier to maintain
2005-12-06 22:09:28 +00:00
truelight
4f9bb11846
(svn r3266) -Codechange: added comments for why the revert of r3625 inside the code.
...
Also, I forgot to tnx GraphiteNL for his help with this problem. Tnx GraphiteNL :)
2005-12-06 17:12:19 +00:00
truelight
af87b2916a
(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, doesn't support variadic macros............
2005-12-06 17:05:14 +00:00
bjarni
686da2f4e1
(svn r3264) -Codechange: [OSX] OSX targets will now always use the preprocessor to determine endianess
...
this means that ENDIAN_FORCE is obsolite since it's always overwritten with PREPROCESSOR
Since the preprocessor should never be able to pick wrong, it's easier this way
specially when compiling universal binaries as they got both endianess
2005-12-06 14:35:10 +00:00
truelight
a3d142ed57
(svn r3263) -Fix: use () around 'variables' in macros, gives less crashes ;)
...
-Fix: va-args in macros are supported via __VA_ARGS__ in C99, so changed
to that; now GCC 2.95 likes it too :)
2005-12-06 11:36:46 +00:00
bjarni
1a93bcb5bb
(svn r3262) -Fix: [OSX] universal binaries can now include the dynamic SDL lib into the bundle
2005-12-06 09:27:42 +00:00
peter1138
414481cdd8
(svn r3261) - Autoreplace: If a replaced vehicle had a custom name, transfer it to the new vehicle. Fixes "[ 1370039 ] Autoreplaced vehicles lose their names"
2005-12-05 16:48:07 +00:00
truelight
0f2a0df165
(svn r3260) -Add: add events for AIs to check if a command execution failed or succeeded
2005-12-05 12:27:58 +00:00
bjarni
2946f3c1f9
(svn r3259) -Fix: [OSX] fixed that universal binaries did not make a bundle
2005-12-04 22:43:40 +00:00
bjarni
961b71f434
(svn r3258) -Feature: [OSX] added support for universal binaries
...
it needs both PPC and x86 libs to compile
due to this fact, compilation with libPNG or SDL is not tested (dedicated servers only)
only PPC part is tested as I don't have x86 OSX
2005-12-04 17:36:19 +00:00
bjarni
8277a0651e
(svn r3257) -Codechange: [OSX] removed the dynamic lib in bundle option (introduced in rev 3230)
...
it caused way more problems than it solved
2005-12-03 13:43:54 +00:00
bjarni
b860d1194d
(svn r3256) -Fix: [OSX] fixed issue where building the bundle could take place before linking if -j 2 was used
2005-12-03 10:36:23 +00:00
Darkvater
bfeddf1db1
(svn r3254) - Fix: graphical glitch with autorail tool on a certain tile-type.
...
- CodeChange: adhere the global variables in autorail.h to the coding style (eg. start with underscore).
2005-12-02 19:41:35 +00:00
truelight
214ed794a1
(svn r3253) -Add: add BuildRoad event for AIs
2005-12-02 19:21:38 +00:00
peter1138
7460ecd42a
(svn r3252) - NewGRF: Map new train subtypes to old types for rail vehicles.
2005-12-02 14:55:23 +00:00
truelight
ea9cb3ee5b
(svn r3251) -Fix: report errors from GPMI in a more detailed way (Igor2Code)
2005-12-01 09:34:40 +00:00
truelight
480b1575fe
(svn r3250) -Fix: AIs weren't uninitialized when a new game was loaded
2005-11-30 16:10:19 +00:00
peter1138
6ed22fb3d4
(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.
2005-11-30 07:31:54 +00:00
peter1138
fde99748c0
(svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved.
2005-11-29 22:29:59 +00:00
peter1138
4191adb92c
(svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore"
...
Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync.
2005-11-29 22:04:02 +00:00
truelight
44c70c24d3
(svn r3246) -Fix: small glitch in ai_network_client code (network_client.c)
...
-Fix: make sure this glitch can never happen again (ai.c)
2005-11-29 16:06:06 +00:00
truelight
c963c59b67
(svn r3245) -Add: allow OpenTTD to give his GPMI-params to the GPMI modules
2005-11-29 15:53:15 +00:00
truelight
2eb1c8a215
(svn r3244) -Fix: [GPMI] Even more GPMI based AI-code cleanup, bug fixes, and you can now control the AI that is going to boot
2005-11-28 14:02:36 +00:00
truelight
4b4d171ca5
(svn r3243) -Fix: IncreaseLoan and DecreaseLoan were inconsistent for AIs
2005-11-28 11:30:12 +00:00
truelight
a2ae8a707c
(svn r3242) -Fix: small glitch in AllowAI control
2005-11-27 16:45:45 +00:00
peter1138
87f54ebf92
(svn r3239) - Codechange: Introduce and use helper functions for engine replacement code.
2005-11-26 16:41:14 +00:00
truelight
9a381f4d5d
(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by
...
Darkvater, so we can, in the future, save patch options in savegames
without any problems.
2005-11-26 16:18:15 +00:00
Darkvater
10ce514f59
(svn r3237) - CodeChange: remove silencing of some warnings. MSVC6 once again has some issues with enums, and other things as usual, so silence those still.
2005-11-26 13:23:16 +00:00
Darkvater
728aba9d7c
(svn r3236) - Fix: warnings about 'CDECL must be used with ...' on VS6
2005-11-26 12:57:42 +00:00
Darkvater
a090886073
(svn r3235) - Fix: fix two crashes, one with making a screenshot in the main menu without any game loaded, another when failing to load a scenario in 'New Game'
2005-11-26 12:45:53 +00:00
miham
732e71228b
(svn r3234) [Translations] Estonian is still unfinished
2005-11-23 21:47:01 +00:00
miham
aa39eb5a9a
(svn r3233) [Translations] Estonian now available again
2005-11-23 21:45:04 +00:00
truelight
8733f49e88
(svn r3232) -Add: implemented the event-system for AIs
...
-Add: added several hooks (event-callbacks) for road-related-stuff
2005-11-23 15:08:29 +00:00
truelight
b8f8f3869d
(svn r3231) Fix: update the GPMI implementation to the latest GPMI-API version
2005-11-23 13:45:12 +00:00
bjarni
08b990886d
(svn r3230) -Feature: [OSX] OSX builds can now change where it searches for dynamic libs and can move libs into the bundle
...
This is not a fix for the issues with static linking, more like a workaround. Static linking still got issues
Apple recommends to use dynamic linking anyway, so I guess this doesn't matter much
2005-11-23 12:21:54 +00:00
truelight
4927236912
(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI)
2005-11-22 22:32:42 +00:00
peter1138
f6ddaf6a23
(svn r3228) - Fix: [ 1327011 ] Fix: don't lower land on tunnel, even with diag tracks on it (based on patch by glx)
2005-11-22 22:30:35 +00:00
truelight
4845ff063b
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
2005-11-22 19:33:29 +00:00
truelight
6a4ba84320
(svn r3226) -Fix: GPMI implementation had minor glitches
...
-Fix: the AI speed control is done by the AI-core, individual AIs don't have to do it (so, AIs were delayed twice ;)
-Add: Support for AI-network-clients (an AI, connecting to a remote server)
-Fix: minor AI-core problems
2005-11-22 15:55:38 +00:00
peter1138
4d2c4c5d8a
(svn r3225) - Fix for "[ 1359165 ] Autoreplace problem with r3171 and later" -- Move the disabled/hidden bits to custom data in window struct.
2005-11-22 14:02:45 +00:00
truelight
31f218fdf9
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
...
settings, off by defaut). An other step to AIScripts.
WARNING: this is still highly experimental and has known bugs!
2005-11-21 14:28:31 +00:00
bjarni
c7f3192f6b
(svn r3223) -Fix: [autoreplace] fixed crash when replacing a train engine without any cars (introduced in r3220)
2005-11-19 22:39:16 +00:00
tron
f2b344084a
(svn r3222) -Feature: Right-Click-Scrolling optionally moves in the opposite direction (Requested by manx)
2005-11-19 12:37:28 +00:00
miham
c7683a63ce
(svn r3221) [Translations] Updated to 2005-11-19
2005-11-19 11:07:42 +00:00
bjarni
24eda23b80
(svn r3220) -Fix: [autoreplace] Autoreplaced trains now replace their cargo to the train instead of just the new engine
...
This applies to wagon removal during autoreplace too
2005-11-19 10:28:02 +00:00
bjarni
e472fed85a
(svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines
2005-11-19 00:10:20 +00:00
bjarni
22a4679837
(svn r3218) -Feature: Multiheaded train engines will now stay in the same train
...
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead
This fixes the assert when moving multiheaded engines (introduced in r3144)
Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs
-Codechange: train subtype is now a bitmask
This allows fast access to info like if it is a wagon or engine and if it is in front and so on
Note: savegame version bump
2005-11-18 23:41:03 +00:00
peter1138
40ec9bb123
(svn r3217) Fix issue with resizing stepped windows introduced in revision 3181.
2005-11-18 20:28:55 +00:00
Darkvater
a87ff2dc88
(svn r3216) - Fix (regression): endless loop introduced in revision 3190
2005-11-17 23:05:59 +00:00
Darkvater
cac9cfe249
(svn r3215) - Fix: warning on VS.NET 2003 complaining about constness reintroduced by revision 3192
2005-11-17 22:56:50 +00:00
bjarni
eba1f68439
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
...
max_autosave_num in the config files sets the number of autosaves to keep (default 16)
MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given
this behaviour can still be overwritten by keep_all_autosave (openttd.config setting)
Note: this is a requested behaviour for PDA ports, since they got limited storage space
2005-11-17 19:43:37 +00:00
peter1138
3e702afc08
(svn r3213) - Codechange: Clean up handling of road stops, avoiding unnecessary use of pointers and using the *BIT() macros.
2005-11-17 10:12:21 +00:00
peter1138
754d26407e
(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct.
...
- Waypoints: Until now stat_id was saved but never assigned to. Instead we now save the GRFID/local index of the custom graphics so that GRF file changes can leave graphics intact.
2005-11-16 22:20:15 +00:00
tron
5cb9de35d1
(svn r3211) Fix typo in r3181
2005-11-16 16:16:18 +00:00
truelight
c1b012171d
(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
...
-Codechange: IsRailWaypoint should take 'tile', not 'm5'
2005-11-16 14:41:01 +00:00
peter1138
b739674307
(svn r3209) In TileLoop_Track(), use names based on function rather than their place in the map array.
2005-11-16 14:30:24 +00:00
tron
89cfe202b8
(svn r3208) Don't explicitly pass the engine type to look for to GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter
2005-11-16 14:07:34 +00:00
tron
1bffec2c27
(svn r3207) Typo in last revision
2005-11-16 13:45:42 +00:00
tron
f750a773a4
(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG
2005-11-16 13:45:04 +00:00
tron
ec57ef78a2
(svn r3205) Some more uses for GB/SB
2005-11-16 13:11:28 +00:00
tron
8cebe2f607
(svn r3204) Make handling of clicking on vehicles a bit less ugly by avoiding function declarations in .c files and unnecessary indirection
2005-11-16 12:52:01 +00:00
tron
272d63b062
(svn r3203) Directly use the currency symbols for pounds and yen in the language files like it's already done for dollar and euro
2005-11-16 12:37:22 +00:00
tron
d177e5da67
(svn r3202) If cascade -> switch
2005-11-16 12:29:37 +00:00
tron
aaed2a41a0
(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early
2005-11-16 12:25:33 +00:00
tron
7a7847ed61
(svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite
2005-11-16 12:21:04 +00:00
tron
cc61dd4890
(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4
2005-11-16 12:20:15 +00:00
tron
06a708b7b3
(svn r3198) Rewrite the company league drawing routine for better readability
2005-11-16 12:10:45 +00:00
tron
d76fc8d7d1
(svn r3197) Use a better bias so you can directly see the date range a disaster can happen in
2005-11-16 12:04:34 +00:00
tron
ce9cbb9c47
(svn r3196) Use structs instead of magic offsets into arrays
2005-11-16 12:01:46 +00:00
tron
8d57bfc921
(svn r3195) Use bitfields instead of explicit shifting/masking
2005-11-16 11:55:06 +00:00
tron
1806293e46
(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill
2005-11-16 11:52:21 +00:00
tron
62b2b4613f
(svn r3193) Staticise the vehicle position hash
2005-11-16 11:50:40 +00:00
tron
784d41b650
(svn r3192) Split the surname list into two lists (non-toyland/toyland) and use lengthof() to get the number of names instead of using magic numbers
2005-11-16 11:17:52 +00:00
tron
1d109214bc
(svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG
2005-11-16 08:35:26 +00:00
tron
3bf8d2ccbb
(svn r3190) Turn some loops into canonical for loop form
2005-11-15 11:46:49 +00:00
tron
66d44766a7
(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it
2005-11-15 11:08:10 +00:00
tron
b5dafb8f94
(svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR
2005-11-15 10:50:43 +00:00
tron
24f857ed5e
(svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing
2005-11-15 09:47:25 +00:00
tron
9f8c5d8fd2
(svn r3186) Unnecessary casts and truncation
2005-11-15 09:05:16 +00:00
tron
b9729fb72e
(svn r3185) const
2005-11-15 09:00:02 +00:00
tron
1b0091e0d2
(svn r3184) GB/SB
2005-11-15 08:49:46 +00:00
tron
8658560229
(svn r3183) Remove an unused declaration and properly declare CheckExternalFiles() in a header
2005-11-15 08:40:45 +00:00
tron
7b7593d092
(svn r3182) Fix braino in r3181
2005-11-14 20:20:24 +00:00
tron
f7abff5f96
(svn r3181) -Bracing
...
-Indentation
-Whitespace
-DeMorgan's Law
-Test with NULL or 0 for non-booleans
-'\0' instead of 0 for chars
-Remove redundantly redundant comments (like DoFoo(); // Do foo)
-Join multiple short lines with a single statement
-Split single lines with multiple statements
-Avoid assignments in if
2005-11-14 19:48:04 +00:00
tron
d8b56c123e
(svn r3180) Replace some magic numbers by symbolic names
2005-11-14 15:22:12 +00:00
tron
5fa6b7eb06
(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions
...
- CHANCE*() instead of mumbling strange numbers
2005-11-14 09:21:05 +00:00
peter1138
6124ee0974
(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.
2005-11-14 08:42:45 +00:00
tron
833032adc0
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
2005-11-14 08:09:57 +00:00
tron
357aba7475
(svn r3176) Use proper types, not some variants of int
2005-11-13 21:16:34 +00:00
orudge
eeade69786
(svn r3175) - Updated OS/2 project file to include station_newgrf.c
2005-11-13 18:07:45 +00:00
Darkvater
8a05c1e31d
(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing sourcefile(s) from project)
2005-11-13 16:30:04 +00:00
tron
4a14a586e2
(svn r3173) Use the trinary operator and switch to improve readability
...
Also align short cases nicely
2005-11-13 14:54:09 +00:00
tron
ee15e3de13
(svn r3172) static, const
2005-11-13 13:43:55 +00:00
peter1138
59e885c2bf
(svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden variables, as a window already contains this information.
2005-11-12 11:10:12 +00:00
peter1138
422bea5a0b
(svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, and added some more values.
2005-11-12 09:30:52 +00:00
peter1138
b3056bc799
(svn r3169) Little bit of coding style fixing, and change from value to lengthof()
2005-11-12 08:51:46 +00:00
peter1138
a7fe1495cd
(svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/
2005-11-12 00:29:13 +00:00
peter1138
ff8223150a
(svn r3167) - NewGRF: Start moving custom station code to separate files.
...
Rewrite handling of station classes.
Allow for more than 8 station tile layouts.
Start of code to unload custom stations.
2005-11-12 00:19:34 +00:00
peter1138
b1075ca7a4
(svn r3166) Constify read-only accesses of custom stations
2005-11-11 20:34:16 +00:00
tron
1c867927a3
(svn r3163) Include header for toupper()
2005-11-10 17:21:05 +00:00
truelight
53ddd87dc2
(svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named 'Message' already
...
exists on MorphOS
2005-11-10 15:23:55 +00:00
tron
a20b9c2240
(svn r3159) Remove the read-only variable _no_button_sound
2005-11-09 11:32:15 +00:00
peter1138
7d888a5715
(svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx)
2005-11-09 09:16:08 +00:00
peter1138
350f0f2cdb
(svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.
2005-11-09 07:25:55 +00:00
bjarni
5e278b7ec3
(svn r3156) -Fix: removed some cases where autoreplace windows were redrawn when nothing was changed
...
due to the FOR_ALL_VEHICLES(), redrawing those windows are slow
2005-11-08 23:18:09 +00:00
bjarni
5481dcd191
(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains
...
-Trains will now remember the length of stations it visits and sell cars
when being autoreplaced if they became too long
-If it needs to remove cars, then it starts from the front and sells
all it can find until the train is short enough
-This only works for trains, that knows the station length of the route
so a full uninterrupted run is needed
-a train needs 1-2 runs to detect if the shortest station is expanded
-This feature can be turned on and off in the train replace window
and each company can have it's own setting
-NOTE: minor savegame version bump
2005-11-07 23:20:47 +00:00
Darkvater
723e789b2f
(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P
2005-11-07 17:31:21 +00:00
Darkvater
947fc8a8ec
(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish)
2005-11-07 16:19:45 +00:00
peter1138
7304bbe500
(svn r3152) - NewGRF: [ 1340189 ] Action 7/9 new value : is it TTDPatch or OpenTTD? (belugas)
2005-11-07 14:34:23 +00:00
Darkvater
f816b74536
(svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added.
...
- Codechange: protect _endgame_perf_titles from out-of-bounds access.
2005-11-07 13:30:43 +00:00
peter1138
8bcfa23d29
(svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud()
2005-11-07 13:02:33 +00:00
peter1138
bc25cd89bf
(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes.
2005-11-06 13:42:26 +00:00
peter1138
220b4c27c1
(svn r3147) Fix crash when building dual-head rail vehicles...
2005-11-06 13:29:28 +00:00
peter1138
b58cfc36da
(svn r3146) Avoid use of variable size declared arrays when allocating articulated rail vehicles.
2005-11-06 12:39:30 +00:00
peter1138
de76933337
(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.
2005-11-06 10:17:20 +00:00
bjarni
63842939ed
(svn r3144) -Fix: a new train is now made if the front unit is an engine and the former front engine is moved away (Meush)
2005-11-06 01:15:10 +00:00
bjarni
b6d1f81635
(svn r3143) -Codechange: greatly increased speed when allocating vehicles
...
This increases the speed greatly when allocating more than one at a time
(planes, artic engines, cloning...) and when adding another block of
vehicles to the vehicle pool (adding 512 vehicles each time)
2005-11-05 19:58:16 +00:00
peter1138
58785904a6
(svn r3142) Remove a now invalid case fall-through and use helper function instead of map access.
2005-11-05 18:32:21 +00:00
peter1138
49335b4daa
(svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with appropriate GB()
2005-11-05 18:21:28 +00:00
peter1138
0412040bcc
(svn r3140) Building/removing a waypoint could leave old PBS reservations behind. This ensures they are cleared.
2005-11-05 18:13:40 +00:00
peter1138
267314b4d0
(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is used, for example, by coal tenders.
2005-11-05 16:07:26 +00:00
bjarni
d86829d0e0
(svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to allocate some vehicles to clone a train, but not for all cars
...
Now it gives "too many vehicles" error message instead
To make this work, AllocateVehicles() needed to be moved to vehicle.c (from aircraft_cmd.c) and made non-static
2005-11-05 14:01:00 +00:00
bjarni
7d4d13df35
(svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a vehicle entered a depot even though the goto depot was canceled
...
this assert could be reached by clicking on the goto depot button to cancel goto depot from the orders and the vehicle
still entered the depot. The flags in that case would not be "normal" anymore. An additional check is added to prevent this
2005-11-04 22:10:49 +00:00
bjarni
c8ea743e47
(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more than one vehicle will try to move cargo from all vehicles
...
currently this applies to planes and multiheaded train engines (no more lost airmail)
added GetNextEnginePart() that returns the next vehicle in an engine nomatter what type it is
when more types of multivehicle engines are added, they will have to be added here too or autoreplace will not remove all cargo
2005-11-04 20:52:03 +00:00
tron
d42b7649a4
(svn r3135) Use symbolic names in the tables, which hold the information about accepted goods of industry tiles, instead of magic numbers
2005-11-04 16:12:48 +00:00
tron
a21762980d
(svn r3134) Forgot to commit one file in r3133
2005-11-04 14:57:53 +00:00
tron
62d7732273
(svn r3133) - static, const
...
- remove long unused stuff and bogus comments
- complement struct typedefs
- remove read-only (_demo_mode) and unused (_fix_mouse_at) global variables
2005-11-04 14:01:44 +00:00
peter1138
081bae03d9
(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.
2005-11-04 12:58:18 +00:00
peter1138
04134d1481
(svn r3131) Enable panning of audio relative to screen position.
2005-11-04 10:02:50 +00:00
peter1138
c8ea909811
(svn r3130) Calculate shorter wagon lengths more precisely in train depot window. This affects wagon position, the scroll bar, and the train length counter. No trial and error is required to get the correct length now.
2005-11-04 07:38:26 +00:00
bjarni
ea720689a3
(svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
...
this is not the same bug as in rev 3128, which means you actually paid 3 times. Now it pays correctly
2005-11-03 21:22:38 +00:00
bjarni
b950fee119
(svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
2005-11-03 20:19:15 +00:00
bjarni
80af1ebca8
(svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail to stop when autoreplacing
...
this would result in the construction of a new vehicle while the old one just continued
added an assert to make sure it's always stopped before trying to sell the old vehicle
2005-11-03 19:51:28 +00:00
peter1138
01b6109751
(svn r3126) Autoreplace: Only the first vehicle in a chain should be marked as entering a depot, so call moved out of DoVehicleTrigger loop.
2005-11-03 18:27:29 +00:00
tron
7c40462d24
(svn r3125) Symbolic names for skiping sprites and the end of the sprite list
2005-11-03 15:25:45 +00:00
peter1138
e80d448478
(svn r3124) Alter train loading/unloading time to use the actual length of the train instead of the number of wagons. The actual length is cached in the first vehicle of the train.
2005-11-03 09:22:24 +00:00
Darkvater
689006ee73
(svn r3123) eh, don't press enter after typing text, previous patch wasn't finished. Now strgen really behaves correctly. Thanks again glx
2005-11-02 23:55:10 +00:00
Darkvater
9d786d3e53
(svn r3122) - Fix (regression): recent change to strgen which 'fixed' all strings with wrong plural forms. Thanks for glx for pointing this out (after I changed his original patch which was correct..whohoo braindeadness; here I come)
2005-11-02 23:31:04 +00:00
miham
b850806205
(svn r3121) [Translations] Moved turkish.txt from unfinished to stable
2005-11-02 19:20:48 +00:00
tron
9bcf0cd1e2
(svn r3120) Update the turkish translation, about 2000 strings.
...
Many thanks to jnmbk for his effort!
2005-11-02 19:16:33 +00:00
tron
422a8654e3
(svn r3119) Don't pretend to be the Windows version of TTD all the time. When being asked answer according to _use_dos_palette. (Suggestion by Belugas)
2005-11-02 16:05:45 +00:00
tron
94e09ba605
(svn r3118) Name 3 palette modifiers properly (belugas)
2005-11-02 13:06:07 +00:00
miham
7e03f1cc3c
(svn r3117) [Translations] Updated french
2005-11-01 18:33:47 +00:00
bjarni
59913ae719
(svn r3116) -Fix: [autoreplace] fixed issue where autorenewing/autoreplacing a plane could lock up an airport
...
this will not fix already locked up airports
this bug was introduced in rev 3111
2005-11-01 17:20:06 +00:00
tron
6390bcc636
(svn r3115) Fix typos, remove untranslated strings, use the correct charset
2005-11-01 09:34:42 +00:00
tron
f6fdb150e7
(svn r3114) Close two gaps in the sprite array when loading openttd.grf. That's seven more free sprite slots, yay!
2005-11-01 06:38:23 +00:00
truelight
8ea1639603
(svn r3113) -Fix: The Makefile had 64bit code which was obsolete, not to say wrong.
...
This removes all the 64bit stuff from the Makefile. Everything should
work just fine. Also removed the warning on amd64, 64bit OpenTTD is
stable. Tnx to dst for commenting and testing on this subject.
2005-10-31 18:29:21 +00:00
bjarni
35217570a9
(svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater)
2005-10-31 14:30:45 +00:00
bjarni
682b9ee8e4
(svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c line 378
...
running MaybeReplaceVehicle() is now delayed until after the loop in CallVehicleTicks()
This avoids selling the vehicle the loop currently works with (and continues to work with afterwards)
2005-10-31 12:59:47 +00:00
peter1138
95d1c43565
(svn r3110) Replace another 256 with TOTAL_NUM_ENGINES.
2005-10-31 12:01:41 +00:00
peter1138
7298b0b31b
(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
2005-10-31 11:22:52 +00:00
tron
c1c086d9a0
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
2005-10-31 10:23:58 +00:00
peter1138
1a2ad83b00
(svn r3107) -NewGRF: Move train y-position offset adjustment to remove code duplication, and make it apply only to vehicles with a custom image.
2005-10-30 21:47:42 +00:00
peter1138
328158395b
(svn r3106) -Autoreplace feature: Continue to show old vehicles in replace window after all player's vehicles of that type have been replaced. This allows the replacement to be removed. These vehicles are shown in grey instead of the player's colour.
2005-10-30 21:35:48 +00:00
bjarni
1ef02f8cca
(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)
2005-10-30 15:50:08 +00:00
bjarni
c406487b14
(svn r3104) -Codechange: [refit] removed now obsolite code that the old autoreplace needed
2005-10-30 11:00:54 +00:00
Darkvater
6c4b37c9fe
(svn r3103) - Fix: [ 1339000 ] Fix: strgen and plural forms fatal error for untranslated strings. (glx). Also output the correct lines for these warnings, for missing strings the lines correspond with the ones in english.txt
2005-10-30 00:16:48 +00:00
Darkvater
b5583659e0
(svn r3102) - Fix (regression): Newly added sprite had problems when newgrf's where loaded. Thanks Tron for explaining what the problem was and how it should be solved.
2005-10-29 22:27:34 +00:00
bjarni
6d41c23cf2
(svn r3101) -Codechange: added _new_vehicle_id
...
this var works like _new_train_id and the rest of that kind of vars, except it is set each time a vehicle is build, nomatter what type
this is a nice tool to code vehicle independent code, which in turn can reduce code duplication
Right now it's used in ReplaceVehicle() and CmdCloneVehicle()
2005-10-29 21:54:28 +00:00
bjarni
76f4c5b6f9
(svn r3100) -Codechange [Clone vehicles] Major change to clone vehicles
...
removed duplicated code and added DoCommand, which used the define build commands added with autoreplace
This should not affect gameplay at all
2005-10-29 20:58:26 +00:00
tron
187ea08e1d
(svn r3099) Copy&pasto in r3098
2005-10-29 20:28:43 +00:00
tron
9e957ff80b
(svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI
2005-10-28 20:04:54 +00:00
Darkvater
9bbf8ea9d0
(svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash
2005-10-28 00:18:57 +00:00
Darkvater
f561993112
(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
...
- Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
2005-10-28 00:09:59 +00:00
bjarni
1cc5379706
(svn r3093) -Fix: [autoreplace] fixed issue where the money limit message showed up in some cases when no replace was needed
2005-10-27 19:30:40 +00:00
tron
203726ed34
(svn r3090) Remove long dead pieces of code
2005-10-26 07:12:14 +00:00
peter1138
b97473e874
(svn r3089) Fix possible issue with out-of-bounds array access in replace vehicle gui, and add brief commenting.
2005-10-25 19:52:25 +00:00
bjarni
477aa9f69c
(svn r3088) -Fix: [OSX] fixed issue where OSX could not dynamic link to quicktime [ 1334917 ]
2005-10-25 19:41:32 +00:00
tron
66e688cba3
(svn r3087) Rewrite GetPlayerRailtypes() so it doesn't depend on magical numbers to sort out wagons
2005-10-25 18:29:32 +00:00
bjarni
7cace07e01
(svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit)
2005-10-24 20:12:39 +00:00
bjarni
bf467bd99c
(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
...
this is a complete rewrite, that makes use of existing commands like build and sell
this means that multiheaded train engines are replaced correctly
2005-10-24 19:40:48 +00:00
tron
e0dd7efc82
(svn r3080) byte -> PlayerID, int -> EngineID, -1 -> INVALID_ENGINE
2005-10-24 05:51:23 +00:00
tron
f5ea31b9da
(svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number
2005-10-23 14:38:09 +00:00
tron
47137cefb7
(svn r3078) Some more stuff, which piled up:
...
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants
2005-10-23 13:04:44 +00:00
tron
2cc2154ad2
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
2005-10-22 06:39:32 +00:00
tron
0163870006
(svn r3076) s/OSX/OS X/
...
and Unix is spelled "Unix", not "Linux"
2005-10-21 12:24:55 +00:00
peter1138
5565abb871
(svn r3075) -PBS: Keep track reservation state while building and removing a waypoint.
2005-10-21 06:04:17 +00:00
peter1138
8bf11c2e41
(svn r3074) -NewGrf: Fix stupid typo in weight setting.
2005-10-20 19:44:41 +00:00
tron
2b91f55b32
(svn r3073) int/byte -> EngineID/PlayerID/VehicleID
...
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE
2005-10-20 17:43:13 +00:00
tron
6a5c0fabdd
(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them
2005-10-20 17:23:33 +00:00
peter1138
d5eb4183b8
(svn r3071) -NewGRF: Add support for rail vehicle weight greater than 255 tons.
2005-10-20 15:15:58 +00:00
Darkvater
4253f3d330
(svn r3070) - it doesn't matter where the '.' is found for the IP, if it is found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron
2005-10-19 20:00:05 +00:00
Darkvater
afc9951648
(svn r3069) - CodeChange: now that we have the '|' char, use that as a seperator instead of '\' as was originally intention
2005-10-19 19:44:01 +00:00
Darkvater
4fb76f67ae
(svn r3068) - Feature: make it possible to create a screenshot from the console that is both big and has no console, or any combination of.
2005-10-19 19:41:38 +00:00
Darkvater
e611fee4e5
(svn r3067) - Feature: allow unbanning players based on banlist-id (as well as IP).
...
- Feature: 'status' and 'clients' now show the IP of the players
2005-10-19 19:38:35 +00:00
tron
ece9b9b2b6
(svn r3066) Constify the parameter of GetSlopeZ_*()
2005-10-19 14:49:46 +00:00
celestar
5f604ec63a
(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
2005-10-19 08:34:37 +00:00
tron
758ae7e8f6
(svn r3064) Replace some numbers by sprite names
2005-10-19 06:46:41 +00:00
celestar
cb67ee9bf5
(svn r3063) -Codechange: Demystified and commented bridge_land.h. Also removed two arrays that are not referred to
2005-10-19 06:17:11 +00:00
Darkvater
ec66b1ca3b
(svn r3062) - Add visual representation of possible text-colours instead of dubious and confusing textfile
2005-10-18 21:48:45 +00:00
Darkvater
be984d9bcc
(svn r3061) - CodeChange: revert r3056, r3057 and add a simpler fix to satisfy the needs of the absolute strict (eg. root directory is C:\ not C:)
2005-10-18 20:18:05 +00:00
miham
8419473453
(svn r3060) [Translations] Updating translations to 2005-10-18 {@805} (2 langs changed)
2005-10-18 18:18:50 +00:00
tron
f3de172560
(svn r3059) Use bitfields to encode railtype and climates of engines instead of manual shifting/anding
2005-10-18 11:23:58 +00:00
tron
d4752ba0da
(svn r3058) The default AI may not build dual headed trains under certain circumstances.
...
Simplify this check by testing the rail vehicle info flags instead of passing a global variable around.
Note: This is not exactly the original behaviour, because the Lev4 was always allowed to be built, but i guess that was a glitch.
2005-10-18 07:01:00 +00:00
Darkvater
d4463b4b95
(svn r3057) - (Post)Fix: fix backslash occurence in all cases, also when going to root directory through 'parent directory', and of course don't show parent dir in root.
2005-10-17 22:49:15 +00:00
Darkvater
6bf4e4af3c
(svn r3056) - Fix: Problem on Win98 and lower when if you go to the root directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files
2005-10-17 22:24:32 +00:00
tron
23ecc82ad3
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
2005-10-17 19:57:00 +00:00
tron
b85da4fef2
(svn r3054) Remove the unsused function GetNumRailtypes()
2005-10-17 10:09:37 +00:00
truelight
60882b29c8
(svn r3053) -Fix: [ 1326604 ] Fixed typo and hang for BeOS Networking (MYOB)
2005-10-16 15:00:22 +00:00
tron
9314ea877f
(svn r3052) Fix last commit *grml*
2005-10-16 14:12:21 +00:00
tron
0834a88a12
(svn r3051) Remove the unused function RemoteSubsidyAdd()
2005-10-16 14:07:11 +00:00
tron
b537cc6618
(svn r3050) Augment the rail vehicle table with symbolic names for dual-head engines and wagons
2005-10-16 12:22:16 +00:00
tron
66bf4f863d
(svn r3049) Replace byte/int/uint by RailType where appropriate
2005-10-16 09:13:04 +00:00
tron
ab657338ec
(svn r3048) Replace 0/1/2 by RAILTYPE_RAIL/MONO/MAGLEV where appropriate
2005-10-16 07:58:15 +00:00
tron
d52bf846f3
(svn r3047) The parameters for the railtype check got flipped in the train build window (this caused no visible problem so far, therefore no Fix tag)
2005-10-15 16:43:18 +00:00
tron
d5042d4ab2
(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list
2005-10-15 11:06:54 +00:00
peter1138
ab41ccb23c
(svn r3045) -NewGRF, Codechange: Don't attempt to map and empty sprite group to a vehicle.
2005-10-15 07:40:22 +00:00
peter1138
5c3625b88f
(svn r3044) -NewGRF, Codechange: Improve handling of non-existent sprite sets.
2005-10-14 20:10:12 +00:00
tron
f97d1274bc
(svn r3040) Don't deduce the cursor sprites when building rails from magic numbers, but fetch them from the central rail info array.
2005-10-14 08:11:18 +00:00
tron
1667628659
(svn r3039) Revert accidently commited changes from last commit
2005-10-14 08:02:18 +00:00
tron
67741ceace
(svn r3038) Reorder the loading of standard graphics files to reflect a bit where in the sprite array the sprites end up and assert, that the indices are equal to the corresponding sprite base enums, to guard against typos.
2005-10-14 07:59:16 +00:00
tron
7520ef8f33
(svn r3037) Don't deduce the sprites for tunnels and level crossings from magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
2005-10-13 16:00:14 +00:00
tron
d37639ac3e
(svn r3036) Use IsCompatibleRail() to check the rail type of level crossings (not a fix, because the old == method works so far)
2005-10-13 14:44:03 +00:00
tron
03e947cbfe
(svn r3035) Augment the engine table with symbolic names for rail types and climates
2005-10-13 12:33:03 +00:00
peter1138
5551b423fc
(svn r3034) -NewGRF: Improve error checking of setting price bases.
2005-10-12 09:54:29 +00:00
miham
0321dc9fc5
(svn r3033) [Translations] Fixed (? :-)) lithuanian language
2005-10-12 09:35:14 +00:00
peter1138
c78e87d4da
(svn r3032) -NewGRF, Feature: Add support for changing base prices.
2005-10-12 07:27:56 +00:00
bjarni
d678a12445
(svn r3031) forgot 1 file and two lines in rev 3029 (mac midi stuff)
2005-10-11 16:40:56 +00:00
tron
9fea263c77
(svn r3030) More work for GB/SB, this time concerning the waiting_acceptance attribute of stations
2005-10-11 13:54:21 +00:00
bjarni
6fb7381efa
(svn r3029) -Change: [OSX] removed the buggy java midi player, which was rendered obsolite by r3022
2005-10-10 15:22:47 +00:00
tron
76db75d81a
(svn r3028) s/255/OWNER_SPECTATOR/
2005-10-10 10:36:37 +00:00
bjarni
cafd3528a4
(svn r3027) -Feature: [OSX] command+q now works in main menu (Tobin)
2005-10-07 20:53:21 +00:00
bjarni
7ba69ad146
(svn r3026) -Fix: [OSX] fixed bug that prevented dedicated servers from compiling (introduced in r3022)
2005-10-07 16:48:53 +00:00
Darkvater
9134e19d7e
(svn r3025) -Fix: Rail convert issue introduced in r3019
2005-10-07 15:53:33 +00:00
tron
3397e202c8
(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants
2005-10-07 07:35:15 +00:00
bjarni
2b44da199c
(svn r3023) -Fix [BeOS] fixed compilation on BeOS R5 (MYOB)
2005-10-06 18:28:27 +00:00
bjarni
37af5bc475
(svn r3022) -feature: [OSX] OSX now uses quicktime to play midi files
...
this eliminates the long pauses between songs and the "leaving process hehind" bug (moebius_)
2005-10-06 17:57:18 +00:00
tron
9666e753fb
(svn r3021) -Fix: "The finnish markka was never abbreviated with capital letters." (ln-)
2005-10-06 09:35:08 +00:00
miham
6006aa1a04
(svn r3020) [Translations] Updating translations to 2005-10-06 {@326} (4 langs changed)
2005-10-06 06:49:53 +00:00
tron
ae4a1f3675
(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB
2005-10-05 07:20:26 +00:00
peter1138
102cf2615f
(svn r3018) -Fix: Fixed industry colour issue introduced in r3010.
2005-10-05 04:00:39 +00:00
peter1138
abe60acbbb
(svn r3017) -NewGRF: Implement sprite group unreferencing and unloading.
2005-10-04 21:42:00 +00:00
peter1138
c655e13e92
(svn r3016) -NewGRF: Implement the start of reference counting for sprite groups. This will allow unloading.
2005-10-04 20:58:10 +00:00
peter1138
d1591e864d
(svn r3015) -NewGRF: Add a new sprite group result type, and support loading of callbacks results within random and "real" groups. (Not fully supported yet.)
2005-10-04 20:38:26 +00:00
peter1138
9fabe008a0
(svn r3014) -NewGRF, Codechange: Make all sprite group references be pointers instead of copying the data around.
2005-10-04 19:52:26 +00:00
tron
c3a73d4047
(svn r3013) Update the documentation: The 'owner' attribute was renamed to 'm1' long ago
2005-10-04 17:34:50 +00:00
tron
8bd4a63c47
(svn r3012) Extract the correct bits when checking if it's a road or rail tunnel; this is not flagged as fix, because it accidently worked
2005-10-04 06:34:39 +00:00
Darkvater
01559c99b1
(svn r3011) Refix last revision's fix of VS6 which broke compilation on MinGW. Also beautify stdafx.h with nice indentation and comments after big #ifdef blocks. Hope it didn't break compilation on any OS's.
2005-10-03 22:16:30 +00:00
tron
db3b1228bf
(svn r3010) Get rid of quite some dubious casts, either by using GB(), proper types or just removing them
2005-10-03 21:20:01 +00:00
Darkvater
b0a365ee67
(svn r3009) DIEEEEEEEEEEE VS6 (you good-for-nothing compiler)
2005-10-03 21:10:51 +00:00
Darkvater
a3d40a29fc
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
...
Fix warning in graph_gui.c with const problem
2005-10-02 22:39:56 +00:00
miham
e8fac6c6cb
(svn r3007) [Translations] Updating translations to 2005-10-02 {@563} (4 langs changed)
2005-10-02 12:31:00 +00:00
peter1138
c294de06b9
(svn r3006) -Fix, NewGRF: Don't assert on user input, skip data instead.
...
-Codechange, NewGRF: Remove unnecessary NULL check.
2005-10-02 12:00:30 +00:00
peter1138
4fe06ceecc
(svn r3005) -Fix, NewGRF: Some GRF files don't specify a name or description, in which case the Action 8 is 8 bytes, not 9. (pb_viaduct)
2005-10-01 17:41:41 +00:00
peter1138
adc5c1230f
(svn r3004) -Feature, NewGRF: Support loading of bridge attributes and tables from GRF. Currently drawing tall pillars uses old data.
2005-10-01 17:38:48 +00:00
tron
0cc45ecd8e
(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)
2005-10-01 12:43:34 +00:00
peter1138
eb1d025d08
(svn r3002) -Fix, Newgrf: Max speed of 0xFFFF means no max speed.
...
-Fix, Newgrf: Don't mark an engine as a wagon after setting speed -- wagons can have speed limits.
2005-09-30 20:51:20 +00:00
tron
ed8c9c91d6
(svn r3001) s/Player*/const Player*/
...
s/byte/PlayerID/
s/int/PlayerID/
and related changes
2005-09-30 20:37:25 +00:00
miham
af5b74f0ed
(svn r3000) [Translations] Updating translations to 2005-09-30 {@457} (15 langs changed)
2005-09-30 09:58:59 +00:00
tron
f6bda82806
(svn r2999) Do not pass if the HQ gets built for the first time or gets relocated as parameter - the command function has to check this anyway
2005-09-30 08:57:12 +00:00
peter1138
f8d1267d71
(svn r2998) -Codechange: Split rail drawing code off from DrawTile_Rail into a separate function to be used elsewhere. (Deja vu?)
2005-09-29 20:20:34 +00:00
peter1138
e33faa5ed5
(svn r2997) -Codechange: Split road drawing code off from DrawTile_Road into a separate function to be used elsewhere.
2005-09-29 19:59:57 +00:00
tron
3a964862f7
(svn r2996) 0xFFFF -> INVALID_STRING_ID
2005-09-28 21:49:55 +00:00
tron
ce1c72cf6e
(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
2005-09-28 19:35:36 +00:00
tron
6249dd46ad
(svn r2994) Another small hack regarding currencies: add a #define to emulate a variable, that holds the current currency; again this should increase readability
2005-09-27 20:55:42 +00:00
peter1138
5f3bb18eb7
(svn r2993) Fix: Reset aircraft images differently. Fixes assertion introduced in r2991.
2005-09-27 19:16:37 +00:00
tron
ff30404170
(svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1
2005-09-27 18:51:04 +00:00
peter1138
50f1a93664
(svn r2991) Reset vehicle images on game load. Allows savegames with NewGRFs saved prior to r2868 to load.
2005-09-26 20:32:13 +00:00
peter1138
fbf06041ca
(svn r2990) Remove _engine_original_sprites and replace all uses with references to our (new) original engine/vehicle tables.
2005-09-26 19:01:49 +00:00
peter1138
2314431a59
(svn r2989) - Make engine/vehicle information tables constant. Duplicate them so NewGRF data can be loaded without wiping out the default data.
2005-09-26 18:43:58 +00:00
tron
c76f01b6ff
(svn r2988) static where static is due
2005-09-26 13:38:12 +00:00
tron
d28067445a
(svn r2987) -Fix: restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (Debolaz)
2005-09-26 08:11:48 +00:00
miham
23838df7fa
(svn r2986) [Translations] Fixed up english.txt (still don't know how Webtranslator screwed it up)
2005-09-25 19:39:42 +00:00
tron
269627b0ba
(svn r2985) Print warnings and errors in the canonical file:line: form to make life for IDEs easier (ln-)
2005-09-25 09:15:09 +00:00
tron
c2c865e4b9
(svn r2984) Use adequate types, this should aid portability a bit
2005-09-25 09:04:59 +00:00
miham
03ad234d47
(svn r2983) [Translations] Updating translations to 2005-09-24 {@892} (11 langs changed)
2005-09-24 20:24:35 +00:00
peter1138
c02b1d555d
(svn r2982) Newgrf: Added patch option for wagon speed limits. This is enabled by default.
2005-09-24 13:56:39 +00:00
tron
47de27ab69
(svn r2981) Remove a no-op
2005-09-24 06:43:26 +00:00
Darkvater
5dad0588df
(svn r2980) - Add some comments to some setting enums, and fix a 'const' warning.
...
- Add settings.h to VS.NET project.
2005-09-23 23:23:01 +00:00
tron
1b16f210c2
(svn r2979) Avoid unnecessary recursion
2005-09-23 20:20:08 +00:00
tron
b1e6b54f94
(svn r2978) Make a global variable local
2005-09-23 20:13:48 +00:00
hackykid
d5d8d29c9f
(svn r2977) - CodeChange: [pbs] Use a check to see if a rail segment is a pbs segment, instead of letting the pathfinder determine this.
2005-09-23 17:37:21 +00:00
tron
35ce780bb6
(svn r2976) -Fix: Align settings pool items to the size of void* to fix bus errors on 64bit architectures which require aligned variables
2005-09-23 14:21:39 +00:00
tron
7ee0b8ac86
(svn r2975) Use the correct types, not types which accidently have the same size on 32bit machines
2005-09-23 12:13:58 +00:00
peter1138
9c2700b14c
(svn r2974) -Fix: Drag and drop selection on drop down boxes didn't select correct item when some items were hidden.
...
-Separate disabled and hidden masks in drop downs to support both hidden and disabled items.
2005-09-23 07:44:03 +00:00
tron
313fcfbd83
(svn r2973) Move a function declaration somewhere where it belongs
2005-09-23 06:38:36 +00:00
tron
afcb9f0d60
(svn r2972) Fix the speed of the AI
2005-09-23 06:34:06 +00:00
peter1138
eeeeecb030
(svn r2971) - Newgrf: Support loading VarAction2 parameter for variables 0x60-0x7F. This parameter isn't used yet.
2005-09-22 20:58:14 +00:00
peter1138
e380abec97
(svn r2970) - Newgrf: Allocate spritegroups dynamically; this allows a cargo ID to reference the previous definition of the same cargo ID, instead of causing loops.
2005-09-22 20:35:20 +00:00
peter1138
02c2de2a67
(svn r2969) -Newgrf: Show a wagon's speed limit in purchase list.
2005-09-22 10:31:09 +00:00
peter1138
1195076373
(svn r2968) -Newgrf: Implement current set of action D (ParamSet) operations.
2005-09-21 19:07:58 +00:00
peter1138
4d8c903d62
(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.
2005-09-20 19:35:52 +00:00
peter1138
5676cc32b4
(svn r2966) Fix: newgrf: Replace special case with a check for the existence of a handler in VehicleChangeInfo.
2005-09-20 17:33:57 +00:00
peter1138
2f0616e9f2
(svn r2965) Fix: newgrf: Add bounds checking to VehicleChangeInfo for vehicles and change
...
station special case to vehicle special case.
2005-09-20 11:07:33 +00:00
peter1138
a3b3c3cf31
(svn r2964) Fix: newgrf: Include missing grf feature canal.
2005-09-20 09:38:09 +00:00
peter1138
3d197e0861
(svn r2963) Fix: calculate proportions of non-square giant screenshot correctly.
2005-09-19 16:03:47 +00:00
Darkvater
8e6a911700
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
...
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
2005-09-18 20:56:44 +00:00
Darkvater
3097ee2429
(svn r2961) - Fix: [ 1219123 ] Fix for [ 1216203 ] UFO-broken waypoint (lucaspiller)
2005-09-17 13:57:01 +00:00
Darkvater
72ef17dace
(svn r2960) - Fix: [ 1227779 ] Fix win32 midi volume level control which didn't work (glx)
2005-09-17 13:15:16 +00:00
Darkvater
c930f8f8c0
(svn r2959) - Fix: [ 1266036 ] Fix [ 1236317 ] Vehicles with and TRANSFER order don't have that order restored (i_dachev). Also disallow non-train type vehicles to have non-stop orders.
2005-09-16 16:03:18 +00:00
Darkvater
4797310f91
(svn r2958) - Feature: [ 1258971 ] Menu option to toggle console. Mainly for MacOS's or PDA's. (toholio)
2005-09-16 10:50:06 +00:00
Darkvater
2525e1d507
(svn r2957) - Feature: [ 1263280 ] Danish town names (fey_dk)
2005-09-16 10:37:21 +00:00
Darkvater
180997534c
(svn r2956) - Fix: [ 1253736 ] creating many town crash to desktop. Now it 'dies' with an ingame error message informing the gamer if it couldn't generate any towns in user-space. Still if it happens during new-game generation it crashes since we don't yet have actions to do in such a circumstance.
2005-09-16 00:33:33 +00:00
Darkvater
1419244551
(svn r2955) Fix: make ottd start with the last resolution you had set (custom) (win32)
2005-09-15 22:42:59 +00:00
Darkvater
e9401f09a7
(svn r2954) - Force assertion message to be output to a messagebox instead to the console which MinGW32 had the habit of doing. Using undocumented (in mingw) __set_error_mode() function.
2005-09-15 21:59:07 +00:00
Darkvater
7164ff86f9
(svn r2953) - Fix: [ 1257766 ] Cannot make ships go to an oil platform (oilrig has no station). While it is still possible that oilrigs end up without a station, it is only the case where no more stations can be built at all
2005-09-14 22:03:27 +00:00
Darkvater
db31fe8e15
(svn r2952) Querytool output is be 0xAAAA. with leading 0x. Couldn't use # cause that would have written 0X
2005-09-14 19:22:06 +00:00
Darkvater
2131f68ae2
(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone
...
- Add IsLocalPlayer() which substitutes _local_player == _current_player
2005-09-14 18:03:38 +00:00
Darkvater
1bf06d7da4
(svn r2950) -Fix: [ 1259327 ] Server crash with "say" -command
2005-09-14 17:21:30 +00:00
Darkvater
236abb6a6c
(svn r2949) The AI no longer needs to 'cheat' to build aircraft; eg it builds them now from a hangar. Also, to query the price of a new aircraft tile information is not needed
2005-09-13 13:30:18 +00:00
truelight
2e87864d0b
(svn r2948) -Fix: the old AI needs a special flag that triggers all kind of special
...
abilities you really don't want to know about (free bridges, etc..)
I removed this flag some revisions ago, but the Aircraft part
depends on it, so I re-enabled it again..
2005-09-13 12:19:27 +00:00
tron
42813c5426
(svn r2947) Reorder some code to prepare for future enhancements and get rid of some gotos (peter1138)
2005-09-13 09:23:23 +00:00
tron
b84e36d717
(svn r2946) Remove redundant calls, simplify a check and terminate the argument list of execlp() as suggested by the manpage to make it correctly work on 64bit platforms
2005-09-12 09:53:56 +00:00
Darkvater
02472528ad
(svn r2945) Add 'del' alias to rm console command
2005-09-11 18:36:22 +00:00
Darkvater
c5fa3848f6
(svn r2944) Add Revision keyword to the file for --version/-v
2005-09-11 18:20:32 +00:00
Darkvater
802edd7f0d
(svn r2943) Fix compilation of openttd in release mode. Don't use any precompiled headers, so no more troubles in the future.
...
Remove release build of strgen, since it is never used.
Add current ottd version to resource file. Don't forget to update when we make a release :)
2005-09-11 17:55:32 +00:00
tron
aa08027ab3
(svn r2942) Staticise some functions
2005-09-11 15:01:00 +00:00
tron
e78d41bbb2
(svn r2941) -Feature: Implement the console command rm to remove savegames
2005-09-11 14:57:56 +00:00
Darkvater
ffd044c5e8
(svn r2940) (Internal) Remove the need for the 'tmp' variable for _sl.buf, instead operate on _sl.buf_ori which is not changed for init/deinit.
2005-09-11 14:20:46 +00:00
Darkvater
b0ddaae4af
(svn r2939) Fix racing condition when using threaded saving (last one I hope).
...
When game is saved and you save again you get an error message (not when autosaving) and it's aborted. When a game is loaded in the meanwhile execution pauses until saving thread finishes.
2005-09-11 14:17:21 +00:00
tron
08e0769967
(svn r2938) -Fix: Exit the child of the extmidi backend with _exit() instead of exit(), because we don't want any atexit handlers - especially flushing output streams - to run, if exec() fails
...
Half a credit is due to Darkvater (;
2005-09-11 09:24:17 +00:00
tron
8894b930ae
(svn r2937) Add sprites for {, |, } and ~
2005-09-10 15:52:19 +00:00
tron
edb56c2c46
(svn r2936) Move string commands to a non-printable range and remove stale comments
2005-09-10 15:14:35 +00:00
miham
2c89b0f539
(svn r2935) [Translations] Fixed up static strings for various languages (Tron)
2005-09-10 09:52:33 +00:00
tron
287684e953
(svn r2934) Remove the {STATIONFEATURES} tag from the tiny station label - there are no tiny transport marker sprites
2005-09-10 09:35:18 +00:00
tron
9de2c05c56
(svn r2933) Implement the non-breaking space
2005-09-10 08:17:30 +00:00
tron
0fe36a6900
(svn r2932) Give the strings consisting of an up/a down arrow symbolic names
2005-09-10 07:38:03 +00:00
miham
04f051e423
(svn r2931) [Translations] introduced some minimal caseing in hungarian language (miham)
2005-09-10 06:39:36 +00:00
miham
2e0e932e9d
(svn r2930) [Translations] Updated estonian (tron)
2005-09-10 06:32:48 +00:00
matthijs
cd54bf48d1
(svn r2929) * Move DistanceTrack from map.c to npf.c and rename to NPFDistanceTrack.
...
* Make NPFDistanceTrack return the distance multiplied by NPF_TILE_LENGTH to prevent rounding
This should make ship and train pathfinding more accurate and faster.
* Update IsEndOfLine to prevent trains from trying to go off a slope onto a tunnel entrance.
2005-09-09 23:14:38 +00:00
orudge
a744b15907
(svn r2928) - Update OS/2 project with AI file changes
2005-09-09 15:49:46 +00:00
tron
b45ab0fab4
(svn r2927) Fix/remove stale information, line breaks, inform FreeBSD users about the required ports
2005-09-09 07:08:27 +00:00
tron
4b59946ffe
(svn r2926) -Fix: Use the same file slots in both initialisation stages when loading a patch grf
2005-09-09 06:39:47 +00:00
Darkvater
5d3f87bcd8
(svn r2925) Get VS6 to compile again; really this time (boekabart) and add eol-style and keywords to newly added source files (ai.[ch])
2005-09-08 14:31:13 +00:00
tron
45ca3b6336
(svn r2924) Introduce the ALIGN() macro which aligns values to multiples of a power of 2, for exact semantics see the commment in macros.h
2005-09-08 12:48:26 +00:00
Darkvater
d73d12ae8a
(svn r2923) Update project files for VS2003 and VS6 (rev2921)
2005-09-08 12:33:25 +00:00
Darkvater
73662f2fcb
(svn r2922) Fix crash with directmusic if no music files could be found to play
2005-09-08 12:22:47 +00:00
truelight
991d5c6234
(svn r2921) -Codechange: moved all AI-code to 1 central place (ai/ai.c)
...
-Fix: removed the ability for the oldAI to cheat (this will criple him somewhat)
-Add: base-code for many improvements to come in the AI-system
-Add: added base-code for multiplayer AIs (DOES NOT WORK YET!)
2005-09-07 15:10:11 +00:00
tron
e39bf0dc34
(svn r2920) Remove mindless translation
2005-09-06 16:14:37 +00:00
tron
8328bff7bf
(svn r2919) Set correct plural type
2005-09-06 16:01:38 +00:00
tron
01d83166c7
(svn r2918) Fix some broken strings
2005-09-06 15:58:27 +00:00
tron
948e470b3a
(svn r2917) Some mechanical changes (s/COMMA16/COMMA/ etc.)
2005-09-06 15:33:30 +00:00
tron
2bc18c456f
(svn r2916) Remove untranslated strings, revert wrong change, readd newline at the end of file in the danish translation and remove a broken string from the finnish translation
2005-09-06 14:37:19 +00:00
miham
5b0a5c70a9
(svn r2915) [Translations] Updated danish.txt (Got)
2005-09-06 13:45:53 +00:00
miham
9a2ee23c98
(svn r2914) [Translations] Updated american and german language (Tron)
2005-09-05 18:16:29 +00:00
miham
e2000ab858
(svn r2913) [Translations] Updating translations to 2005-09-05 {@793} (4 langs changed)
2005-09-05 18:02:53 +00:00
bjarni
864cb3fa11
(svn r2912) -Fix: [autorenew]: fixed issue where autorenewed vehicles didn't get all stats updated (peter1138)
2005-09-03 19:22:56 +00:00
tron
3ace3769c9
(svn r2911) Deinitialise the DirectMusic driver like it's done in the example code in MSDN, this should fix a strange crash upon deinitialising wave out sound
2005-09-03 17:30:16 +00:00
miham
3dd2dab7e9
(svn r2910) [Translations] Updating translations to 2005-09-03 {@561} (8 langs changed)
2005-09-03 12:28:39 +00:00
Darkvater
828e7ed3e7
(svn r2909) Game would hang where the autosave_on_exit was activated.
...
- Updated VS.NET and VS6 project files changed AI files
2005-09-03 11:33:55 +00:00
Darkvater
92270500e9
(svn r2908) If threaded saving fails or does not happen, sending subsequent messages might hang ottd. So don't send them :)
2005-09-02 22:22:02 +00:00
truelight
d05f504c01
(svn r2907) -Codechange: splitted the AIs to their own directory. AINew becomes 'trolly', AIOld becomes 'default', both in their own dir in the 'ai' dir. More AIs to come.
2005-09-02 19:10:45 +00:00
Darkvater
a181446829
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
2005-09-02 16:05:59 +00:00
Darkvater
ae356b641d
(svn r2905) fix casing
2005-09-01 21:19:48 +00:00
Darkvater
6a69687ea1
(svn r2904) Stupid editors, and renaming files with the same name just different casing is not really possible, so here comes another commit
2005-09-01 21:19:07 +00:00
Darkvater
3fb5aa8e23
(svn r2903) Fix case mismatch for ottdmidi java file (moebius)
2005-09-01 21:10:05 +00:00
miham
9d8a39a3f6
(svn r2902) [Translations] Updated finnish.txt (ln-)
2005-08-31 09:19:34 +00:00
Darkvater
74f0c8b55a
(svn r2901) Refix 'replace window' with wrong string-etc. coordinates. Also clean up, and make window-title a bit more meaningful (specify vehicle type replaced)
2005-08-29 22:27:22 +00:00
tron
a02ee8ffda
(svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices
2005-08-28 14:45:44 +00:00
tron
d975abc96c
(svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code
2005-08-28 12:24:57 +00:00
tron
70c07d13be
(svn r2898) Fix typo in r2897
2005-08-28 10:59:34 +00:00
tron
abb034c2cd
(svn r2897) Check the return values of [cm]alloc and the length of an array, plus some smaller changes
2005-08-27 20:54:48 +00:00
tron
175b2cd12a
(svn r2896) Use genders in the german translation
2005-08-27 18:44:16 +00:00
tron
7e84d8b295
(svn r2895) Remove unused variables and bring a comment closer to reality
2005-08-27 13:06:59 +00:00
tron
1677748d4d
(svn r2894) Simplify colouring in owner-mode in the minimap regarding towns and get rid of some magic numbers
2005-08-27 13:04:15 +00:00
tron
ffdefbdee2
(svn r2893) Two chars got assigned a width of 0 since r2879, fix that ([1274302])'
2005-08-27 09:49:52 +00:00
tron
8b85cf53e5
(svn r2892) Fix indentation
2005-08-26 20:56:48 +00:00
tron
a38d2f15b7
(svn r2891) Fix indentation
2005-08-26 20:26:34 +00:00
tron
f914a7eca6
(svn r2890) Fix some signed/unsigned comparison warnings (tokai)
2005-08-25 16:53:51 +00:00
miham
51c2ef8685
(svn r2889) [Translations] Updated american (tron)
2005-08-25 13:29:32 +00:00
miham
b01c951224
(svn r2888) [Translations] Updating translations to 2005-08-24 {@839} (3 langs changed)
2005-08-24 19:08:54 +00:00
tron
65bdb2ce67
(svn r2887) Fix regression: Two boolean expressions got flipped in r2595, which made it possible to place lighthouses and antennas everywhere BUT clear tiles (found and fixed by _Luca_)
2005-08-24 18:47:26 +00:00
tron
b45aeb5c36
(svn r2886) Rename the "owner" attribute to "m1", because when it stores an owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing.
2005-08-23 18:47:04 +00:00
miham
9d9ee2fe56
(svn r2885) [Translations] Removed not-translated romanian strings (Tron)
2005-08-23 07:28:45 +00:00
tron
a2a15784ac
(svn r2884) Fix and improve the look of the new letters (Hadez)
2005-08-21 17:32:43 +00:00
tron
ad4243ab7d
(svn r2883) Use the recently added letters in the czech translation.
...
This changes more than 500 strings - thanks for the effort, Hadez!
2005-08-21 15:20:13 +00:00
tron
4a1f46a99a
(svn r2882) Some fixes for MorphOS (by tokai)
...
- Don't track dependencies on system headers
- Add an include path
- Silence a warning regarding a bad signal prototype
- Remove executable flag from pictures
- Add proper OTTD icon
2005-08-21 10:44:57 +00:00
miham
1c686229af
(svn r2881) [Translations] Updating translations to 2005-08-21 {@295} (1 langs changed)
2005-08-21 06:05:51 +00:00
Darkvater
7a184a0ea3
(svn r2880) Fix graphical glitch in replace window (text at wrong coordinates)
2005-08-20 21:16:46 +00:00
tron
ae49d487cc
(svn r2879) Major step twoards ISO-8859-15
...
Add several missing chars:
- Š/š (S with hacek, all sizes)
- Ž/ž (Z with hacek, all sizes)
- Œ/œ (OE ligature, all sizes)
- Ð/ð (eth, large font was missing)
- Þ/þ (thorn, large font was missing)
- º (male ordinal sign, all sizes)
Also move Ÿ (Y with umlaut, all sizes) to the correct position in the charset
To add some chars it was necessary to shuffle some OTTD specific chars (arrows, transport type markers) around
2005-08-20 18:14:32 +00:00
miham
c1f4acd4a0
(svn r2878) [Translations] Updating translations to 2005-08-20 {@787} (2 langs changed)
2005-08-20 17:53:49 +00:00
miham
2080cf991f
(svn r2877) [Translations] Handfixed italian.txt
2005-08-20 07:55:27 +00:00
miham
8b3c50147e
(svn r2876) [Translations] Updated translations (this time manually :-P)
2005-08-17 17:19:40 +00:00
miham
01f0af5189
(svn r2875) [translations] Restored langfiles (f*cked up at 2874, sorry (problem fixed))
2005-08-17 12:30:07 +00:00
miham
67a1507b83
(svn r2874) [Translations] Updating translations to 2005-08-16 {@946} (24 langs changed)
2005-08-16 21:42:35 +00:00
miham
1c3958c8fc
(svn r2873) [Translations] Updating translations
2005-08-16 10:57:21 +00:00
tron
0c7af4a5ad
(svn r2872) -Feature: [NewGRF] Add support for "extended bytes"
...
While here work around a buffer overflow in action 4
2005-08-15 22:48:33 +00:00
tron
1637df1788
(svn r2871) -Feature/Fix: Per GRF parameter lists
2005-08-15 21:19:28 +00:00
miham
7e0c06e018
(svn r2870) \[Translations\] Updating translations
2005-08-15 20:53:06 +00:00
orudge
9ee5d61b73
(svn r2869) - Update Watcom project with gfxinit.c
2005-08-15 11:54:42 +00:00
tron
52c859cbe8
(svn r2868) Change the way NewGRFs are loaded: The loading process i no longer bolted onto the normal graphics loading.
...
This has two major advantages:
- Removal of a maze of global variables and distinction of cases from the sprite loading routines, which weren't directly related to the loading process in the first place
- NewGRF actions no longer occupy sprite slots - for example when using DBSetXL this saves about 2000 slots! (you could regard this as a bug fix)
If i didn't make a major mistake this change should have no negative effect on NewGRF support, please test!
2005-08-15 11:39:13 +00:00
miham
d057d8b366
(svn r2867) \[Translations\] Updating translations
2005-08-15 06:46:22 +00:00
tron
19f5036c46
(svn r2866) Move all functions and tables which aren't directly involved in managing the sprite heap to a new file gfxinit.c.
...
This doesn't ease the global variable mess, but makes the distinction between sprite heap and gfx loading routines easier.
2005-08-14 18:10:18 +00:00
tron
26d24f64fc
(svn r2865) Push the responsibility for allocating the sprite heap into GfxInitSpriteMem()
2005-08-13 21:40:22 +00:00
tron
bdd5d4ebb1
(svn r2864) Code simplification and diff reduction
2005-08-13 21:35:31 +00:00
tron
38f344b351
(svn r2863) Move some type declarations into saveload.c, should've been part of r2819
2005-08-13 21:34:05 +00:00
tron
302055fc15
(svn r2862) Return a proper version number, when testing the TTDPatch version in the SkipIf action. Pretend to be version 2.0.1 alpha 49 for now.
...
Also change the type of the variables, which get compared, to uint32, because the values are at most 32bits wide and always seem to be unsigned.
2005-08-13 16:23:07 +00:00
tron
d7eaf35357
(svn r2861) Move inclusion of setjmp.h into saveload.c, should've been part of r2819
2005-08-12 12:47:35 +00:00
tron
bdff0fa2d2
(svn r2860) Fix some issues in the savegame/scenario list code:
...
-Fix: Sort the directories when making a scenario list
-Fix: Sort the directories when making a savegame list on Windows
-Fix: On OS/2 show the trailing \ if the current directory is a root directory
-Regression: On OS/2 the savegame list showed the scenario directory or crashed (probably introduced in r2609)
The rest is diff reduction between the 3 variants
2005-08-12 06:37:48 +00:00
miham
7e702e2d50
(svn r2859) \[Translations\] Updating translations
2005-08-11 21:51:05 +00:00
truelight
732acc8ead
(svn r2858) -Codechange: resolved some magic numbers (_Luca_)
2005-08-11 19:23:32 +00:00
truelight
235d84583f
(svn r2857) -Fix: PlayerID is not a valid type for a player-bit-field. Partly reverted r2290
2005-08-11 19:21:46 +00:00
miham
61e97e733d
(svn r2856) [Translations] Fixed languages containing STRING1 (except for english.txt)
2005-08-11 13:20:37 +00:00
tron
d1c5128c42
(svn r2855) Make ReadSpriteHeaderSkipData() responsible for detecting the end of a grf file instead of its callers - this simplifies the code a bit
2005-08-11 13:09:12 +00:00
miham
e16ae164af
(svn r2854) \[Translations\] Updating translations
2005-08-11 13:06:24 +00:00
tron
038501e174
(svn r2853) Add missing dependencies and flags to the dependency targets and make the info target more informative
2005-08-11 13:04:50 +00:00
tron
bfe8f13a8a
(svn r2852) Remove the unused field 'id' from struct FiosItem
2005-08-11 13:03:39 +00:00
orudge
ecf20af742
(svn r2851) - Update Watcom project with currency.c
2005-08-11 12:56:03 +00:00
miham
f7593f1b99
(svn r2850) [newgrf] Patch from peter1139
2005-08-11 12:51:59 +00:00
tron
4582eb85a2
(svn r2849) Fix r2806: pwd.h is necessary, but only if USE_HOMEDIR is defined
2005-08-11 07:29:24 +00:00
bjarni
042f079b8d
(svn r2848) -Fix: [ 1256044 ] fixed crash when loading a map made before rev 2817 in scenario editor. This was introduced in 2817
2005-08-10 21:16:38 +00:00
tron
8f398f2f50
(svn r2847) Don't remember the size of sprites during initialisation. Since the sprite loading was altered this is no longer necessary.
...
While here remove another write-only variable (_spritecache_size) and fix a comment (sprite replaces a lowercase letter instead of uppercase)
2005-08-09 12:58:22 +00:00
tron
bed459d5d3
(svn r2846) Minor improvement of the french translation: use {P}, fix spelling of "brûlé", fully translate partly untranslated strings and remove gratuitous whitespace (i hope i got it right)
2005-08-08 21:42:27 +00:00
tron
e42b560049
(svn r2845) Remove sprite size caching, it was unused
...
This makes GetSpriteDimension() superflous, because now it's just a thin wrapper around GetSprite() returning only part of the information, therefore remove it too
2005-08-08 21:35:27 +00:00
tron
b67af2df3e
(svn r2844) Update the MSVC project files, thanks AsterixMG
2005-08-08 20:27:05 +00:00
tron
a837d74ae6
(svn r2843) OSX doesn't like OBJC, so give it back its beloved CC, because it's the only ObjectiveC consumer
2005-08-08 20:23:56 +00:00
ludde
062ed26b4d
(svn r2842) Fix bug with aircraft autoreplace (peter1138)
2005-08-08 15:26:53 +00:00
tron
a7e4057d2d
(svn r2841) Pimp the Makefile: Determining the header dependencies is now a separate step.
...
This should fix the dependency related problems and reduce the number of recompiled files when table/strings.h changes
2005-08-08 15:10:37 +00:00
tron
af819c3822
(svn r2840) Remove 3 unnecessary strings (they're empty) and fix the alignment of the musick track display
2005-08-08 10:42:02 +00:00
tron
47e28d9152
(svn r2839) Remove stuff missed in r2833, properly calculate the size of two arrays and simplify GetSpriteDimension() a bit
2005-08-08 09:49:47 +00:00
miham
129898cd77
(svn r2838) \[Translations\] Updating translations
2005-08-08 09:42:22 +00:00
miham
64bf2a4f29
(svn r2837) [Translations] Updated dutch langfile, started testing of the new SVN-handler in WebTranslator
2005-08-08 09:01:22 +00:00
bjarni
b0d4e391da
(svn r2836) fixed the alphabetical order of the credits list like it says it is in
2005-08-07 19:16:32 +00:00
tron
b101846d3b
(svn r2833) Remove saving of sprite cache data:
...
the benefits are questionable, it's error prone, undocumented and hasn't been widely used for ages, if ever
2005-08-07 17:52:41 +00:00
tron
0b6864b589
(svn r2832) Missing #include
2005-08-07 14:45:50 +00:00
tron
3f39db10d7
(svn r2831) Fix some potential and real buffer overflows
2005-08-07 14:18:17 +00:00
tron
14e80ca159
(svn r2830) Move CheckSwitchToEuro() to currency.[ch] and hide the truth about the custom currency behind a #define
2005-08-07 12:41:57 +00:00
tron
59da8350c1
(svn r2829) Remove sprite locking, it was never used anyway
2005-08-07 11:01:31 +00:00
tron
2b4e85db0b
(svn r2828) Only command.c needs to know about _docommand_recursive, so make it static. Tell me if there's a problem, because i removed it from network_server.c, but afaict it should be ok
2005-08-07 10:03:14 +00:00
tron
dc20e0ae81
(svn r2827) BeOS meets all prerequisites for extmidi
2005-08-06 22:40:18 +00:00
tron
dd03e018b5
(svn r2826) Remove another write-only variable, thanks glx
2005-08-06 22:12:45 +00:00
truelight
bb3ab916b3
(svn r2825) -Fix: GCC that put deps in the wrong dirs can now compile OTTD again
2005-08-06 21:50:26 +00:00
truelight
3ff46bd8ba
(svn r2824) -Fix: OSX can now also produce dedicated servers
2005-08-06 21:45:48 +00:00
truelight
a587c38864
(svn r2823) -Fix: MorphOS doesn't have pthread either!
2005-08-06 20:53:02 +00:00
truelight
73d0f36175
(svn r2822) -Fix: don't compile pthread for win32 dedicated servers
2005-08-06 20:34:41 +00:00
tron
5d5a7c48ee
(svn r2821) Remove a write-only variable
2005-08-06 20:24:32 +00:00
bjarni
b0f307365a
(svn r2820) -Fix: [autoreplace] fixed issue introduced in 2817 where autoreplace failed if new engine is cheaper than the old one (peter1138)
2005-08-06 19:12:44 +00:00
tron
03e860d06d
(svn r2819) Make variables, which are exclusive for internal use of the save/load code, static in saveload.c
2005-08-06 17:40:21 +00:00
tron
3b6b3af629
(svn r2818) Don't tell the world about a local variable which is only used once
2005-08-06 16:55:05 +00:00
bjarni
ed8e2bac04
(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to serverside
...
-This means that one company can only have one setting for renew and replacing
more clients will not fight due to different settings anymore
-This is a needed step in the line to fix autoreplacing dualheaded locomotives
NOTE: savegame revision bump (peter1138 + me in coop)
2005-08-06 16:07:22 +00:00
tron
ddb58492f3
(svn r2816) Forgot an Id tag and an #include
2005-08-06 15:18:26 +00:00
tron
baca040df0
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
2005-08-06 14:59:54 +00:00
truelight
4f15ada6cd
(svn r2814) -Fix: made MorphOS to compile again
2005-08-06 14:58:06 +00:00
tron
eb826dfb66
(svn r2813) Plug a thread leak and prevent a race condition which could lead to multiple simultaneous saves and therefore severe corruption
2005-08-06 07:15:17 +00:00
tron
747a0f6a55
(svn r2812) Move variables, which only vehicle_gui.c needs to know about, there
2005-08-05 20:22:06 +00:00
tron
a8e53be6b9
(svn r2811) Fix typos in r2810
2005-08-05 20:18:08 +00:00
tron
c78af95d1d
(svn r2810) Threads may now return information when they terminate using a void*.
...
Also add the new files to the MSVC project files.
2005-08-05 11:53:48 +00:00
tron
4696ef802a
(svn r2809) Implement more generic threading functions, which allow more than one thread
2005-08-05 09:15:41 +00:00
celestar
4f9b0d5f29
(svn r2808) -Fix: Removed 'kdevelop' from the doxygen project name (thanks tron)
2005-08-05 08:31:29 +00:00
tron
a86e9689df
(svn r2807) Fix two major bugs in the threaded save code:
...
- Do not dereference a local variable which no longer exists; this lead to random crashes when saving
- (Win32) Do not close a handle before it is used last
There are still many major problems (race conditions and resulting memory corruption/crashes) left
2005-08-05 08:24:12 +00:00
tron
647fe2e866
(svn r2806) Remove unnecessary #includes
2005-08-04 18:02:03 +00:00
tron
d327ab1d3e
(svn r2805) Revert r2804, something went wrong
2005-08-04 17:59:05 +00:00
miham
9470fdbdb2
(svn r2804) [Translators] Updated translations to 20050804 (21 lang(s))
2005-08-04 17:45:55 +00:00
matthijs
570c5794eb
(svn r2803) * Removed latvian from MSVC 6 and .NET project files, since it is now in lang/unfinished (bociusz).
2005-08-03 23:46:33 +00:00
tron
ec8f481311
(svn r2802) Fix language files (again)
2005-08-03 17:55:07 +00:00
miham
91d21d1a1a
(svn r2801) [Translators] Updated translations to 20050803 (2 lang(s))
2005-08-03 17:45:36 +00:00
tron
076f7ada6b
(svn r2800) Further improvement of the german translation
2005-08-03 13:34:34 +00:00
tron
e4cad82b00
(svn r2799) Make the only two non-const widget lists const
2005-08-03 13:07:29 +00:00
celestar
1d527c58cb
(svn r2798) -Codechange: Unified the rail toolbars into one that is modified by
...
request using the RailtypeInfo struct
2005-08-03 11:08:13 +00:00
bjarni
017b72d98a
(svn r2795) -Fix: [Clone vehilcle] all error messages should now tell the right vehicle type (chrishuebsch)
2005-08-02 20:14:23 +00:00
tron
124b352862
(svn r2794) Fix a comment and get rid of some parentheses using DeMorgan's law
2005-08-02 20:04:09 +00:00
miham
0be9459ece
(svn r2793) [Translations] Hand fixed polish.txt (thanks to Excumbed)
2005-08-02 19:38:18 +00:00
tron
e44b9934b1
(svn r2792) Two more untranslated strings
2005-08-02 15:51:36 +00:00
celestar
bc3a8cbdc8
(svn r2789) -Fix: Wrong Id tag :)
2005-08-02 15:24:48 +00:00
tron
df5e328f37
(svn r2788) Fix Id tag
2005-08-02 15:12:36 +00:00
tron
de298f9250
(svn r2787) Remove untranslated strings from several translations
2005-08-02 14:21:11 +00:00
tron
517619ac35
(svn r2786) Add plural forms
2005-08-02 12:38:09 +00:00
tron
09deb41e36
(svn r2785) Minor improvement of the german translation
2005-08-02 12:37:09 +00:00
miham
e0cf20441f
(svn r2784) [Translators] Updated translations to 20050802 (6 lang(s))
2005-08-02 08:53:09 +00:00
celestar
9a6975504b
(svn r2783) Fix: Hopefully fix the ID tags of bridge.h and railtypes.h
2005-08-01 21:01:18 +00:00
celestar
66fa62b3ea
(svn r2782) -Codechange: Started cleaning the bridge code. Removed numerous global variables containing bridge information and joined them in a struct. Introduced GetBridgeType and GetBridgePiece and fixed some minor stuff (whitespace etc)
2005-08-01 20:23:38 +00:00
ludde
29564f9fcf
(svn r2781) Fix some of the issues with variables in .h files.
2005-08-01 16:31:19 +00:00
tron
91353c841f
(svn r2780) Remove some more unused strings and make the use of a few strings more explicit
2005-08-01 13:01:14 +00:00
bjarni
e06d017b91
(svn r2779) -Fix: [clone vehicles] fixed typos, which could lead to crashes when cloning refitted trains (chrishuebsch)
2005-08-01 12:55:21 +00:00
tron
211280ab0e
(svn r2778) Improvement of the german translation, thanks to Wolf for some suggestions
2005-08-01 12:51:50 +00:00
tron
0226e0799d
(svn r2777) -Feature: When starting without a config file determine the language on basis of the current locale
2005-08-01 01:12:21 +00:00
tron
49c399fa83
(svn r2776) Remove removed file from the MSVC project file (:
2005-08-01 00:17:11 +00:00
tron
fc5e2d4861
(svn r2775) Deleting a file can fail, display an error message when it happens
2005-08-01 00:14:22 +00:00
celestar
fcf5ace08f
(svn r2774) -Codechange: Removed TRACKTYPE_SPRITE_PITCH globally and replaced it by a member of RailtypeInfo
2005-07-31 22:53:57 +00:00
tron
132ce0a598
(svn r2773) Revert accidently commited changes
2005-07-31 22:30:54 +00:00
tron
4190e5581d
(svn r2772) Simplify the age notice in the vehicle details window
2005-07-31 22:28:49 +00:00
miham
1adb0e868c
(svn r2771) [Translations] Latvian status changed back to unfinished due to 1341 missing strings
2005-07-31 21:20:35 +00:00
tron
42ec43e4b2
(svn r2770) Remove untranslated/corrupt strings from some languages
2005-07-31 21:08:31 +00:00
miham
74d4aff64b
(svn r2769) [Translations] Updated to 2005-07-31 (7 langs)
2005-07-31 20:36:35 +00:00
tron
de45efa479
(svn r2768) Remove 29 (hopefully) unused string
2005-07-31 17:26:32 +00:00
truelight
ed2f5d02c8
(svn r2767) -Fix: fixed potential mem-leak
2005-07-31 17:18:43 +00:00
tron
11a70c5e91
(svn r2766) Remove string and make use of the plural feature
2005-07-31 16:15:37 +00:00
orudge
773dedfd03
(svn r2765) - Update MSVC6 and Watcom projects with strgen/stdafx.c removal
2005-07-31 13:23:43 +00:00
bjarni
546c34f2e5
(svn r2764) -Feature: Clone vehicles
...
-This allows a player to clone an excisting vehicle of his own
-[fix]: this uncovered an excisting bug in CmdBuildRailVehicle() where depots could build trains of the wrong track type. This is fixed
-Thanks to Celestar for drawing the sprites and _luca_ for including them in openttd.grf
2005-07-31 13:08:08 +00:00
tron
50e41dc1d1
(svn r2763) Small cleanup and improve a few comments
2005-07-30 18:30:07 +00:00
tron
a2c42e06ed
(svn r2762) Simplify a loop, remove an unused variable and add many consts
2005-07-30 18:04:49 +00:00
miham
4761d92399
(svn r2761) [Translators] Updated translations to 20050730 (1 lang(s))
2005-07-30 17:45:29 +00:00
tron
2f54ad9310
(svn r2760) Remove stale comments, long unused stuff and simplify some checks
2005-07-30 16:29:23 +00:00
tron
b629745c16
(svn r2759) Remove unused #includes and files
2005-07-30 15:25:49 +00:00
tron
9b676d2cd9
(svn r2758) Add the AB() macro to add a value to a bit range and use it in a few places, also make use of GB and SB nearby
2005-07-30 09:29:20 +00:00
tron
79620db9be
(svn r2757) Remove unused enum
2005-07-30 08:15:15 +00:00
ludde
24986e9144
(svn r2756) Renamed railtypes into _railtypes
...
Renamed railtypes.c into railtypes.h, all other tables are in .h files. (It should be in the tables dir but I couldn't figure out how to get it there without deleting it first).
Added const and extern.
2005-07-29 22:13:04 +00:00
ludde
bb1e1f2b5f
(svn r2755) Fix: Fix a desync issue with autoreplace
2005-07-29 21:55:49 +00:00
tron
3a162799fd
(svn r2754) Move str_fmt into string.[ch]
2005-07-29 21:52:20 +00:00
celestar
1736566e22
(svn r2753) -Codechange: Introduced a new struct "RailtypeInfo" to store rail type specific information. Begun populating it with a bunch of sprites, more to come later. This should result in cleaner, more compact code which allows easy introduction of new railtypes.
2005-07-29 21:36:02 +00:00
celestar
3868b151a9
(svn r2752) -Doc: Added some doxygen stuff to rail.h. I'm gonna mess around with this file and wanted to get rid of this first
2005-07-29 19:35:23 +00:00
celestar
12b5dcb1b8
(svn r2751) -Fix: Disabled buttons in the patches and difficulty windows are now rendered properly again
2005-07-29 18:26:53 +00:00
tron
f57d263d83
(svn r2750) -Fix: Tree tiles above the snow line got redrawn disproportionately often
2005-07-29 18:22:04 +00:00
tron
6abf8f89a2
(svn r2749) Fix typo in the tile documentation
2005-07-29 17:52:29 +00:00
tron
f359d1a394
(svn r2748) Remove unused cruft from the main loop
2005-07-29 16:40:29 +00:00
celestar
1a5de9ff9b
(svn r2747) -Fix: r2736 broke the newpaper display. Sorry.
2005-07-29 15:55:14 +00:00
tron
0432a02054
(svn r2746) -Fix: SDL_SetColors() has the number of palette entries to change as parameter, not one beyond the last entry to change
2005-07-29 10:16:49 +00:00
bjarni
30a5f299f8
(svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
...
- it appeared to cause problems and strgen don't need a GUI
- renamed ottd to openttd in the app menu (Tobin)
2005-07-29 09:45:25 +00:00
tron
79292d193e
(svn r2742) Get rid of some void pointers plus a few minor changes, like 0 -> '\0'
2005-07-29 06:20:28 +00:00
bjarni
a2a5593fcc
(svn r2741) -Feature: [OSX] added a window to display asserts on OSX (Tobin)
2005-07-28 21:47:41 +00:00
tron
8677020a8b
(svn r2740) MSCV doesn't seem to like forward declared static arrays
2005-07-28 19:59:41 +00:00
tron
177fa1d163
(svn r2739) -Fix(?): Change the fence algorithm so it removes fences when no farm tile is adjacent
2005-07-28 19:23:19 +00:00
tron
64ac1a6414
(svn r2738) Small bit fiddling cleanup
2005-07-28 19:18:27 +00:00
tron
ff61e34d6c
(svn r2737) static, const and don't make variables public nobody else needs to know about
2005-07-28 09:41:09 +00:00
celestar
04f4d8237b
(svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf.
2005-07-28 09:17:32 +00:00
bjarni
139f0c95ca
(svn r2735) -Fix: [OSX] fixed issue introduced in 2733 where dedicated servers on OSX included sdl.h even when WITH_SDL was not defined (oops)
2005-07-28 09:01:41 +00:00
celestar
727dea5824
(svn r2734) -Feature: The Main Toolbar Dropdown Menu can now display disabled items
2005-07-28 08:49:29 +00:00
bjarni
4a4829fa0e
(svn r2733) -Fix: [OSX] solved include issue introduced in 2714, which prevented OSX from opening a window to run the game in (sdl.h was not included anymore)
2005-07-28 08:45:57 +00:00
celestar
21ed40bc53
(svn r2732) -Codechange: Cleaned the order flags some more. Hit some inconsistencies while trying to locate bug 1244167
2005-07-28 06:09:15 +00:00
celestar
502718caa6
(svn r2731) -Fix [ 1244171 ]: Hangar orders are now properly invalidated as soon as the airport is removed
2005-07-28 05:47:54 +00:00
tron
e2ce1f997a
(svn r2730) -Fix: Fail if the sequencer can't play audio
...
Also check the return value of CreateThread()
2005-07-27 21:45:34 +00:00
tron
2ff85cdc56
(svn r2729) Fix #include
2005-07-27 20:08:52 +00:00
tron
5821529859
(svn r2728) -Fix/Feature: Change the driver probing algorithm
...
Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds.
This should fix problems on machines with no sound card, where -s null had to be specified manually.
2005-07-27 19:57:12 +00:00
tron
6c52a8629d
(svn r2727) Fix last commit, don't ask
2005-07-27 19:26:53 +00:00
tron
c43653b565
(svn r2726) Fix last commit
2005-07-27 19:25:50 +00:00
tron
286f8726d5
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
2005-07-27 19:22:38 +00:00
bjarni
6f74bbaeec
(svn r2724) -Fix: [Autoreplace] made the pulldown menu read GetPlayer(_local_player)->avail_railtypes - this removes the need for updating this code if we add more railtypes and it also allows the menu to show maglev when monorail is not available
2005-07-27 10:11:45 +00:00
tron
249a35cfe8
(svn r2723) Make the manual page more informative
2005-07-27 07:19:28 +00:00
tron
af9f55c977
(svn r2720) Remove unused declarations and definitions
2005-07-26 19:34:03 +00:00
orudge
102653eb63
(svn r2719) - Update MSVC 2003 project (AsterixMG)
2005-07-26 19:31:05 +00:00
tron
31b480d079
(svn r2718) Forgot one file
2005-07-26 19:05:07 +00:00
tron
a16418266e
(svn r2717) Move _userstring to strings.[ch]
2005-07-26 19:04:19 +00:00
tron
7e65f44168
(svn r2716) Do not use strncat()
2005-07-26 18:47:04 +00:00
orudge
7f1877a617
(svn r2715) - Update MSVC project with dmusic.cpp updates
2005-07-26 18:45:19 +00:00
tron
44691cde0f
(svn r2714) Remove unnecessary includes
2005-07-26 18:24:18 +00:00
tron
ed2e3c77af
(svn r2712) Overhaul DirectMusic MIDI backend:
...
- Merge the .c and .cpp part into one file
- Properly deinitialize at the end
- Remove "experimental" status
- Miscellaneous smaller changes
-Fix: Volume control works now
2005-07-26 06:59:48 +00:00
miham
09204dcf44
(svn r2711) [Translators] Updated translations to 20050725 (2 lang(s))
2005-07-25 17:45:57 +00:00
tron
84f78ea44a
(svn r2710) Simplify dedicated server code a bit and don't compile it at all, if network support ist disabled
2005-07-25 16:33:58 +00:00
orudge
f60b122a68
(svn r2709) - Update VC 2003 project file (AsterixMG)
2005-07-25 11:36:02 +00:00
orudge
28a2ed0a2c
(svn r2708) Update MSVC6 project with recent changes
2005-07-25 09:52:37 +00:00
tron
4f6b8232c9
(svn r2707) Missed the paths in the BeOS MIDI player, sorry for all the noise
2005-07-25 08:16:05 +00:00
tron
2dfbb2963d
(svn r2706) Fix !WITH_NETWORK build
2005-07-25 07:28:32 +00:00
tron
b18af859ef
(svn r2705) Fix #include paths and remove unnecessary #includes
2005-07-25 07:20:32 +00:00
tron
201990b5d9
(svn r2704) Remove . from include path again, too much trouble. Also add some #ifdefs and #includes for the Windows build
2005-07-25 07:16:10 +00:00
bjarni
cb3c325e5f
(svn r2703) - Feature: [OSX] Added a native alert window to show whatever error() needs to print (Tobin made this, while I fixed some issued in it)
...
- As a bonus, we now have an objective C file (os/macosx/macos.m) to use the functions Apple made to interact with OS stuff
2005-07-24 20:47:42 +00:00
celestar
238e47cd42
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
...
by enums. There remains work in gfx.c to move the "transparency" and
"recolor" bits around to make space for more sprites. However, 2800
additional sprites can now be loaded. There also remains cleanup and
Doxygen work on many of the header files.
2005-07-24 15:56:31 +00:00
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
c7980036e9
(svn r2700) Insert Id tag into the Makefile
2005-07-24 13:55:39 +00:00
tron
384b284846
(svn r2699) Hopefully fix the compilation on Windows when SDL is not present
2005-07-24 10:39:12 +00:00
tron
475d7fc0ae
(svn r2697) Make compiling with SDL on Windows work again (missing #includes) and fix some warnings
2005-07-24 06:09:54 +00:00
tron
23c20173b1
(svn r2696) Remove stray semicolons
2005-07-23 19:48:24 +00:00
orudge
e36506b1d1
(svn r2695) - Fix: OS/2 project update, add os2.h to dedicated_v.c
2005-07-23 19:00:56 +00:00
tron
86a76d735e
(svn r2694) Various smaller changes: eol-style, static, code simplification
2005-07-23 18:46:17 +00:00
miham
3ecbbf3baf
(svn r2693) [Translators] Updated translations to 20050723 (1 lang(s))
2005-07-23 17:45:42 +00:00
tron
aef046b4d7
(svn r2692) Forgot to add a file
2005-07-23 17:23:16 +00:00
tron
4a14350711
(svn r2691) Separate dedicated video driver and fix bemidi declarations
2005-07-23 17:22:39 +00:00
orudge
60d2232c60
(svn r2690) - Minor cleanups to os2.c and hal.h
2005-07-23 16:28:19 +00:00
orudge
1e70ba752e
(svn r2689) - Split OS/2 music driver into os2_m.c, update project file
2005-07-23 16:08:05 +00:00
tron
10fd03e222
(svn r2688) MSVC and Watcom can't handle identical file names in different directories, oh my...
2005-07-23 15:48:00 +00:00
tron
54e02a620a
(svn r2687) Make a variable static
2005-07-23 15:34:05 +00:00
tron
5178ad768d
(svn r2686) Revert accidently commited change
2005-07-23 15:24:31 +00:00
tron
07a6e612ec
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
...
This results in shorter and hopefully easier to maintain files.
Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
2005-07-23 15:16:57 +00:00
tron
af1d719856
(svn r2684) Correctly save and load company_value, it's 64 bits wide, not 32 bits
2005-07-23 06:51:26 +00:00
tron
dd7321a014
(svn r2683) Remove redundant function call propagate return value
2005-07-23 06:45:57 +00:00
tron
a13d515d5e
(svn r2682) Static, casts, misc.
2005-07-22 18:19:06 +00:00
orudge
c50223526c
(svn r2681) - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand unless you know what you're doing!
2005-07-22 16:14:24 +00:00
tron
1b6ff121f4
(svn r2680) Fix a warning
2005-07-22 15:12:51 +00:00
Darkvater
290bb2fda6
(svn r2675) - Fix: pressing enter on a load-window resulted in saving the game (Luca)
2005-07-22 09:16:34 +00:00
hackykid
aa29ee6eda
(svn r2674) - CodeChange: [pbs] Generalise the PSBISPbsDepot function so it can check if an arbitrary junction is a pbs junction. Preparations for making pbs more safe.
2005-07-22 08:40:19 +00:00
tron
559babcdc9
(svn r2673) Include functions.h directly, not globally via openttd.h
2005-07-22 07:02:20 +00:00
tron
18d79cc30f
(svn r2672) Move saving/loading related declarations to saveload.h
2005-07-22 06:31:31 +00:00
miham
ad97673399
(svn r2671) [Translations] Hand-fix polish.txt
...
Translators beware! Please double check your language behaviour!
Otherwise, WebTranslator now also checks paramnumber of the plural param,
and refuses to accept badly formatted plural or gender params!
2005-07-21 22:22:26 +00:00
tron
11d21bb2a1
(svn r2670) Fix r2669
2005-07-21 22:18:02 +00:00
tron
0762aa9ec9
(svn r2669) Shuffle some more stuff around to reduce dependencies
2005-07-21 22:15:02 +00:00
miham
a446294e7c
(svn r2668) [Translations] Updated to 2005-07-21 (4 langs)
2005-07-21 21:13:42 +00:00
miham
f1bd4f1055
(svn r2667) [Translations] Restored german translations (2652:2653)
2005-07-21 19:58:36 +00:00
tron
317beebd7d
(svn r2666) w32dm.c needs MAX_PATH, which gets defined in variables.h
2005-07-21 19:57:07 +00:00
tron
e2a305144c
(svn r2665) Move some variables, which are only used by music_gui.c, there
2005-07-21 19:46:58 +00:00
tron
e53c4db866
(svn r2664) Remove depedency on player.h from variables.h
2005-07-21 19:36:43 +00:00
tron
284d9ed7fb
(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h
2005-07-21 18:44:27 +00:00
miham
31e87de71e
(svn r2662) [Translations] Updated translations to 2005-07-20
2005-07-21 18:01:43 +00:00
miham
4dde700458
(svn r2661) [Translators] Updated translations to 20050721 (1 lang(s))
2005-07-21 17:44:20 +00:00
tron
d71788c402
(svn r2660) Get rid of some more shifting/anding/casting
2005-07-21 06:31:02 +00:00
tron
5c5840417e
(svn r2659) Catch up with reality in the landscape documentation
2005-07-21 06:13:17 +00:00
celestar
85f06d6e7b
(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite
2005-07-20 22:05:13 +00:00
celestar
18a93cca3d
(svn r2657) -Codechange: The available railtypes per player are now a bitmask, so
...
that railtypes do not be in ascending order of appearance. Allows easier
implementation or more railtypes
2005-07-20 22:02:58 +00:00
miham
030c37160d
(svn r2656) [Translations] Revert changes done in 2653
2005-07-20 19:15:23 +00:00
tron
389f61218d
(svn r2655) An uint16 is an uint16, not a byte - fix wrong cast
2005-07-20 19:12:30 +00:00
tron
4130198f48
(svn r2654) SlWriteUint16() should have a uint16 as parameter, not some arbitrary enum
2005-07-20 19:08:02 +00:00
miham
3720503e7c
(svn r2653) [Translators] Updated translations to 20050720 (28 lang(s))
2005-07-20 17:48:35 +00:00
Darkvater
29b81f63fd
(svn r2652) - CodeChange: show 'too many sprites' in hex value; Patch signed off by Tron
2005-07-20 15:38:11 +00:00
Darkvater
7da16dbf4b
(svn r2651) - Fix: [ 1220776 ] Removes warning when compiling saveload.c on some GCC versions (glx). This only works as long as there is only 1 saving thread active, as is the case now.
2005-07-20 15:36:22 +00:00
tron
ac66e3e28f
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
2005-07-20 15:29:28 +00:00
ludde
f432314fa9
(svn r2649) Get rid of 2 warnings.
2005-07-20 09:49:04 +00:00
ludde
951cde5b72
(svn r2648) Only use _stdcall calling convention for zlib on win32/msvc.
2005-07-20 09:35:05 +00:00
ludde
26c8bdde43
(svn r2647) Fix: [ntp] Fix assertion error introduced in r2635
2005-07-20 09:31:46 +00:00
ludde
b8b14ac6c8
(svn r2646) Change: [ntp] Fix uninitialized variable and add some more asserts to be able to debug an assert error.
2005-07-20 09:17:20 +00:00
Darkvater
2379c59ab8
(svn r2645) Fix (useless)warning in graph_gui and add brackets around HASBIT in an if statement
2005-07-19 22:29:35 +00:00
Darkvater
f0c0c03c5f
(svn r2644) - Fix: my name was mistyped ;p
...
- Add DoDrawStringCentered() and change the multiline strings in the about box to single-line ones
2005-07-19 22:12:04 +00:00
tron
7c694f2553
(svn r2643) Get rid of some unnecessary casts
2005-07-19 21:49:35 +00:00
miham
4b1c520264
(svn r2642) [Translators] Updated translations to 20050719 (0 lang(s))
2005-07-19 21:28:15 +00:00
ludde
7a553d8439
(svn r2641) Fix: [strings] forgot to increase argv pointer twice for {CARGO}
2005-07-19 21:14:00 +00:00
Darkvater
34253195a2
(svn r2640) - CodeChange: change calling convention to __fastcall as well for vs.net2003 as it was done for vs6. Debug/Release works fine for me, if there are probs let me (+ludde) know.
2005-07-19 20:52:15 +00:00
celestar
448467a9a1
(svn r2639) -Add: Added the vehicle names in table/engines.h so that you know what line represents what vehicle (I hope I didn't mess that up). Added some comments while I'm at it and include the table/ directory in the Doxygen generation
2005-07-19 20:45:47 +00:00
Darkvater
99c17f8ac7
(svn r2638) - Fix: Unable to delete savegames. Deleting TTDLX savegames is still broken as it was always broken, but since they don't even show up; we might as well call it a feature.
2005-07-19 20:43:53 +00:00
miham
e3a75901c9
(svn r2637) [Translations] Updated to 2005-07-18
2005-07-19 16:34:46 +00:00
ludde
5862c0a174
(svn r2636) Fix: Switched to using the _fastcall calling convention instead of cdecl. (Please tell me if you get linking problems)
2005-07-19 11:55:47 +00:00
ludde
3e97dda275
(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra.
...
- Benchmark shows that NTP is now around 10x faster than NPF.
- Made IsTunnelTile macro to determine if a tile is a tunnel.
- Added some useful debugging functions for making tiles red / getting accurate timestamps.
- Remove old depot finding algorithm.
- Disable warning for signed/unsigned comparisons.
2005-07-19 11:42:40 +00:00
tron
29f6ada06a
(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138)
2005-07-19 07:20:48 +00:00
tron
c1da382e9a
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
2005-07-19 06:54:13 +00:00
tron
bbc4c5fc34
(svn r2632) Revert accidently commited change
2005-07-19 06:48:12 +00:00
tron
28a6e10a63
(svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
2005-07-19 06:47:07 +00:00
tron
6b439d6f82
(svn r2630) Forgot one Pixel (see r2571)
2005-07-19 06:31:39 +00:00
truelight
dcd97a431b
(svn r2629) -Codechange: removed stupid comment on top of players.c
2005-07-18 23:33:14 +00:00
Darkvater
5695330940
(svn r2628) - Fix: Planting trees does not result in a MapSize() assertion anymore; introduced in r2598
2005-07-18 00:17:19 +00:00
miham
e52443ebc1
(svn r2627) [Translations] Fixing typos in hungarian langfile
2005-07-17 22:20:04 +00:00
tron
59d4ab3752
(svn r2626) static, const, misc.
2005-07-17 20:14:58 +00:00
hackykid
1d11bbb34d
(svn r2625) - Fix: [pbs] Store the end of a train's reserved path explicitly. Prevents trains from unreserving eachothers paths in some cases.
...
- CodeChange: Use the TrackdirToTrack function instead of &7, and remove an unneeded variable.
2005-07-17 20:09:02 +00:00
Darkvater
eabc482184
(svn r2624) - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions.
2005-07-17 19:38:40 +00:00
Darkvater
0550c4a87a
(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. Instead of giving center + width you give the coordinates of the bounding box (left, right) it has to fit in (ludde)
...
- CodeChange: changed (back) maximum pixel length of truncated strings to a signed integer.
2005-07-17 19:23:18 +00:00
ludde
52b42ff508
(svn r2622) Fix: remove _cargoc.names_p, it was never used.
2005-07-17 18:49:05 +00:00
hackykid
edbe969d23
(svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status.
2005-07-17 18:48:45 +00:00
ludde
df08e10cfa
(svn r2620) Fix: [language] Fix broken french.txt and polish.txt
2005-07-17 18:48:05 +00:00
ludde
abc9376308
(svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tron
2005-07-17 18:36:47 +00:00
Darkvater
39c9b8a665
(svn r2618) - Fix: add mersenne.c to VS6 project file (ludde)
2005-07-17 18:20:55 +00:00
Darkvater
ff2662ebe7
(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings
2005-07-17 18:11:17 +00:00
tron
b9a6c16461
(svn r2616) Don't stop when compiling a language fails, just delete the defective .lng
2005-07-17 18:09:23 +00:00
miham
71277a2283
(svn r2615) [trrnasltwsds] 45253rqwer2
2005-07-17 17:57:57 +00:00
Darkvater
dfc3695ad7
(svn r2614) - Fix: Trunctuate function used one less character than it was supposed to. Because of this real width and reported width didn't correspond with eachother.
2005-07-17 17:16:35 +00:00
Darkvater
f8b7b107d8
(svn r2613) - Truncate savegames, and vehicle-texts in their window.
...
- Hardcoded width 5 for saves-path...oops :O
2005-07-17 17:15:33 +00:00
truelight
99c6944497
(svn r2612) -Fix: corrected headers for ai_new.h
2005-07-17 16:22:27 +00:00
Darkvater
0eef2daf06
(svn r2611) - CodeChange: use standardized truncutation with the newsmessage-history window as well
2005-07-17 16:02:17 +00:00
Darkvater
3e49626aec
(svn r2610) - Feature: set server map name to the loaded name of the game/scenario. Also truncate where neccessary
...
- Feature: truncate the path of the saveload window
2005-07-17 16:01:26 +00:00
Darkvater
80aa8c868b
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
2005-07-17 15:58:47 +00:00
Darkvater
d355aa11a5
(svn r2608) - Fix: add strings.h to vs.net2003 project file
2005-07-17 15:55:26 +00:00
Darkvater
7fceed0446
(svn r2607) - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde.
2005-07-17 15:54:57 +00:00
truelight
a09342c1fc
(svn r2606) -Codechange: renamed ai.c to ai_old.c, and ai.h to ai_new.h to make room
...
for a global AI-handler
2005-07-17 15:34:10 +00:00
ludde
1022bf7d93
(svn r2605) Fix [languages] Add ##plural command in all langfiles.
2005-07-17 14:03:33 +00:00
ludde
2fd162b8dd
(svn r2604) Fix: removed unused variable
2005-07-17 13:46:42 +00:00
ludde
62011eed95
(svn r2603) Fix [multistop] Fix problem with multistop handling, the range in my fix was way too high. Also only lock a slot for 5 days instead of 30.
2005-07-17 13:45:43 +00:00
truelight
658f9cb03f
(svn r2602) -Codechange: removed unused variable (disable_computer)
...
-Fix: Changed some stuff to make server-side AIs possible in the far future
2005-07-17 13:34:19 +00:00
ludde
3ce9fb6bbd
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
2005-07-17 12:49:00 +00:00
ludde
b76a0b8158
(svn r2600) Fix: [vehicles] Fix problem with vehicle loop not distributing the calls evenly over the day.
2005-07-17 12:44:35 +00:00
ludde
718307ffa4
(svn r2599) Fix: Road vehicle multistop handling used NPF even if NPF was off????
...
- Also simplified/optimized the code.
- Now it uses manhattan distance as an approximation instead of actual distance to find the distance. Much faster.
2005-07-17 12:29:33 +00:00
tron
2469cedd15
(svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill
2005-07-17 11:09:03 +00:00
ludde
b72e1fb67d
(svn r2597) Feature: [string system] Support cases.
...
- Cases are used to change a string, such as Coal Mine, depending on the surrounding context.
- Cases are defined like "STR_4802_COAL_MINE.ack :Coala Mina"
- All cases need to be listed on the top of the file like this "##case ack"
- When using the string, type {STRING.ack} to choose the "ack" version of Coal mine.
- Also combined the strgen arrays into a struct, and fixed a bug with SetXY.
2005-07-17 10:18:23 +00:00
tron
10bc66eb42
(svn r2596) Add macros ROL and ROR to ROtate values Left/Right. Also shorten the parameter names for GB and SB to increase readability
2005-07-17 09:41:28 +00:00
celestar
9ca761b065
(svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is steep
...
(i.e. spans two height levels) and use it throughout the code.
-Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to
build a depot on it. Wraps some bitmagic which seems quite unreadable at
first glance
2005-07-16 23:47:37 +00:00
ludde
64f6839816
(svn r2594) Fix: [strgen] Misc updates to the string system.
...
- Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used)
- Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P}
- Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING}
- Updated the swedish/english translation with P strings.
2005-07-16 20:58:04 +00:00
miham
01f3b6b6fe
(svn r2593) [Translators] Updated translations to 20050716 (27 lang(s))
2005-07-16 17:46:58 +00:00
ludde
61558dcb3d
(svn r2592) Feature: [strgen] New way to specify plural forms.
...
- {NUM} {PLURAL 0 car cars}: Prints either car or cars depending on if the argument 0 is plural.
Also supports languages with weird plural forms such as Polish.
The plural format needs to be specified in the beginning of the langfile, like "##plural 7" for Polish.
2005-07-16 17:12:32 +00:00
ludde
11d9f50115
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
2005-07-16 15:05:52 +00:00
ludde
bd974bb443
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
2005-07-16 14:29:36 +00:00
ludde
8ff1f8c526
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
2005-07-16 12:59:23 +00:00
ludde
f12b3a0c18
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
2005-07-16 12:30:03 +00:00
Darkvater
19cb5e054a
(svn r2587) - Fix: Don't close the save-thread if it wasn't started because of some error or a network-server
2005-07-16 09:55:31 +00:00
Darkvater
85ef06a0b5
(svn r2586) - Fix [Makefile]: add mersenne.c to VS.NET2003 project file
2005-07-15 21:31:09 +00:00
Darkvater
95463428c8
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
2005-07-15 21:28:26 +00:00
Darkvater
c496d92c3e
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
2005-07-15 21:17:38 +00:00
ludde
71f9078bdd
(svn r2583) Move OS specific code out of misc.c
...
Added support for Mersenne Twister random number generator (not implemented in network yet)
Wrap player randoms around #ifdef
2005-07-15 20:29:06 +00:00
ludde
c964809d37
(svn r2582) Fix: Prevent generating unrealistically many Oil refineries on large maps. They are always placed next to the borderline, so the perimeter is used instead of area to scale the number of those industries.
2005-07-15 19:51:54 +00:00
ludde
6a3f58e050
(svn r2581) Fix: Behave a bit safer if central server sends bogus information about clients.
...
Change: Made code a little bit more readable by putting _selected_item in a local var with a shorter name.
2005-07-15 18:43:39 +00:00
ludde
3486e7e9d5
(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way.
...
- The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT.
Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
2005-07-15 18:30:13 +00:00
ludde
157addf5e9
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
2005-07-15 17:59:55 +00:00
miham
ade7446522
(svn r2578) translation fix
2005-07-15 17:58:31 +00:00
miham
a528102994
(svn r2577) [Translators] Updated translations to 20050715 (26 lang(s))
2005-07-15 17:45:54 +00:00
celestar
ab51051fcf
(svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook
2005-07-15 16:50:39 +00:00
ludde
20e60e5411
(svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1)
2005-07-15 16:29:30 +00:00
ludde
a069876725
(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system.
...
Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
2005-07-15 15:09:52 +00:00
ludde
2fa79c9b4d
(svn r2572) - Codechange: [string] Changed string system so it's not as dependent on decode_parameters
...
- Feature: [strgen] Allow changing the order of parameters in translated strings.
- Use {1:TOWN} syntax to set the order.
- Codechange: [strgen] Rewrote lots of strgen internals.
2005-07-15 14:53:44 +00:00
tron
8f71864bef
(svn r2571) Add explicit type Pixel for ... Pixels
2005-07-15 14:16:14 +00:00
ludde
b21ee889fe
(svn r2570) Fix: Removed some code that had no effect.
2005-07-15 12:16:16 +00:00
tron
a9b4e7963b
(svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines
2005-07-15 09:01:23 +00:00
tron
a9aa4dc61b
(svn r2568) Small cleanup in strgen: static, bracing, ...
2005-07-15 07:48:17 +00:00
miham
90e2a41027
(svn r2567) [Translators] Updated translations to 20050714 (2 lang(s))
2005-07-14 17:45:02 +00:00
tron
b4f549f4ee
(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway
2005-07-14 15:10:20 +00:00
ludde
53851d5e77
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
2005-07-14 09:53:52 +00:00
ludde
3e62457107
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".
...
Added a way to bind a C-string to an openttd string which doesn't modify the game state.
2005-07-14 09:43:59 +00:00
tron
1a046ff4c6
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
2005-07-14 06:10:23 +00:00
ludde
be98b1bf7e
(svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now.
2005-07-13 20:41:44 +00:00
ludde
a1ec4aff77
(svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore.
2005-07-13 20:35:52 +00:00
ludde
6013b327f7
(svn r2560) Fix: various minor code changes.
...
Added RandomTile/RandomTileSeed functions to generate a random tile.
Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though)
Changed some frequently used map macros to not compute the values each time.
Silence some warnings on MSVC.
2005-07-13 19:51:31 +00:00
ludde
4b006aa6cf
(svn r2559) Cleaned up new saveload code for the map
2005-07-13 18:46:51 +00:00
tron
8c1d74162f
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
2005-07-13 18:04:01 +00:00
celestar
1a1dde7c8d
(svn r2557) -Add: Added the AUTOBRIEF option to the Doxyfile
2005-07-13 09:51:01 +00:00
Darkvater
4c8e6bbbb3
(svn r2556) -Fix: update newline style of new files to native. Don't forget this when you add a new file! 'svn ps svn:eol-style native <file>'
2005-07-12 21:27:56 +00:00
tron
9c94a0ed6f
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
2005-07-12 21:13:30 +00:00
ludde
ebe3b89b98
(svn r2554) - Fix: [pathfinding] Change to using some helper functions for checking the railtype.
2005-07-12 20:41:17 +00:00
ludde
f523be81d4
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder.
...
- Penalties for red signals and for slopes.
- Increased the search depth to work better with large train networks.
2005-07-12 20:28:19 +00:00
ludde
dc9b51f110
(svn r2552) - Fix: [map] Fix so the code compiles correctly and doesn't crash on MSVC6 in optimization mode.
2005-07-12 19:57:41 +00:00
miham
9a1b3fc181
(svn r2551) [Translations] Added slovenian language (~20% complete)
2005-07-12 19:51:58 +00:00
ludde
b5a30ed0fc
(svn r2550) raise 32767 limit of gamma values, and 16MB limit of RIFF chunks in saveload code.
2005-07-12 19:15:56 +00:00
miham
6ea60aba31
(svn r2549) [Translators] Updated translations to 20050712 (1 lang(s))
2005-07-12 17:45:09 +00:00
Darkvater
b867b113cc
(svn r2548) -Fix: blinking 'lock' gfx in multiplayer games. Some pixels had special values that triggered palette-change
2005-07-12 10:50:56 +00:00
miham
db04a7cb35
(svn r2547) [Translators] Updated translations to 20050711 (3 lang(s))
2005-07-11 17:45:26 +00:00
tron
9c3188741f
(svn r2546) Don't calculate a value which never gets used and simplify some calculations
2005-07-11 15:47:20 +00:00
celestar
f479013b14
(svn r2545) -Fix: Modified the Doxyfile so that it works on other computers (than mine) as well :)
2005-07-11 09:12:41 +00:00
celestar
a63bb6f650
(svn r2544) -Add: Added the Doxyfile to the trunk. run "doxygen" to generate html-based documentation on the source code on the fly (about 9MB in size currently).
...
documentation will be stored in docs/source/html/ (request by blathijs)
2005-07-11 09:00:49 +00:00
miham
8c0dfab281
(svn r2543) [Translators] Updated translations to 20050710 (2 lang(s))
2005-07-10 17:46:07 +00:00
truelight
3c9456dd45
(svn r2542) -Add: [GPMI] Added GPMI ( http://sourceforge.net/projects/libgpmi/ )
...
support to OpenTTD in preperation of AIScripts (long term). It is OFF
by default. Add GPMI:=1 to Makefile.config to enable.
2005-07-10 14:57:43 +00:00
celestar
b45eee3157
(svn r2541) -Feature: Modified IsCompatibleRail so that an engine can move on more
...
than one railtype (like Diesel engines on electrified rail).
-Codechange: Use IsCompatibleRail where it should be used
2005-07-10 01:25:17 +00:00
miham
5286a014ec
(svn r2540) [Translators] Updated translations to 20050709 (12 lang(s))
2005-07-09 17:45:57 +00:00
matthijs
ff0383dace
(svn r2539) * Fix: Mixed up use of trackdirs and directions in GetTileRailType() causes NPF to not consider routes under bridges.
2005-07-09 13:45:21 +00:00
hackykid
418e032fac
(svn r2538) - Fix: Use IsCompatibleRailType() function instead of checking this yourself.
2005-07-09 11:39:35 +00:00
tron
6cef71b1b2
(svn r2537) Small changes, especially use fprintf to stderr for warnings and errors instead of plain printf
2005-07-09 09:24:34 +00:00
Darkvater
6a645a3eb8
(svn r2536) - Fix: [ 1215999 ] Segmentation fault in main menu - corrupted sample.cat. Flush the output buffer to print the error message before the game crashes. (mcmohr)
2005-07-09 00:14:40 +00:00
tron
1b4a0897b6
(svn r2535) Tabs
2005-07-08 22:25:24 +00:00
tron
83f72f696a
(svn r2534) Small cleanup
2005-07-08 21:24:27 +00:00
tron
3f91650d6e
(svn r2533) Move misplaced parenthesis, found by ludde
2005-07-08 19:46:41 +00:00
hackykid
fbe617baba
(svn r2532) - Fix: Don't waste space using an int where a byte would suffice. (ludde)
2005-07-08 19:02:26 +00:00
miham
15a783ef82
(svn r2531) [Translators] Updated translations to 20050708 (1 lang(s))
2005-07-08 17:46:10 +00:00
Darkvater
a014ef6340
(svn r2530) - Fix: [ 1219829 ] Mouse-wheel crashes OTTD. Widget detection failed to detect the most-right and most-bottom pixels of a widget. If scrollwheel is used on a not-found widget (such as the background of the toolbar), it will now fail correctly (glx)
2005-07-08 00:14:19 +00:00
Darkvater
480ced43c9
(svn r2529) - Fix: PBS signals showed up as normal signals with the query tool
...
- Update landscape_grid.html to show busy bits used by PBS.
2005-07-07 22:15:34 +00:00
Darkvater
edcccb6ab2
(svn r2528) - Fix: TTDPatch games had garbage in _map3[hi]&0xF0 which interfered with OpenTTD PBS functionality; fixed in oldloader
...
- Fix: TTD AI internals are still a puzzle and the AI in state 'SellVehicle' doesn't have a valid vehicle, so change the state to something harmless. Both fixed make sure that Megarail TTD scenario works
2005-07-07 22:14:37 +00:00
Darkvater
86d6cebb53
(svn r2527) - Clarify map-description file. Bits are from left to right with the lowest bit on the left. Eg. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... Is that clear?
2005-07-07 15:21:55 +00:00
hackykid
e5df099c9b
(svn r2525) - Fix: [pbs] Fix a mistake in the comments/docs.
2005-07-06 10:43:36 +00:00
Darkvater
e4215f1751
(svn r2524) - Add pbs.[ch] to VS.NET2003 and VS6 project files.
2005-07-06 10:41:56 +00:00
tron
513dc78ebc
(svn r2523) Readd a comment which got lost in r2522
2005-07-06 06:18:53 +00:00
tron
a06b2fdc44
(svn r2522) Reorganize sprite load and decompression in order to remove a special case from the sprite blitter, which decompressed certain sprites every time when blitting them
2005-07-05 19:54:35 +00:00
celestar
b29556e6b5
(svn r2521) -Codechange: Removed trailing "\n"s from DEBUG statements
2005-07-05 17:47:10 +00:00
miham
7b39e32c93
(svn r2520) [Translators] Updated translations to 20050705 (14 lang(s))
2005-07-05 17:45:50 +00:00
orudge
9b395f4d81
(svn r2519) - Fix: Update OS/2 project with pbs.c
2005-07-05 12:10:06 +00:00
tron
42d086b212
(svn r2518) Small cleanup
2005-07-05 11:09:18 +00:00
hackykid
5fb14350a0
(svn r2517) - Fix: [pbs] Detect end-of-lines properly regarding depots.
2005-07-04 15:25:06 +00:00
hackykid
60ddaf95f0
(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal.
...
- Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings.
- Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
2005-07-04 14:58:55 +00:00
celestar
b872cf7f7b
(svn r2515) -Codechange: Removed a good deal of magic sprite numbers in the rail drawing code, and placed neatly into arrays and enums. This also makes way to implement more railtypes without having to do tons of ugly hacks.
2005-07-04 10:01:06 +00:00
matthijs
fb8e5f61b1
(svn r2514) - Codechange: [NPF] Move the checking of railtype into a funciton IsCompatibleRail().
...
- Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails.
- Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138)
2005-07-03 13:02:54 +00:00
tron
6df35235d5
(svn r2513) Small cleanup
2005-07-03 11:31:03 +00:00
tron
6c5df28d7c
(svn r2512) Small cleanup
2005-07-03 10:22:20 +00:00
tron
ae032390e2
(svn r2511) Fix an old bug in the PCX writer: The first pixel column contained garbage, the picture was shifted one to the right, and the last column was dropped
2005-07-03 07:51:13 +00:00
miham
8051d5c296
(svn r2510) [Translators] Updated translations to 20050702 (1 lang(s))
2005-07-02 17:45:05 +00:00
celestar
ee97db70c5
(svn r2507) -Fix: Forgot to change an enum in rail.h in r2499 (thanks blathijs for
...
pointing it out)
2005-07-02 13:03:56 +00:00
bjarni
265e243832
(svn r2506) - Fix: [OSX, makefile] The makefile can now also see OSX 10.4 as OSX
2005-07-01 18:16:16 +00:00
tron
229fbefc03
(svn r2505) Remove some unnecessary #includes
2005-07-01 15:46:27 +00:00
tron
b64c9b8b1f
(svn r2504) Move Draw*EngineInfo to engine_gui.c to reduce dependencies
2005-07-01 14:05:44 +00:00
tron
cd8d2643d3
(svn r2503) Small cleanup
2005-07-01 06:25:35 +00:00
tron
c92e85a357
(svn r2502) Small cleanup
2005-06-30 19:49:01 +00:00
tron
75bb548da4
(svn r2501) Forgot to change part of the win32 code in r2497
2005-06-30 19:28:00 +00:00
miham
46074e0dd8
(svn r2500) [Translators] Updated translations to 20050630 (1 lang(s))
2005-06-30 17:45:14 +00:00
celestar
27e61cbd84
(svn r2499) -Codechange: Moved the semaphore bit from bit 2 to bit 3 in _map_hi for rails, in order to make way for pbs
2005-06-30 13:24:17 +00:00
tron
7ff19d7dfd
(svn r2498) -Fix: [1230241] The console variable autoclean_unprotected was linked to the variable _network_autoclean_protected
2005-06-30 12:42:27 +00:00
tron
9d75047211
(svn r2497) Use a struct array for palette entries instead of a flat byte array
2005-06-30 05:27:32 +00:00
tron
6e72d514b7
(svn r2496) -Fix: [1179933] When toggling build/remove via keyboard the selection wasn't correctly redrawn
2005-06-29 08:14:09 +00:00
miham
a45b6278d1
(svn r2495) [Translators] Updated translations to 20050628 (1 lang(s))
2005-06-28 17:45:15 +00:00
hackykid
fc43b1ba09
(svn r2494) - Fix: [newgrf] Dont assume a spriteset can only have 4 or 8 sprites.
2005-06-27 21:34:31 +00:00
miham
b38358f8b7
(svn r2493) [Translators] Updated translations to 20050627 (1 lang(s))
2005-06-27 17:45:21 +00:00
tron
ab7b8b50e3
(svn r2492) Remove some pointless casts and fix some nearby indentation
2005-06-27 06:57:24 +00:00
celestar
78fed52627
(svn r2491) -Fix: Solved a performance problem introduced in r2467. While busy
...
committing, restore the sort order in the Makefile
2005-06-26 21:59:21 +00:00
miham
0407bc8cfe
(svn r2490) [Translators] Updated translations to 20050626 (2 lang(s))
2005-06-26 17:45:13 +00:00
tron
d29b922636
(svn r2489) static, bracing style and use clamp()
2005-06-25 19:08:58 +00:00
miham
9e239ec36e
(svn r2488) [Translators] Updated translations to 20050625 (1 lang(s))
2005-06-25 17:45:40 +00:00
tron
bec5e4fb4c
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
2005-06-25 16:44:57 +00:00
tron
61f6f07edd
(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
2005-06-25 06:15:43 +00:00
tron
cea090af09
(svn r2485) Missed two uint -> TileIndex, thanks _Luca_
2005-06-24 17:41:08 +00:00
orudge
c12319535b
(svn r2484) - Fix: Update Watcom project file (add rail.c)
2005-06-24 13:55:29 +00:00
tron
3154e7148d
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
2005-06-24 12:38:35 +00:00
miham
3448729ff3
(svn r2482) [Translators] Updated translations to 20050623 (1 lang(s))
2005-06-23 18:32:41 +00:00
miham
9a2b39f0ba
(svn r2481) [Translators] Updated translations to 20050623
2005-06-23 18:07:17 +00:00
miham
86ddee5d79
(svn r2480) [Test] Removed dummy file
2005-06-23 17:55:21 +00:00
miham
f39f9fab3d
(svn r2479) [Test of the new language-commiter system, please ignore it!]
2005-06-23 17:48:54 +00:00
miham
2a65590755
(svn r2478) [Translations] Updated to 2005-06-23 (?? str / 10 langs)
2005-06-23 13:35:41 +00:00
truelight
f1b7957028
(svn r2477) -Nothing: SVN Mirror Test 2/2
2005-06-23 13:21:10 +00:00
truelight
f43275fab4
(svn r2476) -Nothing: SVNMirror Test File
2005-06-23 13:00:45 +00:00
celestar
56f3bc9e69
(svn r2475) -Fix: [ 1214982 & 1217473 ] realistic acceleration problem. (glx)
2005-06-23 06:19:06 +00:00
hackykid
7b0c767238
(svn r2474) - Fix: [newgrf] Some road vehicle action 0 properties were loaded as the wrong type (int8,int16,int32) causing undefined results. (like cargo types being wrong)
2005-06-23 01:26:54 +00:00
matthijs
7549cb5271
(svn r2473) - Add: VehicleMayEnterTile(), which checks if the tile owner of a tile is correct for a vehicle to enter it. Based upon glx's code.
...
- Fix: [ 1203769 ] [NPF] NPF tries to plan over bridges, through tunnels, over level crossings of other players. (glx)
- Codechange: Renamed TRANSPORT_MAX to TRANSPORT_END and added INVALID_TRANSPORT.
- Codechange: Moved IsLevelCrossing() from tile.h to rail.h
- Add: GetCrossingTransportType(), which returns the transport type (road, rail) of both tracks on a level crossing.
- Removed old TODO that was fulfilled already.
2005-06-22 22:38:18 +00:00
miham
3192b4becd
(svn r2472) [Translations] Updated to 2005-06-22 (1 str / 1 lang + 1 string modified in english.txt lately)
2005-06-22 18:00:48 +00:00
matthijs
4806ac05a7
(svn r2471) - Fix: [ 1221249 ] [NPF] Vehicles try to drive into a tunnel entrance from above.
2005-06-22 01:06:04 +00:00
hackykid
003b4e7f15
(svn r2470) - Fix: Display station signs correctly in smallest zoom level in transparent buildings or tranparant station signs mode. (Peter1138)
2005-06-21 21:13:10 +00:00
hackykid
5119cce2a8
(svn r2469) - Add: When removing tracks with the 'remove' tool, have it automatically remove signals on the tracks.
2005-06-21 19:45:05 +00:00
celestar
aa7334a3ec
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
2005-06-21 16:28:17 +00:00
hackykid
e2df1d71d5
(svn r2467) - Fix: [newgrf] Prevent trains with shorter wagons breaking apart when reversing in some cases. (Therax)
2005-06-21 14:50:08 +00:00
miham
e5ccce418f
(svn r2466) [Translations] Updated to 2005-06-21 (37 strs / 2 langs)
2005-06-21 07:30:01 +00:00
tron
c887ff331a
(svn r2465) Remove some unreachable code
2005-06-20 20:09:46 +00:00
tron
0be5b38286
(svn r2464) Move definition of _inclined_tileh out of variables.h
2005-06-20 20:08:10 +00:00
Darkvater
e9115f28c9
(svn r2463) - Fix: partly revert the strncat madness and update nightly script (invisible) to correctly insert date.
2005-06-20 19:39:49 +00:00
miham
6b5fa4cd0e
(svn r2462) [Translations] Updated to 2005-06-20 (202 strs / 5 langs)
2005-06-20 09:33:43 +00:00
bjarni
1a96770d81
(svn r2461) -Feature [Makefile] libpng-config can now be called something else in Makefile.config
...
useful if you for some reason got a libpng-config, which is called something else
2005-06-19 17:05:24 +00:00
hackykid
4754dad0d6
(svn r2460) - Fix: Prevent assertion failure when trying to drag signals starting from a non-rail tile.
...
- CodeChange: Remove unused variable in CmdSignalTrackHelper.
2005-06-19 11:56:07 +00:00
Darkvater
3042e945d3
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
2005-06-18 20:23:35 +00:00
truelight
fc96e80688
(svn r2458) -Fix: Quickfix to make dedicated-server compile again. We need a more ellegant way to fix this...
2005-06-18 15:08:35 +00:00
truelight
7721a2efe4
(svn r2457) -Fix: typo in Makefile for OSX builds
2005-06-18 10:02:47 +00:00
matthijs
d90840f7f8
(svn r2456) * Prettyfied npf.c using enums and wrappers from rail.h.
...
* Moved GetTileRailType() from npf.c to rail.[ch].
2005-06-17 17:11:05 +00:00
miham
7e9e233b37
(svn r2455) [Translations] Updated to 2005-06-17 (100+ strs / 10+ langs)
2005-06-17 13:39:59 +00:00
matthijs
958df2b229
(svn r2454) * Codechange: Move #include "stdafx.h" and "openttd.h" from rail.h to rail.c
...
* Codechange: Move declaration of lookup arrays into the functions that need them. This doesn't pollute the global namespace with the array names.
* Add: rail.h to the openttd.vcproj and openttd.dsp for MSVC.
2005-06-17 11:30:50 +00:00
matthijs
3c133f1f53
(svn r2453) * CodeChange: Declared the lookup arrays in rail.h as extern, so the linker will complain if they are not defined (ie when rail.c is not included).
2005-06-17 09:53:22 +00:00
tron
8c6fa13faa
(svn r2452) Fix defect in r2448 which caused building tracks unexpectedly fail or succeed
2005-06-17 07:35:10 +00:00
matthijs
c81de3e1e9
(svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected.
2005-06-17 00:46:33 +00:00
matthijs
8e53533786
(svn r2450) * Codechange: Replaced all uses of the arrays in tile.h with calls to the associated wrapper functions.
...
* Codechange: Made npf.c use some map array accessing wrappers instead of direct access.
* Codechange/Fix: Named every enum in tile.h. Fixes a nasty bug on MSVC where arrays would be initialised with zeroes (tnx Asterix_)
* Removed magic numbers from tables in tile.c.
* Added some explicit casts in tile.h.
2005-06-17 00:22:46 +00:00
matthijs
bacc5396e6
(svn r2449) * Added an extra warning to the stopall command, "For debugging only!".
2005-06-16 20:54:37 +00:00
matthijs
9cb58e0bb3
(svn r2448) General cleanup of rail related code, more to follow.
...
* Add: rail.[ch] for rail-related enums and wrapper functions.
* Codechange: Removed dozens of magic numbers with below enums.
* Codechange: Rewrote CheckTrackCombination().
* Add: TILE_SIZE, TILE_PIXELS and TILE_HEIGHT constants.
* Add: enums RailTileType, RailTileSubtype, SignalType to mask against the map arrays.
* Add: enums Track, TrackBits, Trackdir, TrackdirBits for railway track data. (Note that the old RAIL_BIT constants are replaced by TRACK_BIT ones).
* Add: enums Direction and DiagDirection
* Codechange: Moved a bunch of track(dir) related lookup arrays from npf.[ch] to rail.[ch].
* Codechange: move RailType enum from tile.h to rail.h.
* Add: Wrapper functions for masking signal status in the map arrays: SignalAlongTrackdir, SignalAgainstTrackdir and SignalOnTrack.
* Add: Wrapper functions to access rail tiles, using above enums
* Add: Wrapper functions to modify tracks, trackdirs, directions, etc.
* Add: Wrapper functions for all lookup arrays in rail.[ch] (Arrays are still used in parts of the code)
* Codechange: Renamed some variables and arguments to better represent what they contain (railbit -> track, bits -> trackdirbits, etc.).
* Codechange: Don't use FindLandscapeHeight() in CmdRemoveSingleRail(), since it returns way too much info. Use GetTileSlope() instead.
* Codechange: [NPF] Removed some unused globals and code from npf.c.
2005-06-16 18:04:02 +00:00
matthijs
fc5784a310
(svn r2447) * Add: [NPF] Penalty for road vehicles making turns.
2005-06-16 17:53:40 +00:00
matthijs
085cc7ca0e
(svn r2446) * Made os/debian/rules executable.
2005-06-16 01:25:01 +00:00
matthijs
2e42c82793
(svn r2445) * Add: "stopall" console command, which forcibly stops all vehicles (useful for debugging).
2005-06-16 00:54:19 +00:00
hackykid
8607bbf06d
(svn r2444) - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_)
2005-06-15 17:27:14 +00:00
celestar
b73099e083
(svn r2443) -Fix: somehow I delete one line too many :(
2005-06-15 17:18:32 +00:00
miham
6358c91a5e
(svn r2442) [Translations] Updated to 2005-06-15 #2 . (27+X strs / all lang)
...
[Translations] 10 strings got added, 8 strings got changed in english.txt, lots of work ahead
2005-06-15 17:09:24 +00:00
celestar
9b8cb17831
(svn r2441) -Feature: You can now give transfer order to set up feeder systems
2005-06-15 16:58:15 +00:00
hackykid
85fae22fa8
(svn r2440) - Fix: [newgrf] Fix the spritesorter to handle overlapping sprites properly, this fixes display problems with really short wagons. (algorithm by patchman, ported by therax)
...
- Fix: [newgrf] Too short wagons could break the 'follow next vehicle' code used in the traincontroller. Clamp better to prevent this.
2005-06-15 14:04:48 +00:00
miham
d2869fbb5f
(svn r2439) [Translations] Updated to 2005-06-15 (6 strs / 3 lang)
2005-06-15 09:28:02 +00:00
hackykid
6533db736c
(svn r2438) - Feature: New display option, 'transparent station signs', makes station signs transparent instead of using a solid bar to draw text on (peter1138)
2005-06-14 10:59:05 +00:00
miham
89bd0b50b6
(svn r2437) [Translations] Updated to 2005-06-10 (28 strs / 5 lang)
2005-06-10 07:41:26 +00:00
Darkvater
65a00ea754
(svn r2436) - Fix: Deleting canals under bridges removes bridges first in certain configurations (peter1138)
2005-06-09 13:54:08 +00:00
miham
9ec944003b
(svn r2435) [Translations] Updated to 2005-06-08 (11 strs / 1 lang)
2005-06-08 15:13:50 +00:00
tron
ea0f21fbcc
(svn r2434) Fix some defects in r2433
2005-06-08 09:03:29 +00:00
Darkvater
0171aae109
(svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
2005-06-07 21:37:00 +00:00
tron
fa8f46c0b7
(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
2005-06-07 18:13:49 +00:00
hackykid
d0cdb45b6c
(svn r2431) - Fix: [newgrf] clamp() instead of assert() on the result of the vehicle length calculation, as it can depend on external input. (thanks tron)
2005-06-07 16:44:54 +00:00
miham
8a0f4f32ea
(svn r2430) [Translations] Updated to 2005-06-07 (118 strs / 8 langs)
2005-06-07 16:11:19 +00:00
hackykid
0d926eee37
(svn r2429) - Fix: Oops, forgot to increase the size of the autoreplace window to fit the extra info from powered wagons.
2005-06-07 01:21:56 +00:00
hackykid
6d78b70075
(svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.
...
- Codechange: Remove some magic numbers (PALETTE_CRASH)
2005-06-06 22:44:11 +00:00
hackykid
4184611d3a
(svn r2427) - Fix: CmdMoveRailVehice; Prevent possible assertion failure when moving vehicles within one chain.
2005-06-06 21:32:04 +00:00
miham
ac1af7848e
(svn r2426) [Translations] Updated to 2005-06-06 #2 . (133 strs / 12 langs)
2005-06-06 19:18:40 +00:00
Darkvater
b2b0f6f3ce
(svn r2425) - Fix (regression): wrong sprite for level-land cursor (thx Tron)
...
- CodeChange: change MapSizeX() - 1 to MapMaxX() in the smallmap drawing code
2005-06-06 17:30:52 +00:00
Darkvater
7dd5578477
(svn r2424) - Fix: backport the smallmap_gui.c changes from the map/ branch into trunk. This also implicitely fixes the bug where the game would crash in certain resolutions with certain minimap masks when dragged partly outside the game-area.
2005-06-06 15:58:58 +00:00
hackykid
2d19785e43
(svn r2423) - CodeChange: Include first_engine in the train cache, instead of calculating it all over the place.
...
- Fix: Also recalculate the train cache values for 'wagon chains' (in the depot without an engine), to avoid possible desyncs later.
- Fix: Make CmdMoveRailVehicle update the caches of the correct trains in all cases.
2005-06-06 14:26:15 +00:00
Darkvater
d549523f96
(svn r2422) - Codechange: magic number fix in network window (anonymous)
2005-06-06 14:11:15 +00:00
Darkvater
fd80208af9
(svn r2421) - how come you didn't get committed you evil file? Be gone!
2005-06-06 14:07:50 +00:00
Darkvater
5fed47964e
(svn r2420) - Codechange: magic number elminitation of cursorsprites.
2005-06-06 13:47:06 +00:00
Darkvater
71c2a573e1
(svn r2419) - Fix: saving no longer changes your cursor if it is in a non-mouse state.
...
- Fix: autosaving/loading; it no longer returns a fail code when saving is already in progress. In the case of a load, the game pauses to wait for the save to finish. (glx)
- Fix (regression): fix a bug in the 'buggy load' code where a wrong offset was used for the LZO format.
2005-06-06 13:11:35 +00:00
Darkvater
c1173657c7
(svn r2418) - Fix: typo
2005-06-06 12:27:47 +00:00
Darkvater
2bcb41293f
(svn r2417) - Fix: threads on morphos are apparently unexistent, so implement stubs for them (tokai)
2005-06-06 12:11:44 +00:00
miham
7992e105f9
(svn r2416) [Translations] Updated to 2005-06-06 (lots of strings has changed in english, therefore further changes ahead..)
2005-06-06 05:29:06 +00:00
hackykid
2fbb96bfa5
(svn r2415) - Fix: [newgrf] Powered Wagons - Don't assume an undefined callback will fail.
2005-06-06 01:31:36 +00:00
hackykid
1018d3b786
(svn r2414) - Feature: [newgrf] Implement powered wagons, and the callback that goes with it.
2005-06-06 00:19:24 +00:00
hackykid
09aadafda1
(svn r2413) - Codechange: Rewrite the displaying of purchase details a bit, make it easyer to add lines later.
...
- Add: In the purchase details for trains display "(refittable)" after the capacity if the vehicle is refittable.
2005-06-05 23:01:10 +00:00
hackykid
ea57dee837
(svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)
2005-06-05 20:45:04 +00:00
hackykid
eb173099e9
(svn r2411) - Codechange: Have trains cache stuff like consist power/weight/max speed instead of recalculating it each time.
...
- Fix: Station ratings now depends on the max speed of a consist, without being affected by other speed limits from realistic acceleration.
2005-06-05 15:37:00 +00:00
hackykid
9ac03e7181
(svn r2410) - Fix: [newgrf] When resolving callbacks, dont ignore wagon overrides.
2005-06-05 05:35:12 +00:00
tron
c2e977a0b8
(svn r2409) Missed one _map_owner -> IsTileOwner()
2005-06-04 12:14:51 +00:00
tron
74541c1dcc
(svn r2408) Introduce SetTileOwner() and use it
2005-06-04 12:13:24 +00:00
tron
0c4ecbe9ec
(svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner
2005-06-04 11:56:32 +00:00
miham
19e2b40a78
(svn r2406) [Translations] Updated to 2005-06-04 (42 strs / 11 langs)
2005-06-04 07:36:28 +00:00
tron
43f7974f6d
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
2005-06-04 07:35:12 +00:00
tron
7f0caaa89a
(svn r2404) assert that GetTileOwner() isn't called for tiles, which don't store owner information
2005-06-03 22:43:59 +00:00
tron
6933aaa210
(svn r2403) if cascade -> switch
2005-06-03 22:25:06 +00:00
miham
137e67ae70
(svn r2402) [Translations] Updated to 2005-06-03 (10 strs / 5 langs)
2005-06-03 12:09:55 +00:00
hackykid
ad2eef0a30
(svn r2401) - Fix: [newgrf] Finish up callback mechanism, implement 'refit capacity' callback slightly more correct.
2005-06-03 10:39:30 +00:00
hackykid
3f3cbea5c4
(svn r2400) - Fix: [newgrf] Load power for dual-headed engines correctly
2005-06-02 21:38:50 +00:00
orudge
e8c6b8feca
(svn r2399) - Fix: Update OS/2 project file with filename changes
...
- Fix: Make clipboard code a bit nicer (thanks Tron)
2005-06-02 19:55:37 +00:00
Darkvater
81ac4ac152
(svn r2398) - CodeChange: forgot to update unix and os2 specific files as well.
2005-06-02 19:39:29 +00:00
Darkvater
b438b1248c
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
2005-06-02 19:30:21 +00:00
orudge
62c96b52a0
(svn r2396) - Fix: Put strcasecmp back into os2.c, sorry Tron!
2005-06-02 17:17:24 +00:00
Darkvater
210540ce1a
(svn r2395) - Fix: oops, forgot a break in a console switch.
2005-06-02 15:48:28 +00:00
orudge
4719bb0c6e
(svn r2394) - Completed clipboard functions for OS/2 port
2005-06-02 10:39:46 +00:00
orudge
5f652e632b
(svn r2393) - Implemented threaded saving for OS/2
...
- Fixed discrepancy with SlArray declaration
2005-06-02 09:51:01 +00:00
Darkvater
6b7f3da7c6
(svn r2392) - Fix some typos (Tron)
2005-06-01 23:12:29 +00:00
Darkvater
a51cfd58b8
(svn r2391) - Feature: saving games happen in a seperate thread so you no longer will have to wait such a long time (especially handy on bigger maps and multiplayer games). The mouse also changes into the 'ZZZ' state :P. The thread on windows is currently given a little-bit-less-than-normal priority so it should not interfere that much with the gameplay; it will take a bit longer though. Upon the exit of the game any pending saves are waited upon.
...
- Fix: fixed GetSavegameFormat() so that it takes the best compressor (highest), or a forced one added with the parameter
- Open issues:
1. Don't attempt to load a game while saving is in progress, it will kick you back to the intro-screen with only the vast ocean to look at.
2. The server is disabled from threaded-saving, but might be enabled in the future.
3. Current implementation only allows 1 additional running thread.
4. Stupid global variables.....grrr
Big thanks for TrueLight and the amazing memorypool :D
2005-06-01 23:08:33 +00:00
hackykid
f7dcd2e834
(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0
2005-06-01 11:52:44 +00:00
hackykid
351d7aaa9f
(svn r2389) - Feature: [newgrf] Implement the mechanism for handling newgrf callbacks.
...
- Feature: [newgrf] Implement the 'refit capacity' callback.
2005-06-01 11:34:37 +00:00
hackykid
d1c1a7cba7
(svn r2388) - Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot.
2005-06-01 10:30:45 +00:00
Darkvater
55423efb06
(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
...
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
2005-05-30 22:16:05 +00:00
matthijs
628b1adbd2
(svn r2386) * Blaat
2005-05-30 21:46:10 +00:00
Darkvater
d0a0d6fcb5
(svn r2385) - Feature: shortcut CTRL + U that clears the commandline of the current input-box. As requested by Tron.
2005-05-30 16:03:21 +00:00
Darkvater
0cd53574ec
(svn r2384) - Fix: Check selling land and setting player colour. Also an extra map-bounds check for terraforming; inspired by the monkey (and Tron :) )
2005-05-30 15:50:20 +00:00
Darkvater
00cf2eae38
(svn r2383) - Fix: Monkey-testing turned up some command crashes.
2005-05-30 14:45:36 +00:00
Darkvater
feec9cc7cf
(svn r2382) - Fix: Check the airport type when building an airport
2005-05-30 13:35:39 +00:00
Darkvater
01f06784e7
(svn r2381) - Fix: [ 1210610 ] Endgame window on easy difficulty results in infinite loop. Oops. Seperated the window classes of endgame and highscreen.
2005-05-30 13:06:15 +00:00
orudge
e06c121d78
(svn r2380) - Fix: Build year for mail compartment of planes was not set correctly, affected station ratings (Asterix_)
2005-05-30 10:18:18 +00:00
orudge
98b3840a3e
(svn r2379) - Fix: [newgrf] Note to self, check thoroughly before committing!
2005-05-29 20:42:01 +00:00
orudge
8ef11fc41f
(svn r2378) - Fix: [newgrf] Further property stubs, help prevents subsequent incorrect reading of newgrf data
2005-05-29 20:36:11 +00:00
orudge
188d1e2e19
(svn r2377) - Fix: [newgrf] Ignore action 0 prop 0x20 (air drag)
2005-05-29 20:05:04 +00:00
miham
7d9fe86622
(svn r2376) [Translations] Updated to 2005-04-29 (28 strs / 3 langs)
2005-05-29 16:06:21 +00:00
Darkvater
c757606502
(svn r2375) - CodeChange: add the newly added 'all' of server_ip to it's helptext.
2005-05-28 19:05:24 +00:00
Darkvater
acef413f00
(svn r2374) - CodeChange: giving server_ip a value of 'all' will make the server listen on any interface (0.0.0.0); also fix a typo in one of the script example files: s/ports/interfaces
2005-05-28 18:47:05 +00:00
Darkvater
df4c22e358
(svn r2373) - CodeChange: don't redraw the window upon a user-based dirty request if the requested widget is invisible or otherwise not visible (type WWT_EMPTY)
2005-05-28 17:01:26 +00:00
Darkvater
426aa514ff
(svn r2372) - Fix (console): update the example scripts in the scripts/ directory to reflect the new console functionality
...
- Fix (console): any line starting with a '#' is a comment so ignore it
- Fix (console): The special variables whose value can only be set by a custom process should, also print out their newly set value there, instead of relying on the default printout which is slightly confusing. Eg after you change the value it still printed out 'current value for...' instead of 'XXX changed to...'
2005-05-28 16:59:51 +00:00
matthijs
8ef3f896f5
(svn r2371) - Fix: [ 1144510 ] make install tries to install scenarios in the (non-existing) personal dir when USE_HOMEDIR is specified.
...
This fix solves the issue for now by installing scenarios in the system-wide data dir.
- Add: 32x32 xpm format icon, used for debian packaging.
- Some minor updates to the os/debian directory.
2005-05-28 10:32:09 +00:00
tron
f9989998a7
(svn r2370) Replace some magic numbers with symbolic names
2005-05-28 09:29:36 +00:00
tron
2aaff36eef
(svn r2369) Remove _thd_ptr: It always holds the address of _thd
2005-05-27 15:05:54 +00:00
Darkvater
72f673f36d
(svn r2368) - Fix: Add 'multihead' TTDPatch option to OpenTTD newgrf flags-emulation (DBSETXLW doesn't complain about it anymore)
2005-05-27 13:41:03 +00:00
tron
4cd4a2be79
(svn r2367) Remove some unused functions, probably was some debug stuff
2005-05-26 19:43:56 +00:00
tron
6566941077
(svn r2366) Use SetRedErrorSquare() instead of home brewed version
2005-05-26 19:41:58 +00:00
hackykid
d90948abb7
(svn r2365) - Change: [refitting] Make refitting capacities for trains newgrf compatible. Train vehicles can now carry twice as much mail/goods as other cargo, and four times as much passengers.
...
- Fix: [refitting] The refit window now shows the correct refit options for the entire consist. Only if at least one of the vehicles in the train can be refitted to a certain cargo, it is shown in the list.
- Fix: [refitting] When refitting to a cargo which is already carried by some vehicles in the consist, the capacities of those vehicles are taken into account when calculating the new capacity of the train in the refit window.
2005-05-26 16:31:32 +00:00
Darkvater
1498d42ef6
(svn r2364) - Fix (regression): [ 1206850 ] Cannot change difficulty in main menu, always the value it was before you changed it. A too rigid check forgot to check the parameter value -1 which set the difficulty level itself.
2005-05-24 16:13:37 +00:00
matthijs
a2f691b24a
(svn r2363) - Codechange: [NPF] Removed caching the endnode check. The code for this was buggy, fundamentally flawed and barely useful. (Hackykid)
2005-05-23 19:00:16 +00:00
miham
5e040110fc
(svn r2362) [Translations] Updated to 2005-04-23 (207 strs / 6 langs)
2005-05-23 16:41:51 +00:00
hackykid
726f86e020
(svn r2361) - Feature: [newgrf] Implement varaction2 property 0x41 and 0xDA. These are the position in and length of chain of consecutive vehicles with the same type, and index of the next wagon in the chain (INVALID_VEHICLE if last), resp. Improves displaying of some engines in the dbsetxl.
2005-05-22 14:10:20 +00:00
tron
ec4f1d12f4
(svn r2360) Use GB and SB in [GS]etMapExtraBits
2005-05-22 08:09:40 +00:00
tron
aa1c202577
(svn r2359) Use strecpy instead of str_cat (which was rather a cpy than a cat, btw), remove the latter and simplify some constructs
2005-05-22 07:43:18 +00:00
tron
870127fd30
(svn r2358) Add macros for getting (GB) and setting (SB) a range of bits
...
Use them exemplarily to prettify (Get|Set)Tile(Type|Height)
2005-05-22 07:12:09 +00:00
orudge
27dee01623
(svn r2357) Small OS/2 update
2005-05-21 21:30:13 +00:00
tron
bff8dfea1c
(svn r2356) Make check if statvfs() is availible a bit more sensible
2005-05-21 19:42:34 +00:00
orudge
54bc10515f
(svn r2354) Update OpenTTD for 0.4.0.1 release
2005-05-21 19:41:35 +00:00
Darkvater
a893485be1
(svn r2353) - Prepare windows installer for 0.4.0.1
2005-05-21 15:18:20 +00:00
Darkvater
519c4161d5
(svn r2352) - Feature: add the possibility to print out the current debug-level
2005-05-20 17:59:24 +00:00
tron
1ab7238c15
(svn r2351) -Fix: It was possible to open more than one tree window
2005-05-19 17:40:26 +00:00
miham
0b89bbaa3c
(svn r2350) [Translations] Updated to 2005-04-18 (156 strs / 3 langs)
2005-05-19 16:25:35 +00:00
Darkvater
1b2b0d5b79
(svn r2349) - Fix: remove warning from release build when assertions are no longer active
2005-05-18 12:53:37 +00:00
Darkvater
cdb81c660c
(svn r2348) - Fix: Do not scroll the game with the arrow keys when the chatbox is open
2005-05-17 23:25:18 +00:00
Darkvater
9fb4b2ef55
(svn r2347) - Fix (regression): depot window did not get redrawn when a non-train-engine was sold.
2005-05-17 23:08:21 +00:00
Darkvater
70e2e79c45
(svn r2346) - Fix: Have the windows installer also delete any spritecache.xx files on uninstall
2005-05-17 20:59:29 +00:00
Darkvater
cb5107f97f
(svn r2345) - Fix: Don't allow stuff to be renamed to nothing if we don't support it. Only valid ones are signs (delete) and waypoints (rename to default).
2005-05-17 20:58:58 +00:00
Darkvater
d3ce687daf
(svn r2344) - Fix (regression): [ 1197216 ] Error: !invalid string id 0 in GetString. Dedicated server also had the endgame window shown and because now it is properly no-player anymore it crashed.
2005-05-17 20:54:05 +00:00
Darkvater
1c22cea02d
(svn r2343) - Fix (regression): dedicated server caused desyncs with its commands, because the player sent over the network is OWNER_SPECTATOR as well, which on clients cannot execute anything. So *hack*hack* it into temporarily player 0.
2005-05-17 20:52:52 +00:00
Darkvater
21d9e2c934
(svn r2342) - Fix (Regression): _cmd_text is always valid, so test the first character for '\0'. Also for some reason I forgot to validate the p1 param so that might lead to crashes with invalid signes. Fixed as well.
2005-05-17 19:36:36 +00:00
miham
90ca24f7b6
(svn r2341) [Translations] Updated to 2005-04-17 (74 strs / 6 langs)
2005-05-17 19:08:27 +00:00
Darkvater
a5612ab10a
(svn r2340) - Fix (Regression): [ 1203731 ] Signs don't work in multiplayer, unwanted remains of the _decode_parameters to _cmd_text move.
2005-05-17 18:50:07 +00:00
Darkvater
54b7fb0203
(svn r2339) - Fix: on a dedicated server, after the joining of a player, the player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.
2005-05-17 18:22:59 +00:00
Darkvater
166c1badc9
(svn r2338) - CodeChange: only call the variable hooks when you set their value not when you query them
...
- Fix: typo in pool.c "Cleaing up" --> "Cleaning up"
2005-05-17 16:07:48 +00:00
truelight
143dd26ef5
(svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made Darkvater go crazy ;))
2005-05-17 16:01:19 +00:00
Darkvater
391c34c12b
(svn r2336) - GFX: make the openttd icon look good on Win2k and lower as well. The TrueColor/256 icons had an ugly black shadow
2005-05-17 11:22:43 +00:00
miham
f48fdba12c
(svn r2335) [Translations] Updated to 2005-05-16 (36 strs / 17 langs, removed unused strings)
2005-05-16 18:19:04 +00:00
Darkvater
7daaf1f100
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
2005-05-16 16:19:32 +00:00
Darkvater
effbba74f5
(svn r2333) - CodeChange: also don't execute command if user has typed all spaces (eg nothing worthwhile). Suggested and implemented by Tron.
2005-05-16 15:05:49 +00:00
Darkvater
653000bdd6
(svn r2332) - Feature: Add 'clear' command and CTRL+L to empty the console window
...
- Fix: do not execute emtpy commands anymore
2005-05-16 13:46:26 +00:00
Darkvater
4554daa130
(svn r2331) - Fix (regression): fix text overflows in about box.
2005-05-16 12:15:53 +00:00
Darkvater
3bd76dad5b
(svn r2330) - Fix: link error when compiling as dedicated. Add sdl.c to always compile in makefile as it is always protected by WITH_SDL and add a stub for ToggleFullScreen()
2005-05-16 12:15:34 +00:00
tron
b18e4d1a8d
(svn r2329) CMD_CHANGE_PRESIDENT_NAME and CMD_CHANGE_COMPANY_NAME don't use p1, so don't send any meaningful value for it when invoking these commands
2005-05-16 08:41:42 +00:00
tron
ff52fc8267
(svn r2328) There's no need for extra magic to detect libpng on FreeBSD
2005-05-16 08:30:32 +00:00
bjarni
2bc9764fcf
(svn r2327) -fix [MacOSX] default path for midi player on mac is now correct again
2005-05-16 00:04:01 +00:00
Darkvater
7dc5c5d1b1
(svn r2325) - Update OpenTTD for 0.4.0 release
2005-05-15 21:50:26 +00:00
tron
fea5965679
(svn r2324) Introduce _cmd_text for passing strings with a command instead of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
2005-05-15 18:50:55 +00:00
tron
6cd410afbb
(svn r2323) Remove unused dereferencing
2005-05-15 18:43:36 +00:00
Darkvater
3fd39ec630
(svn r2322) - CodeChange: doxygen commented the tunnel-crash fix. Also if (bla) {return;} else {return;} is not proper code. It's if (bla) {return;} return; ;)
2005-05-15 16:30:02 +00:00
matthijs
89587c1d51
(svn r2321) - Fix: [ 1202286 ] On OS/2 you get a double backslash in your filename after browsing to the root dir of a drive and "." and ".." are incorrectly displayed. (orudge)
2005-05-15 14:01:35 +00:00
matthijs
2151550631
(svn r2320) - Fix: [ 1185176 ] Train in tunnel is not properly detected by signal code (Hackykid)
2005-05-15 13:48:23 +00:00
Darkvater
14996be3ef
(svn r2319) - Fix: copying/pasting from the extra viewport did not center on what you wanted to see if one of the windows (viewport or main) was zoomed out. Also fix the undisabled-zoom-in button upon creation.
2005-05-15 11:20:38 +00:00
Darkvater
5501f25084
(svn r2318) - Feature: added console command 'part' to leave a currently running game and 'join' which is an alias to 'connect' to join a multiplayer server.
2005-05-15 10:40:53 +00:00
Darkvater
0ddf93956e
(svn r2317) - Fix: [ 1193048 ] Pre-signal stays red when there is only a single exit signal (dinno)
2005-05-15 10:23:42 +00:00
Darkvater
6f06930ee3
(svn r2316) - Fix: [ 1154454 ] Fix BeOS build on Trunk (myob)
2005-05-14 23:48:39 +00:00
Darkvater
788286e9d3
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
2005-05-14 22:51:15 +00:00
Darkvater
4c0c553a8f
(svn r2314) - Feature: [ 1187490 ] Patches for building on IRIX (jgilje)
2005-05-14 22:42:33 +00:00
Darkvater
220e5be863
(svn r2313) - Fix: [ 1202115 ] Clicking shipslist on bouy asserts GetPlayer(). Bouys and oilrigs don't have owners, so it cannot get the vehicle-list of the station-owner. Just use _current_player
2005-05-14 22:03:25 +00:00
Darkvater
32bb69ef1c
(svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL.
2005-05-14 21:55:54 +00:00
Darkvater
0269361b28
(svn r2311) - Fix: eh, forgot to remove moved function.
2005-05-14 21:03:46 +00:00
Darkvater
2aa94201dc
(svn r2310) - Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug.
...
- Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list.
- Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
2005-05-14 21:01:57 +00:00
Darkvater
d99dddc704
(svn r2309) - CodeChange: Change all _iconsole_color_whatever into _icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
2005-05-14 19:34:59 +00:00
Darkvater
2bf3d14dfc
(svn r2308) - Fix: enforce server-only and/or offline commands by giving them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security"
...
- CodeChange: move ValParamRailtype() to check rail type from command.h to vehicle.h where it is better suited.
2005-05-14 19:25:18 +00:00
Darkvater
fbb794d450
(svn r2307) - Fix (regression): it was not possible to change the drive-side in the intro-game.
...
- CodeChange: remove unused "CANT_DO_THIS" double-string.
2005-05-14 18:25:01 +00:00
Darkvater
5174d3adfe
(svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"
2005-05-14 12:36:16 +00:00
miham
3a4bedaad6
(svn r2305) [Translations] Updated to 2005-05-14 (~50 strs / 7 langs)
2005-05-14 06:48:14 +00:00
Darkvater
950dcd47eb
(svn r2304) - Fix (regression): excuse the Lumber mill from the list of raw-industries build-restriction, as it can be built always, patch-setting, or no patch-setting.
2005-05-13 18:19:26 +00:00
Darkvater
0ff942f560
(svn r2303) - CodeChange (fix): when giving money to other players only allow transferring money that is above your loan. Eg you can't give away your loan.
...
- Langfix: 'goes down by' 'increases', vv for down in english.txt.
2005-05-13 17:09:05 +00:00
Darkvater
d19438f858
(svn r2302) - Fix: when you started a server 'load <file>' did not work prior to doing 'ls'. Fixed by moving the changing of saveload_mode into BuildFileList()
2005-05-13 17:05:03 +00:00
Darkvater
31f8f6a7b5
(svn r2301) - CodeChange: prettyify ChangeOwnerShipOfPlayerItems() a bit
...
- CodeChange: add comments to a very ugly part of the code (network_client.c); that enforces that the server gives an ID to the client.
2005-05-12 23:47:45 +00:00
Darkvater
033995ec6e
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
...
- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ()
- Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
2005-05-12 23:46:01 +00:00
Darkvater
56e7e4cf25
(svn r2299) - Fix: add more verbose output to possible hack-attempt.
...
- Btw, only 14 more commands are remaining, 88% done \o/
2005-05-12 00:20:16 +00:00
Darkvater
c626555f68
(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame().
...
- CodeChange: renamed CmdTrainGotoDepot() to CmdSendTrainToDepot() to be consistent with other depot commands.
- CodeChange: 'newgame' console command now calls the unabused GenRandomNewGame(). For the server it still creates a new game, a client quits the game and continues in SP.
- CodeChange: in the game-difficulty window, setup the disabled buttons on window creation, not every redraw.
2005-05-12 00:18:30 +00:00
Darkvater
921cc4e94a
(svn r2297) - CodeChange: server-check the next batch of commands.
...
- CodeChange: since only the server will be able to modify difficulty settings, leave the checking of correct values besides, and trust users will join legit servers.
- CodeChange: for renaming signs, only check if GetDParam(); eg _decode_parameters is empty ('\0') or not, instead of the extra check of players, etc. That basically does the same thing. Also dirty sign two times when renaming, once before, once after the action. Because if the name becomes shorter and you update only after, garbage remains on the screen.
- CodeChange: made GetMaskOfTownActions() available to the town-cmd to double-check if the action was available to the player. For this purpose the hardcoded _local_player has been removed from the function and is now passed as a parameter.
2005-05-12 00:11:37 +00:00
darkvater
f3b217db9d
(svn r2296) - Fix (regression): oops, forgot the MS code-decleration rules :p
2005-05-11 18:09:12 +00:00
Darkvater
a72c06d845
(svn r2295) - Fix: you were still able to delete any tile if you were not careful with CmdDestroyCompanyHQ. Fixed this; thanks HackyKid.
2005-05-11 16:29:33 +00:00
Darkvater
729066e407
(svn r2294) - CodeChange: check the service interval settings when changing of all vehicle-types. To simplify things introduce GetServiceIntervalClamped() that returns the same or clamped value of the new service interval. There were some inconsistencies in the gui files so I had to change those, and const correctness kicked in, so it's a bit messy at certain points.
2005-05-11 16:17:03 +00:00
Darkvater
aa4f2d2db2
(svn r2293) - Fix (regression): You couldn't modify commands anymore; fixed. (|| and && are kinda confusing with !=) :P
2005-05-11 15:31:10 +00:00
Darkvater
268968a8b4
(svn r2292) - Fix (regression): make error message more general for console errors. Dedicated servers are properly filtered out when requesting player-password.
2005-05-11 15:30:28 +00:00
Darkvater
6cdb9580e2
(svn r2291) - Fix (regression): When a client joined it changed the server-player's name. Funny effect; but not desired. Thanks for pointing it out Tron. It needed a bit of hacking, but is not less of a hack than the one used before :)
2005-05-11 12:46:19 +00:00
Darkvater
5e6923e936
(svn r2290) - CodeChange: protect the next batch of commands. This brings us to a total of 61, which is 53% :)
...
- CodeChange: To correctly accept engine-prototypes, the best-player checking has been moved to its own function, I hope it functions the same as before.
- CodeChange: Added symbolic types of PlayerID, OrderID and EngineID. For engines also added GetEngine() and IsEngineIndex(), similar to the other such functions.
- CodeChange: To correctly build industries, some tables have been moved to build_industry.h. The only way to find out currently if an industry is valid in a climate is by looping all industries and checking if it matches. Also to comply with the patch setting build_rawmaterial_industries, it is assumed that these industries do not accept any cargo of any type. This can and probably should changed in the future to some flag in their struct. Also use _opt_ptr instead of _opt.
- CodeChange: implemented the HQ checking code inspired by MarkR2 in "[ 1190944 ] Many commands not checked for security". Unfortunately it is impossible to prevent only deleting a HQ by a modified client atm.
- CodeChange: For insert order and modify order their parameters are implicitely truncated to 8 bits, instead of the 16 bits said in the comments.
2005-05-11 00:00:27 +00:00
Darkvater
fe223eccf4
(svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138.
2005-05-10 08:45:55 +00:00
Darkvater
ab954a934a
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
...
- CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking.
- CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count)
- CodeChange: added IsTownIndex() in following of IsStationIndex(), etc.
- Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now)
2005-05-09 22:33:00 +00:00
Darkvater
4ad80ae872
(svn r2287) - Fix (regression): cast stationcount to unsigned instead of p1 to signed when checking valid waypoint types. Thanks for pointing it out Tron
2005-05-09 19:56:08 +00:00
Darkvater
edd8c87502
(svn r2286) - CodeChange: paramcheck the next batch of commands.
...
- Fix (regression): fix up terraform land where every player can terraform land (towns, map generation), and player can terraform different corners; used for building tunnels
2005-05-09 16:37:40 +00:00
Darkvater
2b96754673
(svn r2285) - Codechange: Fix up some of the missing things from server-checking; namely bridge-type, bridge-length, dragged end-tile (bridge/station), station_spread
...
- Fix: [ 1197256 ] max station spread patch < 7 does not work. Station spread was not taking into account when not using drag&drop. Fix this up, and add a callback to the settings window to immediately reflect the changes.
2005-05-09 13:26:15 +00:00
Darkvater
5f6de3e47c
(svn r2284) - Fix (regression): [ 1197177 ] Scenario editor: desert add/remove tool removes industries. Fixed a bit too agressive desert generator. It still does remove the industry (sand's a bitch on machinery), but at least it does it cleanly :)
2005-05-08 21:00:56 +00:00
Darkvater
74671bd2c9
(svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
2005-05-08 20:53:02 +00:00
miham
8d392cf5c7
(svn r2282) [Translations] Updated to 2005-05-08 (58 strs / 3 langs)
2005-05-08 16:17:01 +00:00
matthijs
0e08878a68
(svn r2281) - Fix: [ 1115204 ] [NPF] When pressing the goto depot button, trains will now also look behind it if there is no depot in front. If so, the train reverses immediately. This also work anywhere, not just at stations.
...
- Add: [NPF] Reversing inside of depots now has a penalty. It also applies to trains only, other vehicles shouldn't bother reversing.
- Fix: [NPF] When checking whether to reverse a train, the trackdir of the first loc was used instead of the last vehicle as a starting node for pathfindig.
This might have caused some trains not reversing when they should have (or vice versa). Typo introduced when converting to GetVehicleTrackdir() in r2256.
- CodeChange: [NPF] Removed duplicate code by letting NPFRouteTjoStationOrTile() call NPFRouteToStationOrTileTwoWay().
- Add: [NPF] NPFRouteToDepotBreadthFirstTwoWay() to find a depot while also looking backwards.
- Add: It is now possibly to specify a path cost for aystar starting nodes.
2005-05-07 22:00:36 +00:00
Darkvater
f2bc27718a
(svn r2280) - Fix: Check if the passed tile to DoCommand is within the current mapsize
2005-05-07 10:26:45 +00:00
Darkvater
3ad11e0ad4
(svn r2279) - Fix: Check the parameters of the first 10 Commands. While there also add proper comments for the functions and fix up CmdFailed()
2005-05-07 10:26:12 +00:00
tron
b90e9d49ca
(svn r2278) When renaming a station, check if the station exists and belongs to the correct player
2005-05-07 08:14:06 +00:00
Darkvater
0618a6d0df
(svn r2277) - Codechange: change sscanf() into stroul() Which Does The Right Thing tm. Thanks tron
2005-05-06 22:06:40 +00:00
Darkvater
81474c2623
(svn r2276) - CodeChange: remove DebugProc() and make the ALT+0...4 codes only available in debug mode
2005-05-06 20:38:18 +00:00
Darkvater
18bc5ae77e
(svn r2275) - Fix: [ 1196662 ] scrollto doesn't accept hexadecimal numbers
2005-05-06 18:34:28 +00:00
Darkvater
adf929fef5
(svn r2274) - Codechange: some comments, parentheses and EngineID typedef for engine_type
2005-05-06 16:13:44 +00:00
celestar
61ca460457
(svn r2273) -Fix: Road vehicles no longer try to obtain a slot when they have crashed. (peter1138)
2005-05-06 12:00:25 +00:00
tron
69a09c6f77
(svn r2272) Remove unused attribute from struct Station
2005-05-06 06:59:24 +00:00
tron
d17476b058
(svn r2271) CMD_SET_PLAYER_FACE, CMD_SET_PLAYER_COLOR, CMD_INCREASE_LOAN, CMD_DECREASE_LOAN only make sense for the current player, so don't explicitly pass a player number
2005-05-06 06:56:30 +00:00
Darkvater
203a84dd0b
(svn r2270) - Fix/Codechange: fix up selling rail vehicles. Try to be smart about it. When selling dual-headed trains, also sell the rear end; if the now-first wagon is an engine, make it a train. When selling the whole train, try to leave dual-headed setups intact
2005-05-05 20:46:14 +00:00
Darkvater
42eb63a7de
(svn r2269) - CodeChange: no else after return; exchange some magic 0xffff with INVALID_VEHICLE, vehicle index is of type VehicleID
2005-05-05 20:44:52 +00:00
Darkvater
df21566f9f
(svn r2268) - Fix [ 1195595 ] high resolutions don't work. Clamp all possible inputs of resolutions to the maximum availble
2005-05-05 15:22:20 +00:00
matthijs
c85f049f52
(svn r2267) - Codechange: Reverted the typedeffing of VehicleType (r2256), since that interfered with the saveload code.
2005-05-04 22:13:07 +00:00
Darkvater
b12c6bac57
(svn r2266) - Feature: it is now possible to start a dedicated server on Win98/95, for the few sadistic geeks that really want to do this (thanks for testing Hackykid). Also fix up another glitch in console output
2005-05-04 19:09:25 +00:00
Darkvater
effca9f6ec
(svn r2265) - Fix: some more useful help messages and consistent errors for failed console-cmds. Make command 'clients' only available in network mode
2005-05-04 10:17:00 +00:00
matthijs
95c040b723
(svn r2264) - Fix: [ 1060686 1187655 ] Changing the full-load flag on the current order doesn't take effect immediately. (glx)
2005-05-03 22:18:40 +00:00
Darkvater
b2efecd9b4
(svn r2263) - Fix: If the seperator string is empty for custom currencies, everything after that is cut off. Fix it by replacing nothing with ' '. Thanks for noticing peter1138
2005-05-03 22:05:34 +00:00
matthijs
0699c54c45
(svn r2262) - Fix: Assertion when vehicle in a depot wants to do pathfinding.
...
GetVehicleTrackdir now tries to get a valid trackdir as much as possibly, by assuming that a vehicle is facing outwards in a depot or road station, for example.
- Codechange: [Multistop] Multistop now also tries to find a slot for road vehicles that are in stations, since the pathfinder now properly handles that.
2005-05-03 20:45:23 +00:00
matthijs
24943a4759
(svn r2261) - Fix: When crashed vehicles try to find a depot for servicing, openttd asserts.
...
Crashed vehicles shouldn't find depots anyway...
2005-05-03 19:31:33 +00:00
Darkvater
9b8aa4c101
(svn r2260) - Fix (regression): custom currency input works again ingame
2005-05-03 15:20:08 +00:00
Darkvater
ad6b37a423
(svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands
2005-05-03 11:48:55 +00:00
Darkvater
a1e27b1606
(svn r2258) - Fix (regression): game crashes on resizing window. Windows is a bit too aggressive with its _assume(0), and it did not even belong there
2005-05-03 11:14:06 +00:00
matthijs
b22ebeda61
(svn r2257) - Fix: [NPF] NPF debug markings modify _map2 instead of _map3_hi for street tiles, corrupting them.
...
Some info got moved around in r1768 for street tiles, but NPF did not get updated.
2005-05-03 00:11:30 +00:00
matthijs
6eb094c726
(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)
...
- Add: GetVehicleTrackdir() helper function.
- Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed.
- Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte".
- Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called.
2005-05-02 23:59:11 +00:00
matthijs
2ab5eee78b
(svn r2255) - Fix: [ 9680363 ] [NPF] Broken buoy handling for ships
...
Buoys will now try to get within 3 tiles of a buoy instead of a the actual buoy tile. This gets ships to got past buoys in a realistic (IMO) way instead of barging right through them.
- Fix: [NPF] Trains get curves penalties sometimes even when the track is straight.
- Add: [NPF] Ships get a penalty for going over buoys now, so they will try to go around.
- Add: [NPF] Ships get a penalty for curves too, yay for straight lines.
- Add: TrackdirToTrack(), TrackToTrackdir(), IsDiagonalTrack() and IsDiagonalTrackdir() helper functions.
- Add: IsBuoy() and IsBuoyTile() helper functions.
- Codechange: Rearranged part of the control flow of ShipController(), removing a goto.
2005-05-02 22:13:20 +00:00
Darkvater
d26052c7df
(svn r2254) - Fix: using 'ls' or 'dir' in the console always shows loadable savegames and does not depend on the whim of the currently open saveload dialog
2005-05-02 21:56:01 +00:00
matthijs
3b3a2b890f
(svn r2253) - Fix: [ 1190896 1184378 ] [NPF] Trains ignoring their railtype (mono, maglev) (glx)
2005-05-02 18:53:06 +00:00
Darkvater
5a35c8cc4e
(svn r2252) - ReFix: Redo r2251. Just remove the 'default widget handler', WDF_STD_BTN, instead of doing the "workaround" of the previous commit
2005-05-02 18:22:16 +00:00
Darkvater
ece616ff22
(svn r2251) - Fix: [ 1193945 ] Clicking on the chat text box causes an assertion failure
2005-05-02 18:08:34 +00:00
Darkvater
4e1fbe54b2
(svn r2250) - Fix (regression): arguments with spaces in them were incorrectly parsed
2005-05-02 17:58:11 +00:00
matthijs
5a69201451
(svn r2249) - Fix: [ 1187703 ] [NPF] Road vehicles cannot find a depot when in a roadstop
2005-05-02 17:52:35 +00:00
Darkvater
63784c5b5a
(svn r2248) - Fix (regression): fix crashing of game when joining a dedicated server (only reset _thd.pos, not the whole structure; as done in revision 2241 to fix another crash)
2005-05-02 17:14:31 +00:00
Darkvater
8f6b3154e5
(svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)).
...
- Fix: getting help for an alias works
- Fix: '|' is an unprintable character, replace it with '\'
2005-05-02 17:05:59 +00:00
Darkvater
ab0a6f2e73
(svn r2246) - CodeChange: Station is 'st' not 'station' - random commit of the day
2005-05-02 16:02:24 +00:00
Darkvater
57dbe50597
(svn r2245) - CodeChange: simplify the clamping of values for patch-settings by using clamp()
2005-05-02 16:01:53 +00:00
Darkvater
2cc10f829f
(svn r2244) - Fix: 'scrollto' is not debug only..sorry :)
2005-05-02 16:00:49 +00:00
Darkvater
d102d0c26d
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
...
- Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
2005-05-02 15:52:19 +00:00
Darkvater
7a012a3465
(svn r2242) -Fix: [ 1193414 ] Fix for waypoint GUI, scrolling and button-actions (Hackykid)
2005-05-01 20:16:52 +00:00
Darkvater
639b6e780f
(svn r2241) - Fix: [ 1190625 ] Changing mapsize crashes game with highlighting. Without shutting down OpenTTD some possibly 'invalid' data in TileHighLightData (_thd) is left behind; reset it.
2005-05-01 19:37:20 +00:00
miham
cf5370eb22
(svn r2240) [Translations] Updated to 2005-05-01 (17 strs / 2 langs)
2005-05-01 18:40:01 +00:00
bjarni
7b68c6cefe
(svn r2239) -Fix [autoreplace]: [ 1185653 ] autoreplacing a dualheaded engine into a singleheaded engine is no longer a potiontial crash
...
It do have one side effect through. Now no engines are added/removed from the train anymore, so it produces "half dualheaded engines"
This will be fixed when autoreplace will get a major overhaul at a later date
2005-05-01 15:13:39 +00:00
Darkvater
e32aa54a41
(svn r2238) - [ 1184377 ] Update to OpenTTD readme (orudge)
2005-04-30 11:18:45 +00:00
Darkvater
cdb896b790
(svn r2237) - Fix (regression): [ 1192284 ] Bug: Ship refuses to add buoy to its orders (init100)
2005-04-30 10:49:47 +00:00
miham
13f07582b0
(svn r2236) [Translations] Updated to 2005-04-28 (21 strs / 3 langs)
2005-04-28 17:42:13 +00:00
miham
d7e6f468e9
(svn r2235) [Translations] Updated finnish translation (Ville Koshinen)
2005-04-27 05:49:03 +00:00
miham
6ff8340619
(svn r2234) [Translations] Updated to 2005-04-26 (149 strs / 12 langs)
2005-04-26 17:56:52 +00:00
tron
0ec5775ded
(svn r2233) Bracing, whitespace, indendation
2005-04-25 14:29:58 +00:00
tron
974c19a51c
(svn r2232) Remove unused commands
2005-04-25 13:52:59 +00:00
Darkvater
6f9c6effaf
(svn r2231) - Fix: max_join_time pointing to _network_max_join_time is an uint16, so it should have type SDT_UINT16; fix for revision 2106 (thanks peter1138)
2005-04-25 13:12:48 +00:00
Darkvater
27dbc4ba09
(svn r2230) Oops, revert wrongly committed local console.c. Also add the endian_target.h and endian_host.h to the ignore list
2005-04-24 21:56:46 +00:00
Darkvater
a1143a53f0
(svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The DOS grf file trgi.grf has 6 less sprites than the windows one. This results in some segfaults for certain sprites. Fixed it by added a dummy grf file consisting ofr 6 sprites and loaded when using DOS gfx at the appropiate place.
2005-04-24 21:44:45 +00:00
Darkvater
11dc0e1777
(svn r2228) - Fix: [ 1188986 ] Song in main menu screen should loop when it ends.
2005-04-24 19:04:56 +00:00
Darkvater
762b5f7a75
(svn r2227) - Fix (regression): [ 1188408 ] Fix news settings load check. When updating old news-message-types to new ones, certain combinations of new were wrongly recognized as old (glx)
2005-04-24 18:24:29 +00:00
truelight
5d192d7150
(svn r2226) -Fix: 2 other capital problems for the OSX part of the Makefile
2005-04-24 16:01:36 +00:00
truelight
facd3d1af1
(svn r2225) -Fix: split the endian-detection to target/host. Now cross-compiling
...
on i386-linux for MacOSX should also work for the language-files (strgen issues)
2005-04-24 15:41:01 +00:00
truelight
176c155193
(svn r2224) -Fix: capital-correctness for OSX-dir-names
2005-04-24 12:47:09 +00:00
tron
566df8dc65
(svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131
2005-04-24 07:56:18 +00:00
tron
6ceeedfd3c
(svn r2222) Check the parameters of Cmd{Insert,Delete,Modify,Skip}Order() and CmdRestoreOrderIndex():
...
- Check if the vehicle exists
- Check if the vehicle belongs to the correct player
- Check if the new order is valid (type, destination, flags) (CmdInsertOrder)
2005-04-22 05:41:09 +00:00
Darkvater
591217da4a
(svn r2221) - Fix: "Map size" is two words. Also draw the string right-aligned in the intro gui so it doesn't matter how long it is in other languages.
2005-04-21 16:20:38 +00:00
tron
403845c9ca
(svn r2220) Put two TileIndices into temporary variables to improve readability
2005-04-21 16:13:52 +00:00
miham
1265478a98
(svn r2219) [Translations] Updated to 2005-04-21_2 (40 strs / 5 langs)
2005-04-21 06:56:16 +00:00
tron
c731091941
(svn r2218) Indentation
2005-04-21 05:51:47 +00:00
Darkvater
c8f07a2dd9
(svn r2217) - Fix: [ 1184201 ] AI orders its vehicles to a competitor's truck stop. Added a CmdFailed() check to all command returns of the AI instead of the simple == / != CMD_ERROR check. This should fix the problem.
2005-04-20 22:30:40 +00:00
miham
1b312083fc
(svn r2216) [Translations] Updated to 2005-04-21 (67 strs / 6 langs)
2005-04-20 22:24:39 +00:00
Darkvater
29347840c2
(svn r2215) - Feature: Add a temporary mapsize selector to the intro gui. This is sufficient until the real window is designed & coded.
2005-04-20 12:52:02 +00:00
Darkvater
cc65bd1702
(svn r2214) - Fix: Dragging the desert tool over half-desert turns it into full-desert; dragging the tool while pressing ctrl, will remove the desert area.
2005-04-19 18:30:31 +00:00
celestar
0f08e83553
(svn r2213) -Fix/Feature/Codechange: [ Multistop ] Changed the algo so that it uses NPF. This fixes the problem of RVs attempting to go to unreachable stops [ 1161610 ], and should greatly reduce the wrong stop problem. Cleaned parts of the code
2005-04-18 05:42:59 +00:00
miham
51c56287f0
(svn r2212) [Translations] Updated to 2005-04-17 (139 strs / 3 langs)
2005-04-17 19:44:05 +00:00
Darkvater
972448d5ae
(svn r2211) - Fix(ish): When eternally looping in 2090 don't go increasing the inflation anymore because it will just rise to insanely high values beyond all imagination.
2005-04-16 20:37:17 +00:00
Darkvater
878cebaa70
(svn r2210) - Fix: When a road-station is deleted, also delete the assigned slots of all vehicles headed to that station. This fixes an assertion, thanks go to Tron for finding the cause.
2005-04-16 20:10:24 +00:00
Darkvater
0fa9c23225
(svn r2209) - CodeChange: [ 1184348 ] Remove unused _newspaper_flag that was supposed to be some ugly hack for chatting (gonewacko)
2005-04-16 18:09:24 +00:00
Darkvater
6edd6a850a
(svn r2208) - Fix: [ 1174237 ] Max loan always in euros, use _opt_ptr instead of _opt (glx)
2005-04-16 16:16:54 +00:00
Darkvater
7a787a672d
(svn r2207) - Update readme.txt about some windows compilation and troubleshooting running openttd without a soundcard.
2005-04-16 15:56:58 +00:00
Darkvater
31dfae8aa2
(svn r2206) - Regression Fix: slight typo of res2 into res, this also fixes recent bug "[ 1183396 ] Train can't find depot, it gives money in Multiplayer"
2005-04-15 21:37:56 +00:00
Darkvater
19dc0a8561
(svn r2205) - Fixup of revision 2200, not twice CMD_REMOVE_LONG_ROAD :p. Thanks TrueLight.
2005-04-15 20:23:54 +00:00
matthijs
bb22f72ad9
(svn r2204) - Add: [NPF] NPF now has a maximum number of nodes it will search. The default value is 5000 for now, which is an educated guess. Probably needs some finetuning. Hopefully this "feature" can be removed later on, when more sophisticated means of limiting the pathfinder have been implemented. This should make ships and larger networks playable for now, though.
2005-04-15 15:28:01 +00:00
miham
3c3507c822
(svn r2203) [Translations] Updated to 2005-04-15 (25 strs / 5 langs)
2005-04-15 13:50:08 +00:00
matthijs
4eeac3ea75
(svn r2202) - Fix: [NPF] When a vehicle could not reach its target, it would choose a random direction. It will now try to get as close as possible.
2005-04-15 13:48:08 +00:00
Darkvater
174030a15f
(svn r2201) - Fix: Crash in scenario-editor with terraforming out-of-map bounds.
2005-04-14 22:59:49 +00:00
Darkvater
2e58ce2fd9
(svn r2200) - Fix [ 1179892 ] click & drag removal of road assertion fail. Add CMD_REMOVE_LONG_ROAD to the 'notest' section as it might have difficulties with town ratings, etc. Read the comment for more info (mgasterix)
2005-04-14 22:07:39 +00:00
miham
d5bcf62e5c
(svn r2199) [Translations] Updated to 2005-04-14 (188 strs / 13 langs)
2005-04-14 21:34:15 +00:00
bjarni
3e470708a6
(svn r2198) renamed MacOS to MacOSX where it was written wrong. Made myself MacOSX porter as well as coder
2005-04-14 20:42:30 +00:00
bjarni
5572a92c58
(svn r2197) -fix [Makefile]: SDL_CONFIG from makefile.config is now not always overwritten
...
-fix [OSX]: fixed issue where OSX could not compile the java MIDI app if SHOW_WARNINGS was on (introduced in r1917)
-fix [OSX]: the midi class file is now also deleted with make clear
2005-04-14 13:46:40 +00:00
TrueLight
ecc0cd37f4
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
...
(and distcc compiling via Makefile.config). Wiki is coming up soon! Big
tnx to Bjarni and Lucaspiller.
2005-04-14 12:57:21 +00:00
tron
cada1e24b5
(svn r2195) Add CmdFailed() as the One True Way(tm) to check if a command failed.
2005-04-14 11:17:36 +00:00
miham
3b9931fcba
(svn r2194) [Translations] Updated to 2005-04-14 (12 strs / 5 langs)
2005-04-14 09:58:04 +00:00
Darkvater
3a4c1ce351
(svn r2193) - SVN: Set ignore on the last couple of annoying files
2005-04-13 23:07:13 +00:00
Darkvater
febae668fe
(svn r2192) - Add greater control to the 'message options' window. Now you can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930].
...
- I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type.
- Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types.
2005-04-13 23:03:31 +00:00
truelight
7f4b636559
(svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard)
2005-04-13 18:36:29 +00:00
darkvater
860242b811
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
2005-04-13 13:09:25 +00:00
tron
02f5818912
(svn r2189) Introduce and use IsCompatibleTrainStationTile()
...
This should prevent trains, which are longer than the station, to turn around without stopping under certain circumstances and fix speed limit for trains entering a station, when realistic accerlation is used
2005-04-12 10:31:26 +00:00
tron
277d9d237b
(svn r2188) Revert r2185, because trains always accerlated (Requested by Celestar)
2005-04-12 09:21:04 +00:00
tron
e00785a855
(svn r2187) Implement a slightly better workaround than r1588 did. (Joint effort with Celestar)
2005-04-12 09:17:51 +00:00
miham
8724ba8e01
(svn r2186) [Translations] Refreshed translations (20 strs/3 langs)
2005-04-12 07:29:37 +00:00
celestar
4601cd1366
(svn r2185) -Fix: Made sure that the realistic acceleration does not freeze trains anymore
2005-04-11 21:10:47 +00:00
Darkvater
2397ff86e6
(svn r2184) - CodeChange: remove the copy of ClearSlot(), which is now also called for CmdSkipOrder(). This also fixes the involuntary crash introduced 2 revisions ago
2005-04-11 20:54:25 +00:00
matthijs
90cc36f7e2
(svn r2183) - Fix: Removed brackets from around STRAIGHT_TRACK_LENGTH, they caused preliminary rounding...
2005-04-11 20:19:41 +00:00
matthijs
f5d9cb58eb
(svn r2182) - Add: [NPF] There is now a debug class for NPF. Use -d npf<level> to enable debugging printouts from npf.
...
- Codechange: [NPF] Removed NPF_MARKROUTE macro, to mark routes just specify a npf debugging level >= 1 on the commandline.
2005-04-11 19:53:44 +00:00
matthijs
b02dde1982
(svn r2181) - Add: DistanceTrack() to calculate the distance over optimally laid out tracks.
...
- Codechange: [NPF] Removed unused heuristic function NPFCalcTileHeuristic().
- Codechange: [NPF] Use DistanceTrack() instead of DistanceManhattan() for ship and train heuristic.
- Codechange: Renamed variables x and y to dx and dy in some of the distance calculation functions.
2005-04-11 19:14:48 +00:00
celestar
a714444a8e
(svn r2180) -Fix: Deceleration code now only takes into account rail station tiles for computing the remaining distance
2005-04-11 14:59:06 +00:00
matthijs
6409e6efaf
(svn r2179) - Fix: [ 1121437, 1114228 ] Vehicles not entering depots for auto servicing.
2005-04-11 12:08:09 +00:00
Darkvater
e82f724e9a
(svn r2178) Postprevcommitaddendum: add debug.h if you use DEBUG()
2005-04-10 21:54:29 +00:00
Darkvater
9876fb54bd
(svn r2177) - Fix: Fix a slot desync with setting the invalid slot to the correct value
2005-04-10 21:51:11 +00:00
tron
4dbf5b37cc
(svn r2176) Revise CheckOprhanedSlot():
...
- Don't assert the vehicle type, as it can be anything
- Don't touch the slot information of the vehicle, because it's possible that it is not a road vehicle anymore and even if it is, it has nothing to to with that slot
- Trim the debug printout, because the information about the vehicle is arbitrary
(Joint effort with Darkvater)
2005-04-10 20:48:43 +00:00
miham
41f38775a1
(svn r2175) [Translations] Updated translations (11 strs/3 langs)
2005-04-10 18:02:48 +00:00
miham
6f15593ce2
(svn r2174) [Translations] Updated translations (7 strs/2 langs)
2005-04-09 22:42:12 +00:00
celestar
91d44ef577
(svn r2173) -Fix: [ 1179380 ] Rail now builds on reserved land. Cause by the problem that CMD_ERROR is just the highest bit of the return value, but CMD_CLEAR_LANDSCAPE returns a negative value for owned land. So the highest bit is set as well. Note to self: Finish Command Patch
2005-04-09 06:20:03 +00:00
miham
5a65140cb4
(svn r2172) [Translations] Translations from the last two days (37 strs/11 langs)
2005-04-09 06:19:08 +00:00
miham
13969f5940
(svn r2171) [Translations] Manually fixed string-order in english.txt (someone fscked it up!)
2005-04-09 06:15:16 +00:00
bjarni
4af271c494
(svn r2170) -fix: [1179457] the industry list can now no longer scroll down then the end of the list is reached (Hackykid)
2005-04-08 23:46:18 +00:00
celestar
5d02a2c295
(svn r2169) -Fix: Doing the slot clearing also for crashed road vehicles (c.f. previous commit)
2005-04-08 22:50:22 +00:00
Darkvater
7ef681eaed
(svn r2168) - Fix: Various stages of invisible trains, and wrong v->u.rail.track combinations. When a vehicle was sold its (possibly) assigned road slot for multislot was not cleared, thus resulting in a bug confusion. This should fix [ 1178520 ] Assertion failure in ai.c (invalid v->u.rail.track). With big thanks to TrueLight for the demo-recording patch, BJH for the wonderful savegame, Hackykid for his brilliant suggestions of the problem and Celestar for... ehm, making it all possible ;p
2005-04-08 22:44:06 +00:00
bjarni
a9c52454c8
(svn r2167) -fix: [autoreplace] trains now get the default cargo type if the engine
...
replaced from did not have cargo capacity (instead of refitting to passengers)
2005-04-08 15:40:44 +00:00
matthijs
5e4961d902
(svn r2166) Fixed two warnings in the last commit.
2005-04-07 19:33:32 +00:00
matthijs
da3621c180
(svn r2165) - Codechange: [NPF] Properly enummed NPF hash size, it is easily changable now.
...
- Codechange: [NPF] Improved the NPF hash calculation slightly.
- Codechange: [NPF] Increased hash size, should speed up somewhat.
2005-04-07 19:19:16 +00:00
Darkvater
9c3813e213
(svn r2164) - Language: [ 1173684 ] fix some wrong french translations (glx)
2005-04-07 10:50:55 +00:00
Darkvater
a3293be124
(svn r2163) - SVN: Set ignore on grfcodec for when you decode/encode grf files there
2005-04-07 01:18:50 +00:00
Darkvater
68138d6a31
(svn r2162) - Fix: Tooltips of horizontal scrollbars were wrong; they now say left/right instead of up/down
2005-04-07 01:02:15 +00:00
Darkvater
081ff24282
(svn r2161) - Fix: When resizing a window, the button is also visibly depressed
...
- CodeChange: Use images as arrows in the scenario-date scroller, looks better
- Feature: Clicked buttons with images/text now visibly depress their contents when pressed (eg it really seems like the button is moving)
- Fix: Fix sprite offsets of the arrow sprites in openttd.grf
2005-04-07 00:59:54 +00:00
Darkvater
5a78c32a23
(svn r2160) - Fix (Regression): Convert rail failed to work; stupid bitshifts :P (sorry)
2005-04-06 21:12:28 +00:00
matthijs
4bd95d756e
(svn r2159) - Fix: [NPF] Road vehicles never found their target station or depots (introduced in r2154)
...
- Fix: [NPF] Trains still tried to go through the back of depots.
2005-04-06 21:03:24 +00:00
miham
7f941818a8
(svn r2158) [Translations] Updated translations (72 strs/2 langs)
2005-04-06 20:20:31 +00:00
Darkvater
5109df6f55
(svn r2157) - Feature (request): [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu
...
- Feature: If the to be started server is using a password, draw a red '*' after the set password button to remind the user.
2005-04-06 18:44:34 +00:00
truelight
93c61b9e8f
(svn r2156) -Fix: in revision 2104 someone forgot to add a very important check in
...
GetPrevVehicleInChain; this caused some nasty bugs in depots, like
wagons without engines complain about not being stopped, and stuff like
that. Hopefully this fixes those problems. With a big tnx to BJH for his
perfect demo!
2005-04-06 15:39:18 +00:00
Darkvater
13fc3271f4
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
2005-04-06 09:34:56 +00:00
matthijs
92fe22382a
(svn r2154) - Fix: [NPF] Vehicles should no longer try to drive through the back of depots and road stations.
...
- Add: GetDepotDirection() wrapper function.
- Fix: [NPF] Ships can now actually reach buoys.
2005-04-05 22:06:02 +00:00
darkvater
dfe6c34bf1
(svn r2153) - Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only (glx)
2005-04-05 21:09:36 +00:00
darkvater
22d36985cd
(svn r2152) - Fix: Chatbar in MP games is now on-top of the news window.
...
- CodeChange: Introduction of SendWindowMessage() where a window can send another window a message (ala windows style msg, wparam, lparam). Messages can be sent by windowclass and by windowpointer.
- CodeChange: IsVitalWindow() simplifies a lot of checks for window handling that need to know what windows it can close, or be on top of, etc.
2005-04-05 21:03:30 +00:00
miham
4aa7cf8e9f
(svn r2151) [Translations] Updated translations (36 strs/2 langs)
2005-04-05 20:52:55 +00:00
miham
8153a56aa4
(svn r2150) [Translations] Updated translations (14 strs/10 langs)
2005-04-04 21:25:15 +00:00
Darkvater
42eae13270
(svn r2149) - Fix (Regression): [ 1175877 ] Inputbox of savegamedialog did not have "focus", keyinput went to game. A quick fix for the horrid inputkey-handling.
2005-04-04 19:14:40 +00:00
matthijs
ead34df653
(svn r2148) - Add: [NPF] Trains can now plan taking into account that they can reverse in depots. This makes forced servicing tracks work with NPF.
2005-04-04 18:36:08 +00:00
matthijs
6c825df8f7
(svn r2147) - Add: [NPF] Give red presignal exit signals a different (higher) penalty, to discourage trains from waiting at presignal exits.
2005-04-04 17:53:39 +00:00
matthijs
00c819c0d5
(svn r2146) - Fix: [ 1175973 ] Crash if any key is pressed in startup (pkirchhofer)
2005-04-04 16:47:03 +00:00
miham
b2c7543204
(svn r2145) [Translations] Updated translations (174 strs/6 langs)
...
[Translations] Also switched to two spaces instead of tabs (Darkvater requested)
2005-04-03 20:44:14 +00:00
darkvater
2ac7077571
(svn r2144) - Fix: AI crash when trying to remove stations with index higher than 256.
2005-04-03 13:57:39 +00:00
Darkvater
31381af8a0
(svn r2143) - Fix: [ 1175748 ] Wrong Button-Images in scenario-editors landscape-tool (thanks chrishuebsch)
2005-04-03 13:40:13 +00:00
Darkvater
fc411d3675
(svn r2142) - Fix: Game no longer crashes when you want to remove a piece of road under a bridge that belongs to the town. TODO: railcrossings store owner somewhere else, put it into _map_owner[]!
2005-04-03 13:37:35 +00:00
Darkvater
f00d0d8ea8
(svn r2141) - Fix: Keys now hopefully only activate the right windows. If console/querybox/chatbox is open, all input goes there, if closed to game itself.
2005-04-03 13:35:43 +00:00
Darkvater
83d62b1aa2
(svn r2140) - Fix: [ 1175726 ] Allows rails in scenario editor. Moved both 'A' autorail and 'L' Terraform toolbar to their REAL places instead of the global window.
2005-04-03 10:21:37 +00:00
bjarni
587106a869
(svn r2139) -fix: "[ 1146215 ] Engine power not updated w/auto replace" autoreplace now forces an update of the cache. It should not affect gameplay as the
...
cache is updated each time the train starts moving, it's just an instant update of the detail window
2005-04-03 09:38:13 +00:00
celestar
5d937e4a23
(svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one
2005-04-03 06:26:31 +00:00
Darkvater
64533d53dc
(svn r2137) - CodeChange: Remove unnecessary preprocessor magic
2005-04-02 23:06:54 +00:00
Darkvater
f35b59aded
(svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr)
...
- Fix: 'L' no longer opens ingame terraform bar in scenario editor bar, but the land generator one
- Feature: [ 1095110 ] Create Lake and draggable Create Desert tools (initial implementation GoneWacko), also added sticky buttons to land generator and town generator
- CodeChange: moved around some of the draggable tools, demystifying them
- CodeChange: change CmdBuildCanal to allow for XANDY dragging not only X or Y (only scenario editor)
- CodeChange: add some more enums to sprites.
- TODO: merge most of the ingame and scenario editor land terraform code. This can only be done after OnClickButton function is changed so it also includes the backreference to the widget being clicked, postponed to after 0.4.0
2005-04-02 23:05:09 +00:00
miham
3bfda758db
(svn r2135) [Translations] Updated translations (142 strings to 4 languages)
2005-04-02 22:37:24 +00:00
tron
0f830b79e1
(svn r2134) Return the correct error message if rail is already under a bridge, fix for r2131
2005-04-02 22:04:43 +00:00
tron
edd301d364
(svn r2133) Fix dependency tracking for C++ files
2005-04-02 21:05:10 +00:00
tron
10e4c9bfab
(svn r2132) Fix copy&paste bug in r2131
2005-04-02 19:45:52 +00:00
tron
ad7f157ac4
(svn r2131) -Fix: Rewrite CmdBuildSingleRail(), this addresses several issues:
...
- Check input parameters for validity
- Adhere patch settings - you were able to build foundations under bridges even if foundations where deactivated
- Charge for foundations in all cases - foundations under bridges were for free
- Make the control flow more clear
2005-04-02 18:33:53 +00:00
pasky
2d0698633d
(svn r2130) Various spelling fixes in messages.
2005-04-02 16:46:23 +00:00
pasky
8d09a1ae87
(svn r2129) Reverted r2125 and depending revisions (map size selector in the intro window). Will be done in a separate dialog. This also fixes showing of various rail/road-related strings.
2005-04-02 16:40:21 +00:00
pasky
bfe31c32c0
(svn r2128) Kill forgotten CmdSetNewMapSize() stub whose existence was kindly pointed out by TrueLight.
2005-04-02 16:16:00 +00:00
pasky
71b0622cec
(svn r2127) Get rid again of the CmdSetNewMapSize(), which was agreed to be just useless clutter. (Perhaps we should get rid of CmdSetNewLandscapeType() too, but I won't take responsibility for that. ;-)
2005-04-02 15:59:07 +00:00
Darkvater
d35f965c47
(svn r2126) - Fix : #2 Fix compilation with network disabled, and comment out some of the warnings (unused function) (I missed this out the last commit, sorry)
2005-04-02 15:08:31 +00:00
pasky
f053bbb4f4
(svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector.
2005-04-02 15:03:48 +00:00
pasky
65ed56e970
(svn r2124) Final _select_game_widgets[] reordering, even landscape panels in place now.
2005-04-02 12:45:12 +00:00
pasky
018f6f6f85
(svn r2123) Reordered _select_game_widets[] to follow a sensible order.
2005-04-02 12:19:01 +00:00
pasky
1379dc298e
(svn r2122) Reformatted the widget tables so that they don't look so ugly anymore, especially with different tab widths than 2.
2005-04-02 12:01:25 +00:00
truelight
5a527daac9
(svn r2121) -Fix: changed the 2nd param of AyStar_EndNodeCheck back to what it should be
2005-04-02 10:38:31 +00:00
miham
1d0e0b22e4
(svn r2120) [Translations] Updated translations (166 strings to 6 languages)
2005-04-02 07:19:03 +00:00
pasky
2857b71214
(svn r2119) - Fix: [ 1172878 ] Trains "Go to depot" button: click twice skip to next order (patch by Loic GUILLOUX). I also added short explanation of OF_/OFB_ difference to order.h.
2005-04-02 01:08:01 +00:00
Darkvater
35ff9d850c
(svn r2118) - Fix: Fix compilation with network disabled, and comment out some of the warnings (unused function)
2005-04-02 00:17:16 +00:00
miham
043ac73b19
(svn r2117) [Translations] Introduce lithuanian translation as finished
2005-04-01 20:10:20 +00:00
miham
ada6f0be8b
(svn r2116) [Translations] Updated translations
2005-04-01 20:03:48 +00:00
tron
3d6d4b1bfd
(svn r2115) Spring cleaning, no functional changes
2005-04-01 10:43:20 +00:00
truelight
725060b353
(svn r2114) -Fix: fix menu with signlist in SE
2005-03-31 17:31:26 +00:00
truelight
c6f56edcff
(svn r2113) -Fix: first check if a vehicle is a train, before accessing u.rail
2005-03-31 12:39:18 +00:00
tron
66989faab6
(svn r2112) -Fix: ExtMidi no longer halts the game while starting a song
...
-Fix: Redirect stdin/stdout/stderr of the ExtMidi process to /dev/null, to prevent it from writing to the terminal
While here give the ExtMidi functions canonical names
2005-03-30 19:52:26 +00:00
pasky
16a64d7000
(svn r2111) So, result is bool therefore no need for this horrible == 0 thing.
2005-03-30 12:30:24 +00:00
pasky
7ff930af04
(svn r2110) - Fix: Fixed test for various flags (e.g. newtrains in usset). result is bool so !! any non-zero values before assigning them to it - they apparently didn't fit. ;-)
2005-03-30 12:27:50 +00:00
truelight
95541fa52d
(svn r2109) -Fix: use FindVehicleOnTileZ(tile, 0) over FindVehicleBetween(tile, tile, 0)
2005-03-30 09:25:20 +00:00
truelight
d97ff67129
(svn r2108) -Fix: the server now also unpause when a client desyncs or something
2005-03-30 08:50:34 +00:00
pasky
e7937998d6
(svn r2107) - Codechange: Cleanup (well, mostly tidyup) ExtChangeIndustryProduction(). These randoms are strange.
2005-03-29 21:42:51 +00:00
truelight
508738f836
(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more stable
...
-Add: added 'pause_on_join' and 'max_join_time' for MP games, where you
can auto-pause the game when a client wants to join the game. This to
avoid connection losses because of big maps (200+ trains). (with tnx to
#openttdcoop for the ideas and testing)
2005-03-29 19:10:13 +00:00
celestar
c68cfdeeca
(svn r2105) -Codechange: Added a cache for the first vehicle of a chain to increase performance, especially with many long trains
2005-03-29 11:19:10 +00:00
tron
3a8665f796
(svn r2104) Simplify implementation of Get{First,Prev}VehicleInChain() and remove a pointless check
2005-03-29 08:37:44 +00:00
Darkvater
eb96f89960
(svn r2103) - Fix: Remove unnused variable from OS2 file
2005-03-28 21:14:36 +00:00
tron
9d2406729e
(svn r2102) Fix bug introduced in r2038, which gave you money for clearing occupied railway tiles ([1171926])
2005-03-28 18:59:33 +00:00
tron
6ec727d15c
(svn r2101) statvfs() is availible on POSIX.1 conformant systems.
...
Also use a different field, which has a better chance of containing meaningful information, of the returned struct to determine the free space on the filesystem and fix a small bug introduced in r2100 (s/!=/==/)
2005-03-28 15:40:05 +00:00
darkvater
6bca4c041a
(svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch [1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines. Tron + glx (and me)
2005-03-28 13:30:51 +00:00
truelight
4573a9f872
(svn r2099) -Fix: no longer chat-messages hang when the game wraps around 2090
...
-Codechange: while trying to find this bug, made texteff.c a bit more readable :)
2005-03-28 12:38:02 +00:00
tron
e4cb9dbb77
(svn r2098) Make a variable static, move a function declaration to a header and remove unnecessary preprocessor magic
2005-03-28 08:48:41 +00:00
celestar
51eeea477b
(svn r2097) -Codechange: [Multistop] Prettified the previous commit
2005-03-28 08:17:35 +00:00
celestar
f42d17c6b3
(svn r2096) -Codechange: [Multistop] Modfied some debug stuff
2005-03-28 08:12:21 +00:00
tron
bba102e624
(svn r2095) In CheckTrackCombination(): if () cascade -> switch, improve readability
2005-03-28 07:25:36 +00:00
tron
ae359d0d02
(svn r2094) In GetTileDesc_Track(): uint -> TileIndex, use enums, if () cascade -> switch
2005-03-28 07:02:51 +00:00
tron
9e53b86dca
(svn r2093) uint -> TileIndex, remove commented out code and a local variable, which was only used once
2005-03-27 18:15:27 +00:00
Darkvater
a494f96cfe
(svn r2092) - Fix: old commands/lines in the console (history) did not show when they used 'special' characters like öä, etc. Diff approved by the code-police.
2005-03-27 17:20:27 +00:00
tron
c4133f2535
(svn r2091) Small cleanup: uint -> TileIndex, const, don't call FindLandscapeHeightByTile()
2005-03-27 16:40:01 +00:00
pasky
31c36d3dd4
(svn r2090) CheckNewIndustry_Oilwell() -> CheckNewIndustry_Oil() since it was concerning oil rigs and oil rafineries, but specifically NOT oil wells. ;-) Documented that.
2005-03-27 16:19:07 +00:00
pasky
aafb136cd0
(svn r2089) - Codechange: Simplify slopes check in CmdBuildBridge(). Inspired by st3wis' patch 1144746.
2005-03-27 15:56:54 +00:00
pasky
04dc6441aa
(svn r2088) - Fix: [ 1155158 ] Make extmidi command a config option in addition to the compile-time MIDI switch. Patch by macbaine.
2005-03-27 15:42:25 +00:00
pasky
60bb2374d6
(svn r2087) Show also the modified filenames along each change in svn log. Prevents enraging Darkvater, and we show the commit messages along changed files everywhere else too (on IRC and in mail).
2005-03-27 15:13:51 +00:00
pasky
8acc24f000
(svn r2086) - Codechange: Two indentation fixes coming from Loic Guilloux' patch 1171208.
2005-03-27 15:12:26 +00:00
tron
0659f34aa6
(svn r2085) Improve browsing via console:
...
- change directory/load map via filename (number is also possible)
- add command "pwd" to Print the current Working Directory
- rename "list_files" to "ls" (and add alias "dir")
- rename "goto_dir" to "cd"
- loading of TTD maps via "load" is now possible
- switching of drives via "cd" (only applies to systems which have a drive concept) is now possible
- "scan_files" is now obsolete and was removed
This is still far from perfect, mostly because the way OTTD handles files is Broken By Design(tm), but should make file navigation via console a bit easier
2005-03-27 12:48:25 +00:00
tron
aba225c88d
(svn r2084) Set the name for drive items
2005-03-27 10:35:01 +00:00
matthijs
e01338fcf5
(svn r2083) Add pasky's and my real name in readme.txt as well.
2005-03-27 01:23:31 +00:00
matthijs
a0f9a7597c
(svn r2082) I have a name too!
2005-03-27 01:10:23 +00:00
pasky
bf1fd0379c
(svn r2081) I have a real name, too.
2005-03-27 00:42:57 +00:00
pasky
0c5d61bd56
(svn r2080) - Fix: [OldAI] p->ai.state_counter was uint16 but could hold a tile index, therefore overflowing - changed that to uint32 and bumped the savegame revision to 32. It *MIGHT* close bug 1151374 - it certainly caused AI to stop building anything sometimes.
...
- While at it, use TileIndex as the tile index type in AiRemovePlayerRailOrRoad() and AiStateRemoveTrack().
- Make the number of tiles scanned 4*MapSizeX() instead of 1000. It *MIGHT* close bug 1116614.
2005-03-27 00:28:14 +00:00
truelight
e416fe8066
(svn r2079) -Add: signlist, shows all signs in the map. Clicking on them, and you go
...
to the sign. Very needed for coop. You can find it under World Map.
2005-03-26 21:22:29 +00:00
darkvater
45425bedca
(svn r2078) - VS.NET: oops, I screwed up Release compilation cause of the stupid precompiled headers; fixed now :). minlizo.c does not use any precompiled headers.
2005-03-26 20:10:59 +00:00
pasky
8efcba81d7
(svn r2077) - Fix: [ 1170978 ] OS/2 project update: add waypoint.c. (-- Owen Rudge)
2005-03-26 18:12:58 +00:00
tron
742513d708
(svn r2076) Set the name for the parent directory to ".."
2005-03-26 18:04:42 +00:00
truelight
cef2e24ec4
(svn r2075) -Fix: added missing breaks in switches
...
-Fix: added const for a const variable
2005-03-26 12:08:56 +00:00
pasky
f89984642e
(svn r2074) MouseLoop -> InputLoop(), factor out a real mouse-specific MouseLoop from the new InitLoop() (more in the spirit of HandleKeypress()).
2005-03-26 04:16:39 +00:00
pasky
d4b3469e2f
(svn r2073) - Fix: Fixed an apparent oversight in AddTextMessage() which is likely to have caused some messages not expiring from the chatterbox after the given time, as reported by dp-.
2005-03-26 04:02:50 +00:00
tron
7340aa5b8e
(svn r2072) Use lengthof() instead of a home brewed version
2005-03-25 20:37:06 +00:00
Darkvater
67d2ada020
(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
2005-03-25 20:20:23 +00:00
darkvater
b909a1f775
(svn r2070) - VS.NET: remove all superflouos file compilation directives (inherit setting from project defaults), except for w32dm.c which has to be C++.
2005-03-25 20:15:00 +00:00
Darkvater
3855c7f92f
(svn r2069) - Feature: [ 1168743 ] save command for console (pkirchhofer)
2005-03-25 18:26:49 +00:00
Darkvater
c4f1d4dfed
(svn r2068) - MSVC: [ 1167036 ] MSVC 6/.NET update for 2 new languages (bociusz)
2005-03-25 18:11:24 +00:00
Darkvater
5ce3537ef0
(svn r2067) - CodeChange: [ 1166931 ] Small OS/2 patch: SVN version detection (orudge)
2005-03-25 18:04:04 +00:00
Darkvater
7da3b3b92d
(svn r2066) - Fix: [ 1164248 ] game crash while AI builds bridge. Also protect bridge building against invalid bridges and some safeguards when drawing.
2005-03-25 17:30:54 +00:00
truelight
05dbeaeba4
(svn r2065) -Fix: reverted revision 2044, because it had more negative effects than positive
2005-03-25 16:10:33 +00:00
pasky
339785dad7
(svn r2064) - Codechange: GetVehicleSpriteGroup() cleanup - drop overriding_engine, which was around probably only for historical reasons. (Paralellily developed by HackyKid.)
2005-03-25 16:07:35 +00:00
pasky
7fceb7ea86
(svn r2063) Fix: the 0x40 deterministic spritegroup for vehicles was wrong, modified to match the wiki again. (The wiki was partially wrong, too! ;) (Patch by HackyKid.)
2005-03-25 15:31:01 +00:00
darkvater
44f3702919
(svn r2062) - Set native eol-style on some OS specific files to allow cross-OS diff patching #2
2005-03-25 15:30:51 +00:00
Darkvater
e94a921c2b
(svn r2061) - Set native eol-style on some OS specific files to allow cross-OS diff patching
2005-03-25 15:18:00 +00:00
tron
9832a691fe
(svn r2060) Clean up some string construction and remove now unused macro
2005-03-25 14:19:33 +00:00
truelight
6d75cce924
(svn r2059) -Codechange: rewrote SetSignalsAfterProc so now the tiles from the PF
...
are checked against the vehicle-position-hash, instead all vehicles to
the PF-position-hash. Big speed increase (function usages drops from 9%
to 0.5%!) for maps with a lot of trains.
2005-03-25 13:37:37 +00:00
truelight
1eab014524
(svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
2005-03-25 12:07:26 +00:00
tron
0c325e10da
(svn r2057) Add InlineString() to make _userstring construction a bit cleaner.
2005-03-25 11:32:58 +00:00
celestar
9cde836d08
(svn r2056) -Fix: [ 1166999 ] Strange cast removed. Thanks Tron
2005-03-25 11:03:05 +00:00
celestar
6e142d523e
(svn r2055) -CodeChange: Begun introducting StationID
2005-03-25 10:40:58 +00:00
celestar
75bc6cd7e7
(svn r2054) -CodeChange: Removed an unused enum
2005-03-25 09:44:17 +00:00
darkvater
b721a08ef2
(svn r2053) - Remove VS.NET dependencies from project file and list properly as additional dependencies. This means you no longer need the lib files for each and every working copy you have checked out. You can either put them in the /lib directory (the header files in the /include dir) or keep them where they were, that continues to work. This concerns WITH_PNG and WITH_ZLIB.
2005-03-24 20:49:17 +00:00
darkvater
602fda327f
(svn r2052) - Fix Regression: ALT+F4 once again shuts down openttd in windows and F10, etc. is fixed.
2005-03-24 20:47:21 +00:00
darkvater
62b8355af0
(svn r2051) - Remove trailing tabs from vs.net project file
...
- Set proper line-ending for newly added files waypoint.[ch]. PLEASE don't forget this!
2005-03-24 19:40:48 +00:00
miham
16a3bc35c0
(svn r2050) Weekly langfile updates
2005-03-24 18:48:20 +00:00
truelight
9791068844
(svn r2049) -Update: updated project files
2005-03-24 17:50:19 +00:00
truelight
2423eaac2c
(svn r2048) -Fix: deleted a word somehow :s (Tnx Tron!)
2005-03-24 17:33:27 +00:00
truelight
5972d84c82
(svn r2047) -Fix: never commit your own personal changes... :(
2005-03-24 17:31:55 +00:00
truelight
83637d164e
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
...
-Codechange: rewrote some functions while moving waypoint-stuff
-Add: added support for 64k waypoints
-Fix: made the waypoint struct a bit more logic (no bit-fucking)
2005-03-24 17:03:37 +00:00
truelight
f86318407c
(svn r2045) -Fix: hopefully fixed the desync problem. Please all test this revision!!
...
(with tnx to Celestar, Hackykid, dp-_ and Tron)
2005-03-24 15:15:06 +00:00
truelight
1536c3ae5a
(svn r2044) -Fix: fix that TriggerVehicle is called from the wrong user
2005-03-24 14:43:40 +00:00
truelight
9b1e6e6d3e
(svn r2043) -Fix: committed too many files in the last commit
2005-03-24 14:33:05 +00:00
truelight
fbb11ea366
(svn r2042) -Fix: forgot to remove a printf ;)
2005-03-24 14:31:27 +00:00
truelight
88ef277dc3
(svn r2041) -Fix: not all vehicles did get a day_proc call (because of rounding errors)
2005-03-24 13:59:44 +00:00
tron
ccd6a0614f
(svn r2040) Readd check that got accidently removed in r2022
2005-03-24 07:48:04 +00:00
tron
bfc1d43a27
(svn r2039) IS_RAIL_DEPOT -> IsRailDepot, IS_RAIL_WAYPOINT -> IsRailWaypoint
...
remove now unused enums and remove a redundant condition in one if
2005-03-23 21:57:10 +00:00
tron
71dba5f511
(svn r2038) -Fix: A player only received the money for one rail when clearing a tile with 2 rails and signals
...
While here rewrite parts of the function to (hopefully) increase clarity
2005-03-23 20:02:28 +00:00
tron
22c4924040
(svn r2037) uint -> TileIndex, remove pointless casts, const, misc.
2005-03-23 11:54:20 +00:00
tron
04087c9ac9
(svn r2036) Fix FindNearestHanger(), it never worked correctly because 0xFFFF != 65000 and a 16bit number has no 17th bit
...
While here also do some const gymnastics
2005-03-23 11:12:17 +00:00
tron
b19553574e
(svn r2035) - Remove unneeded realloc()
...
- Use TileOffsByDir() instead of home brewed table
2005-03-23 08:24:13 +00:00
celestar
fbc2eacade
(svn r2034) -Codechange: Replaced the rather meaningless LOAD and UNLOAD flags for depots by something more meaningful
2005-03-20 08:43:29 +00:00
pasky
087d78d465
(svn r2033) - Fix: Fix some more desync by saving the town growth frequency iterator _cur_town_iter. Needed to bump a svg revision for that thanks to the braindead SlGlob thing, or at least I don't know how to do it without bumping it.
2005-03-20 00:32:26 +00:00
Celestar
1990c139d5
(svn r2032) -Codechange: A less hackish version of SVN version detection for OS/2 (orudge)
2005-03-19 23:23:56 +00:00
celestar
f179dc7acc
(svn r2031) -Fix: Station #256 now gets cargo delivered as well
2005-03-19 23:17:59 +00:00
celestar
f41be0b25a
(svn r2030) -Fix: Save _cur_town_ctr with all its bits to prevent desyncs
2005-03-19 22:45:59 +00:00
celestar
6bd06dbc33
(svn r2029) -Fix: Added files I forgot to svn add the previous commit
2005-03-19 22:41:55 +00:00
celestar
fe8313159a
(svn r2028) Added detection of SVN version (rev.c generation) for OS/2, updated readme, initial clipboard support (orudge)
2005-03-19 22:36:13 +00:00
miham
d2ae7dd186
(svn r2027) Fixed a typo in the brazilian-portuguese language name
2005-03-19 22:11:21 +00:00
miham
d6b8375504
(svn r2026) Moved brasilian_portuguese to finished languages
2005-03-19 22:04:59 +00:00
miham
b3b6eafe1d
(svn r2025) Daily langfile changes - 05/03/19
2005-03-19 22:04:36 +00:00
bjarni
acb1fb2e30
(svn r2024) -Fix: [autoreplace] reverted all changes involving v->set_for_replacement as they caused desyncs.
...
The bad sideeffect of this is that now no vehicle will automatically go to a depot anymore just
because it is set to be autoreplaced. We will have to find a better way to solve this problem.
Revisions reverted: 1640, 1707, 1709, 1710, 1712(but not the cheat prevention in this one)
2005-03-19 21:16:22 +00:00
miham
e12bb5504a
(svn r2023) Added brazilian-portuguese translation [yet unfinished]
2005-03-19 12:24:51 +00:00
tron
e5036891f6
(svn r2022) Revise CmdRemoveSingleSignal: Check parameters for validity and simplify the function
2005-03-18 07:37:32 +00:00
pasky
ad579912f4
(svn r2021) Fix: Enlarge _cur_town_ctr from byte to uint32 so that all the towns are considered when growing them even for big maps, where much more than 256 towns are around; reported by Tomasz Dubiński <uboottd@hydra.polsl.gliwice.pl>. The savegame still saves just the lowest 8 bits but that doesn't hurt so much.
2005-03-17 23:12:23 +00:00
tron
cb084f59c2
(svn r2020) Reduce code duplication in the minimap code a bit
2005-03-17 16:31:18 +00:00
tron
f1f70501db
(svn r2019) Miscellaneous cleanups, like uint -> TileIndex, >> -> /, if cascade -> switch
2005-03-17 09:59:52 +00:00
tron
195e515de1
(svn r2018) Yet another workaround
2005-03-15 21:07:09 +00:00
tron
dad3d12406
(svn r2017) Explicitly mark SlReadByte as 'inline'
2005-03-15 20:07:46 +00:00
miham
42cd07a2e2
(svn r2016) Langfile updates
2005-03-15 19:26:46 +00:00
tron
61e0dd439f
(svn r2015) Use a struct and an inline function for colour masking on the mini-map - this should improve readability a bit
2005-03-15 18:31:38 +00:00
tron
f91f8d9559
(svn r2014) Don't manually inline a piece of code
2005-03-15 16:56:05 +00:00
tron
cf43c7a0e6
(svn r2013) Always ignore SIGPIPE, not only when SDL is used (ShadowJK)
2005-03-15 14:23:00 +00:00
tron
3763ec7652
(svn r2012) When making a savegame name, don't append the extension, if it is already there
2005-03-15 14:06:28 +00:00
darkvater
cc99c3e262
(svn r2011) - Fix: [ 1162209 ] Fix OS/2 build (orudge) #2
2005-03-15 12:21:59 +00:00
darkvater
2c762a67ab
(svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge)
2005-03-15 12:21:15 +00:00
darkvater
6cbf73a666
(svn r2009) - VS.NET/VS6 removed all builds except for Release and Debug. Also add additional dependencies to the project file instead of in the header file itself.
2005-03-14 19:27:19 +00:00
darkvater
038e711af2
(svn r2008) - Fix: Added missing file (mixer.[ch]) to VS.NET and VS6 project files.
2005-03-14 18:20:00 +00:00
matthijs
c2fea7b3c6
(svn r2007) - Fix: [NPF] Slope penalties did not work correctly with foundations. (HackyKid)
...
- Fix: [NPF] Stations penalties were not applied correctly, since stations had no base cost. (HackyKid)
- Fix: [NPF] Lastred penalty was applied multiple times for every red signal, instead of just the last one. (HackyKid)
2005-03-14 16:56:05 +00:00
matthijs
d631b1fa8c
(svn r2006) - Fix: [NPF] Wrong signal detection for last signal red detection. Multiple tracks per tile with only one signal were detected wrong. (HackyKid)
2005-03-13 17:51:29 +00:00
Darkvater
de47d0935f
(svn r2005) - Fix: fix previous commit. Using 'New Game (scenario)' will use YOUR difficulty settings but ingame options (eg townnames, currency). Also settings are correctly saved when closing the difficulty window now.
2005-03-13 11:47:04 +00:00
Darkvater
010d1a9be3
(svn r2004) - Fix: [ 1149487 ] Autosave ignoring settings
...
- Fix: [ 1153926 ] All my settings in vain... IGNORED!
- Change: I hope I got it all right. Pressing 'New Game' (either choosing random or a preset scenario) and 'Create Scenario' will start a new game with the settings and difficulty in the intro menu. Using 'Load Game' and 'Play Scenario' will take the values from the savegame/scenario itself.
2005-03-12 21:21:47 +00:00
tron
c3f9f5efaf
(svn r2003) Remove some now unused filehandling stuff, this should have been part of r1990
2005-03-12 09:48:08 +00:00
tron
1cb9ea5c46
(svn r2002) Rename MxActivate to MxActivateChannel, which is more appropriate
2005-03-12 09:46:07 +00:00
tron
39305c1a7c
(svn r2001) Resolve a race condition which could lead to dropped a sound and a memory leak
2005-03-12 09:40:29 +00:00
tron
f04780e66d
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
2005-03-12 09:38:03 +00:00
tron
70be35f319
(svn r1999) r1990 broke savegame deletion, fix that [1161729]
2005-03-12 09:24:27 +00:00
pasky
e76912303c
(svn r1998) Give penalty 100 to the AI for using foundations (buildonslopes). This prevents it from building long road lines on foundations unless really necessary.
2005-03-12 08:52:40 +00:00
pasky
2d9611f948
(svn r1997) Fixed errorneous tab expansion on the indentation side which happenned in r1993. Pointed out by Tron.
2005-03-12 01:02:17 +00:00
pasky
bf8965a615
(svn r1996) makefile.config -> Makefile.config, that's its name.
2005-03-11 22:48:37 +00:00
pasky
e003532701
(svn r1995) Makefile: Use the install tool instead of mkdir+cp for installing the system-wide stuff, more secure. Based on Peter Brett's patch 1152428.
2005-03-11 22:47:33 +00:00
pasky
89d1c60c3f
(svn r1994) Fix: 1159456 - hopefully prevent the new AI to get stuck in an infinite loop forlorny trying to build its haven. Unintentionally bundled with trivial tidyup.
2005-03-11 22:27:49 +00:00
pasky
f820aa3f60
(svn r1993) Fixed some devious [lack of] tabs usage.
2005-03-11 22:07:20 +00:00
pasky
83df863b6c
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
2005-03-11 19:35:50 +00:00
Darkvater
fea811a4b7
(svn r1991) - Fix: Fix some of the gaping holes in the colouring, and added some additional info
2005-03-11 18:31:56 +00:00
tron
d755b7908e
(svn r1990) Reduce the diff between the OS specific files with respect to file handling and fix some inconsitencies (I hope I didn't break the OS/2 part, couldn't test it, feedback is welcome)
2005-03-11 14:14:54 +00:00
tron
eab8b9a116
(svn r1989) -Feature: Resizable vehicle view windows; this is based on a patch by tmesisbob
2005-03-11 13:17:39 +00:00
Darkvater
e98a7ff239
(svn r1988) - Docs: Added graphical representation of tile-data to docs section
2005-03-11 00:32:24 +00:00
Darkvater
0b82467cf1
(svn r1987) - Cleanup: remove the last remaining dinosaurs of a dead console
2005-03-10 22:03:55 +00:00
Darkvater
a0ef37e7bc
(svn r1986) - Fix: free _config_file when shutting down openttd. Strange that Valgrind didn't catch this, kudos to TrueLight
...
- Feature (small): new command-line option -c <config_file>. You can have OpenTTD load alternative config files with this setup, handy for servers, or for saves from other players if you don't want to rename your own config. This will have to do until all game-related settings are saved ingame. Couldn't find the SF patch, so credits to the guy that wrote it.
2005-03-10 21:44:17 +00:00
miham
8064254eaf
(svn r1985) Automatic langfile updates
2005-03-10 16:09:51 +00:00
tron
8982342c54
(svn r1984) -Fix: [1155762] Don't try to open the non-existent menu, when F10 is pressed
2005-03-10 15:41:25 +00:00
tron
c26177d14f
(svn r1983) Introduce multiple compile time debug levels
2005-03-10 15:23:13 +00:00
truelight
ba89c8d580
(svn r1982) -Fix: also windows has no 'fork' option
2005-03-10 10:59:35 +00:00
tron
4bf173e9c1
(svn r1981) Typedef some structs and enums
2005-03-10 07:01:43 +00:00
pasky
e6feb22411
(svn r1980) Check $DESTDIR if $DEST_DIR was not set.
2005-03-09 23:59:18 +00:00
tron
e5121e70d0
(svn r1979) Const correctness
2005-03-09 21:54:52 +00:00
Darkvater
9bd079d425
(svn r1978) - Fix: Plug some memleaks; thanks Valgrind
2005-03-09 19:48:20 +00:00
tron
9bc68d209f
(svn r1977) Typedef some enums and struct plus some minor style changes
2005-03-09 19:42:37 +00:00
tron
e6e3e69da4
(svn r1976) Cleanups - mostly indentation and fiddling with loops
2005-03-09 19:09:04 +00:00
pasky
750a265531
(svn r1975) Minor tweaking of the Czech name generator tables.
2005-03-09 18:19:13 +00:00
tron
95fafc7c25
(svn r1974) Cleanups, quite similar to those done to win32.c in r1972 (code duplication, anyone?)
2005-03-09 17:45:51 +00:00
tron
0f3bb838d8
(svn r1973) Ignore the Windows binaries
2005-03-09 17:03:28 +00:00
tron
11ba413c4a
(svn r1972) Several cleanups and fix some latent bugs
2005-03-09 16:56:26 +00:00
celestar
6e1e4f1dc2
(svn r1971) -Codechange: Got rid of two ugly gotos and replaced them by one elegant and one ugly non-goto. Credits for 1959 go to Darkvater. Sorry
2005-03-09 15:37:36 +00:00
tron
34f14e657d
(svn r1970) Fix some warnings which Cygwin showed
2005-03-09 11:49:34 +00:00
Darkvater
a571f31c95
(svn r1969) - GUI: Replace vehicle dropdown menu now looks a bit more comform the ones used throughout the game.
2005-03-08 23:20:47 +00:00
matthijs
b7747b50ce
(svn r1968) - Fix: [NPF] Mixed declarations and statements
2005-03-08 22:28:59 +00:00
pasky
0e367ba541
(svn r1967) Codechange: A mix of mostly indentation-related tidyups.
2005-03-08 22:21:20 +00:00
Darkvater
83d3f85636
(svn r1966) - Fix: [ 1110437 ] Replace Vehicles GUI gets random clicks. Breaks people! Don't forget the breaks in switch() statements!!
2005-03-08 21:47:22 +00:00
matthijs
4206d8f955
(svn r1965) - Fix: [NPF] Forgot to update one line where NPFGetFlag() should have been used two commits ago.
...
Message for last commit should have been:
- Add: [NPF] Added penalty for curves, straighter paths are now preferred when the length is the same. (HackyKid)
2005-03-08 20:13:21 +00:00
matthijs
aea57f2026
(svn r1964) - Add: [NPF] Added a penalty
2005-03-08 19:59:56 +00:00
matthijs
232e41f2ff
(svn r1963) - Add: [NPF] Penalty for a red signal that is the last signal on the path.
...
- Add: [NPF] NPFGetFlag() and NPFSetFlag() to wrap NPF node flag handling
2005-03-08 19:54:10 +00:00
Darkvater
d781d7ec00
(svn r1962) - SVN: set eol-style property for the last file
2005-03-08 17:47:28 +00:00
Darkvater
3e51317236
(svn r1961) - Fix: [ 1158618 ] Segmentation fault when loading savegame, out of bounds array check.
2005-03-08 17:32:34 +00:00
Darkvater
9c7d3f7f67
(svn r1960)
...
- SVN: ignore some files created with KDevelop
- SVN: set eol-style properly for some of the newly added files
_M .
_M npf.c
_M debug.c
_M npf.h
_M debug.h
_M lang/unfinished/frisian.txt
_M lang/unfinished/lithuanian.txt
_M lang/unfinished/estonian.txt
_M pool.c
_M depot.c
_M pool.h
_M depot.h
_M string.c
_M string.h
_M strings.h
_M table/sprites.h
_M table/currency.h
_M table/files.h
_M namegen.h
2005-03-08 17:28:41 +00:00
Celestar
7473cef063
(svn r1959) -Fix: Repaired two memleaks I have hacked :(
2005-03-08 16:27:26 +00:00
pasky
bcc9dcd210
(svn r1958) GenerateStationName() tidyup.
2005-03-08 00:26:30 +00:00
pasky
f2e45daf54
(svn r1957) Compilation fix.
2005-03-08 00:18:31 +00:00
matthijs
b43a52128f
(svn r1956) -Fix: [NPF] New target tile for heuristic should perform better with larger stations (HackyKid)
2005-03-07 23:28:27 +00:00
pasky
0e4828e732
(svn r1955) Fix: Make the town growth frequency scale properly both up and down. The scaling is now also based on the number of towns instead of the map size. (In cooperation with HackyKid.)
2005-03-07 13:20:22 +00:00
pasky
771bd349cb
(svn r1954) Fix: The new AI now does not think it can connect to the road by building its piece of road above the end of a tunnel anymore.
2005-03-07 11:36:05 +00:00
pasky
6c60ff92ff
(svn r1953) Codechange: Tidyup, reduced ridiculous indentation levels, some sprintf()s replced by snprintf()s.
2005-03-07 00:39:41 +00:00
pasky
f1f1783aa8
(svn r1952) Fix: Hopefully fixed the enormous towns growth slowdown in large maps. (Inspired by toholio.)
2005-03-06 23:46:52 +00:00
pasky
028ef2b5b5
(svn r1951) Introduced SeedModChance() (which is like SeedChance() but uses simple modulo instead of bitshifting and multiplication), explained why does it work better, used it in MakeCzechTownName() and added a TODO note about possibly using it in the other town name generators too.
2005-03-06 23:21:57 +00:00
pasky
6902a8b294
(svn r1950) Fix: A slight adjustment in the DoRandom() function which however causes dramatic improvement in the distribution of random numbers.
...
With the original generator, e.g. Random()%44 on 100 attempts regularily
generated only 22 different values! With this adjustment, the distribution is
much more uniform, almost approaching the glibc's random() call.
This means the random numbers are actually usable i.e. for the town names
generators which almost never tried a large part of the names while others were
very frequent.
Note that we attempted to test whether the randomness did not degrade in some
other way, and it came clean from the tests we performed. If you spot anything
fishy, try without this patch, though.
2005-03-06 22:28:35 +00:00
pasky
feb907d225
(svn r1949) Fixed the CzechChoose usage in the Czech word tables. Now selecting colours actually works.
2005-03-06 21:20:34 +00:00
pasky
bb5b89eb26
(svn r1948) Add an explicit copyright notice regarding the Czech town names generator and an offer to help. :-)
2005-03-06 17:09:08 +00:00
pasky
a0c157eea8
(svn r1947) As in r1946, permit DC_QUERY_COST even on non-depot tiles - so that it works for the ai_new. It is de iure not a bug yet but let's be safe against future annoying headaches. Signed-Off-By: TrueLight
2005-03-06 16:58:42 +00:00
pasky
4a6a7028a9
(svn r1946) Fix: [AInew] Allow DC_QUERY_COST even on tiles with no depot built. This is used by the ai_new for deciding if it can afford the vehicles before actually building the depot. Was broken in r1728. Signed-Off-By: TrueLight ;-)
2005-03-06 16:53:00 +00:00
darkvater
eb3671b647
(svn r1945) - CodeChange: re-commit of rev 1835: "Reduce the visibility of network_core.h (Tron)".
...
- VS6/.NET: moved ENABLE_NETWORK to the project file setting (same place as WITH_SDL, WITH_ZLIB) and removed it from network_core.h
2005-03-06 16:23:32 +00:00
pasky
97b2635e7d
(svn r1944) Make --help output for -d at least somewhat useful.
2005-03-06 16:08:19 +00:00
pasky
39743082b4
(svn r1943) Show the sprite ID in the check_length() error message. Also show the correct sprite ID in the spriteskip notice.
2005-03-06 15:22:28 +00:00
tron
2e3465cb49
(svn r1942) Fix r1938
2005-03-06 15:15:27 +00:00
pasky
7ee6d0fa62
(svn r1941) Report missing NewGRF file as a fatal error.
2005-03-06 13:57:19 +00:00
pasky
0ae7df4a95
(svn r1940) TODO about usrerror().
2005-03-06 13:55:40 +00:00
tron
3e142a6297
(svn r1939) Revert part of r1938 which accidently crept in
2005-03-06 12:56:02 +00:00
tron
aee2b0c50a
(svn r1938) Miscellaneous cleanups: const correctness, kill a goto, ...
2005-03-06 12:54:19 +00:00
tron
9973e97b84
(svn r1937) TILE_FROM_XY() returns a TileIndex, not an int
2005-03-06 12:46:29 +00:00
tron
e748280622
(svn r1936) End some void-pointer-as-int-abuse; this also fixes a latent bug where a TileIndex was only 24bit wide (on 32bit architectures)
2005-03-06 12:41:18 +00:00
tron
a4a09e73d5
(svn r1935) Missing braces; while here turn the ifs into a single switch
2005-03-06 12:33:33 +00:00
tron
a747e2bb97
(svn r1934) Small cleanup (uint -> TileIndex, (uint)-1 -> INVALID_TILE and similar stuff)
2005-03-06 12:31:07 +00:00
tron
4c9b6b44d5
(svn r1933) typedef socklen_t for BeOS
2005-03-06 12:26:38 +00:00
pasky
71906d09b7
(svn r1932) Fix: [SDL] On Linux console, the backquote scancode is 41. Let's hope nothing conflicts with it in X.
2005-03-06 00:39:38 +00:00
pasky
fb98c932b2
(svn r1931) Added Krystofova, Udoli and Hut. Zdar is s. masc., not s. neut.
2005-03-05 22:21:43 +00:00
pasky
2a78d3efa9
(svn r1930) Cleaned up the postfix-ending connecting code and introduced some simple postfix-last-letter transformations when the ending first letter is 'i'.
2005-03-05 22:21:02 +00:00
pasky
d0f9cc27a3
(svn r1929) Feature: [namegen] Support for dynamic generation of the Czech town names.
...
The static names are still used in 1/4 of cases. I think the tables for
dynamic generation must look pretty spectacular. :-) New stems are still
needed and there can be occasional glitches, please let me know.
I guess that this method of dynamic generation could be used for at least
Slovak town names, too. And possibly other Slavic languages?
2005-03-05 21:00:13 +00:00
tron
4325f13f74
(svn r1928) Miscellaneous cleanups (data types, whitespace, const correctness)
2005-03-05 18:44:26 +00:00
tron
3aa99a660e
(svn r1927) Replace implementation of UpdateStationAcceptance(). The new one doesn't malloc() and calculates the station area in one pass instead of 3
2005-03-05 17:41:51 +00:00
pasky
01fd7eb861
(svn r1926) Codechange: Renamed some of the predefined town names arrays for consistent naming.
...
- name_spanish_1, name_french_1, name_czech_1, name_romanian_1, name_finnish_1
and name_german_hardcoded were renamed to *_real.
- name_slovakish_1 was renamed to name_slovak_real.
- name_finnish_2[ab] was renamed to name_finnish[12].
- Added comment near the town_names setting definition about the "Slovakish"
pigginess.
2005-03-05 14:54:11 +00:00
pasky
b5a96ff9c1
(svn r1925) Fixed an infinite loop if the town generator runs out of town names. The number of generated towns is then limited by the number of available names.
2005-03-05 13:49:43 +00:00
tron
6f184a0471
(svn r1924) Use same type names in declaration and implementation
2005-03-04 10:34:44 +00:00
Darkvater
0067f68117
(svn r1923) - Fix: [ 1155696 ] Crash with german umlauts in station names. The width was not calculated using unsigned values, so all characters above 128 were "negative"
...
- Codechange: a more proper check for a null pointer in tunnelbridge_cmd.c should have gone in with the previous commit
2005-03-04 00:14:28 +00:00
Darkvater
232fffffac
(svn r1922) - Fix: Disappearing of crashed trains inside tunnels were not checked properly.
2005-03-03 23:26:35 +00:00
tron
0c3927ce4a
(svn r1921) -Fix: Out of bounds array access which caused oil rigs to accept other cargo types besides passengers and mail
2005-03-03 19:54:46 +00:00
truelight
ae4995c671
(svn r1920) -Fix: no longer a station where you only unload is bad for your town-rating
2005-03-03 14:56:28 +00:00
truelight
862faa16c0
(svn r1919) -Fix: Minimum profit of vehicles was calculated wrong for Performance Rating
2005-03-01 19:32:55 +00:00
truelight
6519d3bc97
(svn r1918) -Fix: [ 1101874 ] Dedicated server now accepts '-g' (load game) as param
2005-03-01 17:32:47 +00:00
pasky
ccbb6263ea
(svn r1917) - Makefile: Revamped VERBOSE support, build mechanics changed.
...
- VERBOSE has now greater effect, many previously hidden commands
are now shown on the terminal as they are executed. (Use $(Q)
instead of @ where the command should be shown if VERBOSE.)
- Compilation commands redundancy was eliminated.
- Compilation commands calling generalized so that the VERBOSE
support does not further entangle the code. The commands are now
all at a single place, before the targets in a "Build commands"
section.
Note that this changeset has a character of proposal. If you do not
like the direction it takes at all, feel free to revert it (probably
together with the previous VERBOSE patch). However, I believe it
improves the code by bringing the compilation commands to a single
place and it greatly improves the VERBOSE support, too (and makes it
much less intrusive).
2005-03-01 01:14:27 +00:00
pasky
053d1bade3
(svn r1916) Fix compilation on the glibc-2.2 systems. Part of the inspiration comes from patch 1149710 by Mr. Nobody. Also fixes the comment describing what to do if one's system doesn't have ifaddrs.h.
2005-02-28 22:33:31 +00:00
pasky
694741f441
(svn r1915) Support for a VERBOSE flag which will make the full compiler invocations to be shown instead of ===> Brief summaries.
2005-02-28 21:54:04 +00:00
Darkvater
6fd4347c6c
(svn r1914) - Fix: [ 1119147 ] Stop startup memory corruption crash using optimized MSVC6. MSVC6 workaround as it's too stupid again for its own good
2005-02-26 13:57:40 +00:00
miham
e25dd2c2c3
(svn r1913) Weekly langfile update
2005-02-24 22:37:35 +00:00
Darkvater
ef24a3caa8
(svn r1912) - Fix: [ 1149766 ] Single tile Bridge in Volcano City scenario. Some bridges still had the old single-tile bridge bug that was caused by improper town growth in combination with DC_AUTO. Fixed the scenario.
2005-02-24 17:17:36 +00:00
tron
9efcfc65af
(svn r1911) Put back an "if" i accidently removed in r1898
2005-02-23 14:12:32 +00:00
tron
f55bde6ee4
(svn r1910) Move two variables out of variables.h which are only used locally
2005-02-23 09:13:12 +00:00
Darkvater
50ac80cb4c
(svn r1909) - Fix: [ 1145593 ] assertion failed when saving the game. It is nice to also update the savegame format when you update town statistics :)
2005-02-23 00:07:03 +00:00
Darkvater
d51e9e3d03
(svn r1908) - Fix: [ 1149403 ] Signals dissaper after typing text and pressing enter!. Signs in Scenario Editor have no owner so ignore that.
2005-02-22 22:29:19 +00:00
darkvater
0abd611c0a
(svn r1907) - Fix: [ 1114261 ] Speeding up when pressing ALT+TAB (Windows)
2005-02-22 22:14:27 +00:00
Darkvater
0ddbc1304b
(svn r1906) - Fix: [ 1117327 ] Assertion error on kick. When a company is cleaned all its windows need to be closed. For global vehicle lists, the no-staiton index of -1 was not taken into account
2005-02-22 20:32:26 +00:00
Darkvater
1f66d60272
(svn r1905) - Fix: [ 1118810 ] openttd: ship_cmd.c:642 ... Assertion failed. Mapwrap fixed in ship_cmd.c (was implicitely ok before biggermaps).
...
- CodeChange: rename all vehicle controllers to ...Controller for their similar behaviour
2005-02-22 19:38:44 +00:00
tron
6805abe0f3
(svn r1904) Remove some more unused stuff
2005-02-22 18:28:20 +00:00
tron
20b8c48440
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
2005-02-22 18:27:57 +00:00
tron
c2a6d182d7
(svn r1902) Replace some casts with proper typing
2005-02-22 15:39:45 +00:00
Darkvater
7746c4722b
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
2005-02-22 14:52:20 +00:00
tron
aa55bc1559
(svn r1900) Simplify a piece of code in the oldloader
2005-02-22 14:37:52 +00:00
Darkvater
5b261af659
(svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head into the wall
2005-02-22 13:13:57 +00:00
tron
51eef8c5b7
(svn r1898) Remove some unused macros from macros.h and move some others to more appropriate headers
2005-02-22 12:48:03 +00:00
Darkvater
f22eab5544
(svn r1897) - Fix: [ 1120424 ] Set name overwrites same name. Renamings because your name is in use are virtual though so if name "b" is in use your name will become "b #1 ", renaming yourself again to "b" will become "b #2 ", and will toggle between these two.
2005-02-22 12:27:33 +00:00
Darkvater
fbe47d912a
(svn r1896) - Fix: remove Translated by hack since it's not used
2005-02-22 11:33:13 +00:00
Darkvater
33ae18b8b3
(svn r1895) - Fix: add assert for charwidth getter just in case
2005-02-21 19:14:16 +00:00
Darkvater
d865c55007
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
...
- Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret
- Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions
- Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes
- Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos.
- Fix: OTTD crash when opening 'add server' editbox
- CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-21 18:59:54 +00:00
tron
0d8dcacee2
(svn r1893) If -i was specified respect it
2005-02-20 09:05:28 +00:00
celestar
ae2cfeefe3
(svn r1892) -Fix: [ 1117730 ] Production values of temperate-climate banks can now be altered
2005-02-20 07:58:38 +00:00
celestar
d06f52a7f0
(svn r1891) -Fix: [ 1143587 ] carriages of newgrfs can be refitted again
2005-02-20 07:47:42 +00:00
tron
2de3dc2735
(svn r1890) Begin to clean up the edit box: Remove one global variable and split the combined edit/original buffer into two
2005-02-19 14:40:32 +00:00
celestar
bf5e0c10ce
(svn r1889) -Fix: [ 1108637 ] 'Play scenario' now loads game options and difficulty, 'Load game' starts game with user-selected values.
2005-02-18 22:17:33 +00:00
tron
b973ad1df9
(svn r1888) The landscape template sprites are ordinary sprites, treating them as non-sprites resulted in yet another endianess issue. This fixes the problem introduced in r1855
2005-02-18 21:20:55 +00:00
tron
eff3252095
(svn r1887) Stylistic change of ConExec()
2005-02-18 08:49:04 +00:00
tron
4a4b9d145d
(svn r1886) Correctly process the last line of a script, even if it's not newline terminated. Also print an error message if something goes wrong while reading from the script file
2005-02-18 08:36:11 +00:00
tron
9f4e45d333
(svn r1885) Fix typo in r1884
2005-02-18 08:32:25 +00:00
tron
431447ef87
(svn r1884) Change palette detection algorithm: Use the DOS palette if there are no Windows .grfs but at least one DOS .grf
2005-02-18 08:29:17 +00:00
tron
73c0f21363
(svn r1883) -Fix: [1109400] Better test if a string actually contains any console command
2005-02-17 17:38:17 +00:00
tron
f7991303e8
(svn r1882) Add a basic check if a non-existent sprite gets accessed.
...
Now ottd bails out with an error message instead of segfaulting.
This is far from perfect, some checks after loading a savegame should be added.
2005-02-17 15:53:47 +00:00
celestar
fe6f9e9a65
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
2005-02-17 10:56:19 +00:00
miham
7678a937e4
(svn r1880) [Codechange] Added isocodes to langfiles and support code to strgen (Lauri Nurmi)
2005-02-17 07:49:31 +00:00
tron
7a690eb5fb
(svn r1879) Revise name handling, no functional changes
2005-02-17 06:46:36 +00:00
darkvater
9cfe28aee8
(svn r1878) - Change: MSVC.NET project file, remove WITH_SDL since it is really unneeded from windows builds. And put back 'treat warnings as errors' flag.
2005-02-15 23:27:46 +00:00
tron
c17c743ed4
(svn r1877) Forgot to remove two now unused variables
2005-02-14 22:19:56 +00:00
tron
4102982ef4
(svn r1876) Make placement of oil rigs and refineries map size agnostic
2005-02-14 22:17:21 +00:00
tron
5ff839732e
(svn r1875) Effect vehicle overhaul: enumerate sprites, descriptive names for functions and miscellaneous improvements
2005-02-14 20:34:31 +00:00
tron
e2359c11ae
(svn r1874) Fix bug introduced in r1839 which placed snow covered trees below the snow line ([1121680])
2005-02-14 18:55:10 +00:00
tron
8fea0f0a8f
(svn r1873) Ignore SIGPIPE
2005-02-13 23:29:58 +00:00
celestar
d449145799
(svn r1872) -Fix: Fixed an inline problem which caused MSVC6 to not compile :/
2005-02-13 21:51:47 +00:00
miham
9e847075fa
(svn r1871) Daily langfile updates #2 .
2005-02-13 12:33:57 +00:00
miham
fac25561bc
(svn r1870) Added new language: lithuanian
2005-02-13 11:55:35 +00:00
tron
1ef2ad611f
(svn r1869) Fix some bugs in the bulldozer movement implementation.
...
Now they move in a sane pattern.
2005-02-13 11:31:35 +00:00
tron
9f7074a706
(svn r1868) Improve readability of the bulldozer movement code
2005-02-13 11:27:41 +00:00
tron
204d08140a
(svn r1867) Include tables/sprites.h only in files which need it
2005-02-13 11:18:02 +00:00
celestar
77d26759e3
(svn r1866) -Fix: Intercepted generated maps with 0 towns on it. Currently just an
...
error() is called, some more graceful handling should be implemented
later.
2005-02-13 09:42:49 +00:00
tron
58c46bed40
(svn r1865) Fix some warnings
2005-02-13 08:12:03 +00:00
miham
ac6857ee28
(svn r1864) Automatic langfile updates
2005-02-13 07:44:32 +00:00
tron
6b83a05ada
(svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*()
...
-Fix: [1116619] Generate the correct smoke type for diesel trains
2005-02-12 15:53:32 +00:00
darkvater
ac758b6875
(svn r1862) - Settings: No longer treat warnings as errors for VS.Net project files...just until spritecache is fixed up :)
2005-02-12 00:20:46 +00:00
tron
9c99c7d11a
(svn r1861) Constify Get(Non)Sprite()
2005-02-11 17:12:11 +00:00
tron
3a93a250b7
(svn r1860) The sprite header endianness issue was solved in r1855
2005-02-11 15:18:09 +00:00
tron
f03b8859ed
(svn r1859) Miscellaneous style changes
2005-02-11 14:33:43 +00:00
tron
5c946cdbd8
(svn r1858) Let ReadSprite() handle the subtleties of loading a sprite, not its caller
2005-02-11 13:46:25 +00:00
tron
1b617b28fc
(svn r1857) Rewrite parts of the sprite heap. It's functionally equivalent but should be easier to read and maintain.
2005-02-11 13:35:27 +00:00
tron
33cf096b03
(svn r1856) Make GfxInitSpriteMem() static, because it's only used withing spritecache.c
2005-02-10 22:26:28 +00:00
tron
9031e0369e
(svn r1855) Handle endianness of sprite headers when loading a sprite, not everytime when accessing it
2005-02-10 12:26:41 +00:00
tron
94c75f33bb
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
2005-02-10 12:14:38 +00:00
tron
2a151d9354
(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
2005-02-10 05:43:30 +00:00
tron
092e72d60d
(svn r1852) Start cleaning up sprite handling:
...
- Complement the sprite header struct with a variable sized array for the sprite data and rename it to Sprite.
- Use the correct type Sprite* instead of casting all the time (this causes some "assignment from incompatible pointer type" warnings, nothing serious, will be resolved soon)
2005-02-08 22:22:42 +00:00
bjarni
297223cc21
(svn r1851) - Language: added Frisian translation (no strings have been translated yet)
2005-02-08 18:07:27 +00:00
tron
4b2e34e0aa
(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
2005-02-08 17:31:13 +00:00
tron
8aee833024
(svn r1849) Use the cheat entry enum for CheatEntry.type and remove unused enum values
2005-02-08 16:53:28 +00:00
tron
d1fb165ad2
(svn r1848) Remove the obscure feature of initialising the edit box with the contents of str_buffr - it was unused anyway.
...
Remove it from the chat box too, which inherited it via copy&paste.
2005-02-08 16:37:28 +00:00
tron
1afad51ee2
(svn r1847) Adjustment for MorphOS to unbreak the build there and removal of some now obsolete preprocessor magic
2005-02-08 15:42:28 +00:00
darkvater
0525b08612
(svn r1846) - Fix: VS6 project file (bociusz)
...
- Fix: VS6 fkcing borkdness should be abolished
2005-02-07 20:36:41 +00:00
darkvater
8867c00d68
(svn r1845) - Revert r1835 since it totally screws network compiling
...
- Fix: fix some VS.NET warnings
- Add missing file to VS.NET project file
2005-02-07 19:45:08 +00:00
truelight
c1a2be0d05
(svn r1844) -Fix: small protection in oldloader.c, and put the savegame on pause by default
2005-02-07 19:23:38 +00:00
matthijs
5df36d4ead
(svn r1843) - Codechange: [NPF] Removed some unused code.
2005-02-07 19:01:56 +00:00
tron
be840ccd00
(svn r1842) Fix another typo made in r1834
2005-02-07 18:51:46 +00:00
celestar
f758bd769b
(svn r1841) -Fix: [ 1117538 ] non-stop orders are no longer accidently skipped
2005-02-07 12:47:29 +00:00
tron
b1baa4ed8b
(svn r1840) Repel str_buffr and use local buffers where possible
2005-02-07 12:32:35 +00:00
tron
f8d97a5f61
(svn r1839) Move GetTileSlope() and GetTileZ() into tile.[ch] and use more explicit types as parameters
2005-02-07 10:41:45 +00:00
tron
ad837c2069
(svn r1838) Ship depots are on water, not roads
2005-02-07 10:37:12 +00:00
tron
9198522307
(svn r1837) GetTileOwner returns Owner, not bool
...
Also assert() that the TileIndex is valid
2005-02-07 10:09:28 +00:00
tron
552d84884f
(svn r1836) Clean up some strange constructs concerning socket options
2005-02-07 09:56:16 +00:00
tron
7c38b7bc01
(svn r1835) Reduce the visibility of network_core.h
2005-02-07 09:54:37 +00:00
matthijs
c5c5c9b17c
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
...
- Add: asserts to find the v->u.rail.track == 0 problem.
- Add: IsValidDepot(), IsValidTown(), IsValidSign(), IsValidVehicle(), IsValidStation()
- Add: GetTileOwner(), IsTileOwner()
- Codechange: Replaced IsShipDepotTile(), IsTrainDepotTile(), IsRoadDepotTile() by IsTileDepotType().
- Codechange: typedeffed the MAP_OWNERS as Owner. Should be used as variable type.
- Codechange: Replaced a few uint by TileIndex.
2005-02-06 22:36:08 +00:00
tron
eed181245d
(svn r1833) byte -> char transition: the rest
2005-02-06 22:25:27 +00:00
tron
27dc506a03
(svn r1832) Next byte -> char iteration: custom names
2005-02-06 20:53:31 +00:00
truelight
cc8fc19d4a
(svn r1831) -Fix: Scenario Editor now handles human-made roads better (try to build
...
a city layout before placing the city, finally that works very nice)
2005-02-06 20:29:32 +00:00
truelight
2bd8df54e1
(svn r1830) -Codechange: small stuff to make the file more beautiful (tnx Tron)
2005-02-06 19:22:54 +00:00
truelight
bedc63d75d
(svn r1829) -Fix: fixed some compiler warnings (tnx to Tron for the Makefile-flag)
2005-02-06 18:41:15 +00:00
tron
d48261aa23
(svn r1828) New warning flag especially for truelight (:<
2005-02-06 18:38:42 +00:00
tron
2fb453a4a5
(svn r1827) Next iteration of the byte -> char transition: some string drawing functions and buffers
2005-02-06 18:30:45 +00:00
truelight
eb28e8b322
(svn r1826) -Feature: a brand new OldLoader so OpenTTD is TTD(Patch) compatible
...
again.. kind of anyway. Still needs work for the extra chunks
TTDPatch provides, and which we use too, but not in the same way..
- Also, no longer BE is a problem, reading is BE/LE safe.
- Tnx to Bjarni for the BE testing, Tron for the help on the BE,
Darkvater for helping out, and Mek for providing me with the correct
information regarding TTDPatch savegames
2005-02-06 18:28:35 +00:00
tron
c513c4da96
(svn r1825) Further style improvements:
...
- uint16 -> StringID where appropriate
- if cascades -> switch
- remove redundant ifs
- misc. stuff
2005-02-06 16:56:04 +00:00
truelight
b0d6d59be5
(svn r1824) -Codechange: made ChangeIndustryProduction a bit more readable
2005-02-06 15:07:29 +00:00
tron
92d1b6060c
(svn r1823) Get rid of some ugly cast magic concerning language packs
2005-02-06 14:47:56 +00:00
tron
d11cc22536
(svn r1822) Const correctness
2005-02-06 14:27:50 +00:00
tron
b2ae5b197e
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06 13:41:02 +00:00
tron
498ccae27a
(svn r1820) Style cleanup:
...
- indentation
- 0 -> '\0' in string handling
- whitespaces
- space after for, switch, etc.
- don't treat non-boolean values as boolean
- space before and after binary operators
- bracing style
2005-02-06 11:23:41 +00:00
truelight
ccf3c71903
(svn r1819) -Codechange: removed 1 unused function, and 1 unused struct (tnx to Tron)
2005-02-06 10:39:18 +00:00
truelight
020c1e9b6c
(svn r1818) -Add: Dynamic orders (up to 64k orders)
2005-02-06 10:24:57 +00:00
truelight
e9c93f9c0c
(svn r1817) -Codechange: Moved depot-functions to depot.c
...
-Codechange: Added wrappers around depot-access (GetDepot no exists)
-Codechange: Made depot-functions a bit more logic (no longer
GetDepotByTile crashes your game when you request it on a non-depot tile)
-Add: made depots dynamic (yes, 64k depots are possible now)
2005-02-06 10:18:47 +00:00
tron
6493e12bfb
(svn r1816) Use char instead of byte for string formatting
2005-02-06 09:52:06 +00:00
tron
1d5c516780
(svn r1815) Remove some unused declarations
2005-02-06 08:55:51 +00:00
tron
ff3bc3cc94
(svn r1814) Let ReadFileToMem() return void* (instead of byte*) because we don't know what the caller wants to do with the data
2005-02-06 08:38:09 +00:00
tron
0381073e56
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
2005-02-06 08:18:00 +00:00
tron
0b8876e946
(svn r1812) [1117058] Use CT_WATER instead of CT_STEEL when accounting water which gets delivered to a town (worked because CT_STEEL and CT_WATER share the same enum number)
2005-02-06 07:49:41 +00:00
tron
ccb80ab09d
(svn r1811) Use char for string handling in namegen.[ch]
2005-02-05 23:07:35 +00:00
tron
80776172a5
(svn r1810) Move town name generation declarations into a header of their own
2005-02-05 23:03:12 +00:00
tron
31e098e64e
(svn r1809) Remove unused function str_is_below()
2005-02-05 22:52:08 +00:00
tron
7aae12d55d
(svn r1808) Use strcmp() instead of home brewed function str_eq()
2005-02-05 22:50:33 +00:00
miham
4d62bbf857
(svn r1807) Langfile updates (20050205)
2005-02-05 22:25:07 +00:00
tron
7d3a576a7b
(svn r1806) Add missing includes (see r1803)
2005-02-05 21:57:01 +00:00
tron
17ca2c49a5
(svn r1805) Teach the driver layer a few things about const correctness
2005-02-05 18:05:42 +00:00
tron
7278f72157
(svn r1804) Bring MSVC project files up to date (bociusz)
2005-02-05 16:12:07 +00:00
tron
f0f85a7ef3
(svn r1803) Move debugging stuff into files of it's own
2005-02-05 15:58:59 +00:00
tron
77b3a76919
(svn r1802) Fix typos made in r1797
2005-02-05 15:49:57 +00:00
celestar
0ec4ee5963
(svn r1801) -Fix [Multistop] Fixed a crash that occured when copying orders due to not checking a pointer to be non-NULL
2005-02-05 15:05:52 +00:00
tron
6932461e63
(svn r1800) Make adding new debug categories to the command line parser easier
2005-02-05 14:18:25 +00:00
celestar
422ebcf8e0
(svn r1799) -Codechange: [ Multistop ] Added debug class "ms" and more debugging
...
output for multistops
2005-02-05 12:10:09 +00:00
tron
4b71f9126e
(svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter
2005-02-04 20:40:04 +00:00
tron
b4c3f9aaf0
(svn r1797) Clean up TileLoopClearHelper() a bit:
...
- if cascades -> switch
- uint -> TileIndex
- (uint)-1 -> INVALID_TILE
- don't treat non-flags as flags
2005-02-04 20:17:15 +00:00
tron
50df3ec103
(svn r1796) Revert r1792, because MorphOS has defaults for CC/CXX, they're just wrong, so setting CC/CXX using ?= simply did nothing
2005-02-04 19:53:53 +00:00
tron
54a84a6e6e
(svn r1795) Change CFLAGS for MorphOS (tokai)
2005-02-04 19:51:43 +00:00
tron
2ff6cc3135
(svn r1794) Make the dedicated server compile again under MorphOS (tokai)
2005-02-04 19:38:04 +00:00
tron
f8f6132006
(svn r1793) Revert one instance of $(shell) back to ``, because MorphOS does The Wrong Thing(tm) when date is used within $(shell)
2005-02-04 17:57:07 +00:00
tron
8eda8113d9
(svn r1792) Revert r1761 and set fallback values via ?= for CC and CXX as there seem to be platforms (MorphOS) out there which don't provide some proper defaults.
...
Use gcc and g++ as defaults, because cc and c++ aren't available either. *sigh*
2005-02-04 17:45:11 +00:00
tron
04921a9015
(svn r1791) Remove the remnants of CMD_DESTROY_INDUSTRY, which was removed a long time ago
2005-02-04 17:14:36 +00:00
tron
e2dab60ad1
(svn r1790) Make CmdPlantTree() and related functions more safe and (hopefully) more readable:
...
- check if end tile is on the map
- uint -> TileIndex
- if cascades -> switch
2005-02-04 16:50:18 +00:00
truelight
093ae2b4b4
(svn r1789) -Fix: there is no need to save the index, it is done for us
2005-02-04 15:39:10 +00:00
truelight
10adda0d73
(svn r1788) -Add: Made RoadStops dynamic. You can now create up to 64k roadstops.
2005-02-04 15:31:30 +00:00
truelight
4f5255c36e
(svn r1787) -Add: Dynamic signs (euh.. yeah, this means you can built 64k signs)
2005-02-04 14:45:32 +00:00
truelight
97728357e4
(svn r1786) -Fix: unitnumber is increased to 16bit, so now you can have up to 5000
...
trains in one game (instead of the 240 which was the current value).
Default max allowed vehicles per type is changed:
Trains: 500 (old 80)
Road: 500 (old 80)
Ships: 200 (old 40)
Aicraft: 300 (old 50)
(Tnx to Celestar and Darkvater for checking the patch)
2005-02-04 14:24:23 +00:00
truelight
7be92db76f
(svn r1785) -Fix: space-correctness in road_cmd.c, and one wrong line from last
...
commit (tnx to DarkVater)
2005-02-04 14:05:28 +00:00
truelight
7241f42e9d
(svn r1784) -Fix: removed ClosestTownFromTile where possible, or replaced it
...
with _map2-data if possible (Celestar / TrueLight)
2005-02-04 13:56:51 +00:00
truelight
42f98c7eec
(svn r1783) -Add: Dynamic vehicles (now up to 64k of vehicles)
2005-02-04 13:23:29 +00:00
tron
88ebe22d8b
(svn r1782) Remove line which should've been removed in r1779 and caused map generation to hang infinitely
2005-02-04 07:52:12 +00:00
tron
a5ffbbee2d
(svn r1781) Fix static declaration after non-static declaration of same symbol
2005-02-03 22:09:19 +00:00
tron
08f2a395a3
(svn r1780) Don't clear LIBS and LDFLAGS
2005-02-03 21:18:49 +00:00
tron
5e1364daeb
(svn r1779) Make the map generation code slightly more readable
2005-02-03 20:52:12 +00:00
matthijs
f42e8ac3d2
(svn r1778) - Fix: [ 1115200 ] In the main menu, when starting a new game while the load game dialog is open, openttd asserts.
2005-02-03 19:23:06 +00:00
tron
0601293edb
(svn r1777) Fix map generation for tropical and arctic landscape on larger/smaller maps
2005-02-03 18:20:43 +00:00
truelight
1938a73c90
(svn r1776) -Add: Dynamic stations. You can now have up to 64k of stations
2005-02-03 17:22:35 +00:00
truelight
f1d4a85f59
(svn r1775) -Fix: The NPF patch setting was not synced in network.
...
REMINDER FOR ALL DEVELOPERS:
We do have 2 patch-setting-arrays: player-based, server-based. PLEASE
put your new patch setting in the right one... thank you :)
2005-02-02 20:36:04 +00:00
truelight
ae3638121c
(svn r1774) -Fix: fixed an other possible crash related to previous commit
2005-02-02 19:15:35 +00:00
truelight
74df79331d
(svn r1773) -Fix: [ 1114950 ] Game crashed sometimes when there were no industries
...
in the map
2005-02-02 19:08:34 +00:00
truelight
3f45338cc9
(svn r1772) -Fix: [ 1114100 ] Dedicated server boots again
2005-02-02 18:28:08 +00:00
truelight
83a889d678
(svn r1771) -Add: Industries are now dynamic (up to 64k industries). Generating
...
1kx1k maps should now be much faster, and give more than just oil-stuff ;)
2005-02-02 17:30:29 +00:00
truelight
ab3ed5c431
(svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id
...
(and should be an uint16, not uint8)
2005-02-02 16:16:43 +00:00
tron
944bba1031
(svn r1769) Don't compute the same value twice, remove one function call
2005-02-02 15:45:53 +00:00
celestar
30a328705e
(svn r1768) -Codechange: Store town index in _map2 of town tiles
...
Moved house type from _map2 to _map3_hi for MP_HOUSE
Moved foundation and roadworks from _map2 to _map3 for
MP_STREET
This increases game speed by a factor of around 15(!) if many cities are around.
Converting an old game is done automagically, but can take a while
2005-02-02 14:17:13 +00:00
bjarni
03095f85bc
(svn r1767) fixed mixed declarations and code in last commit (oops)
2005-02-01 22:17:38 +00:00
bjarni
5c43906b24
(svn r1766) - Feature: Aircrafts will now go to the nearest hangar if the next airport in the orders do not have one (helipads)
...
- Fix: sometimes aircrafts would not go to the hangar even when they should. They do now
2005-02-01 22:04:53 +00:00
truelight
0be987391b
(svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero
2005-02-01 18:46:49 +00:00
truelight
777dd99585
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
...
you have that amount of towns in a map ;))
2005-02-01 18:32:01 +00:00
truelight
6d5fdc2b68
(svn r1763) -Add: pool.c / pool.h: generalized routines for dynamic arrays (MemoryPools)
2005-02-01 18:30:11 +00:00
truelight
c02c35e256
(svn r1762) -Codechange: renamed 'MemoryPool' to 'SettingsMemoryPool' (we need
...
MemoryPool for general-dynamic-arrays)
2005-02-01 17:48:20 +00:00
tron
20d1f357dd
(svn r1761) Don't set CC and CXX
...
If somebody tried to use alternate compilers via an environment variable the assignment in the Makefile simply overwrote that.
2005-02-01 16:57:16 +00:00
celestar
a00571a1d7
(svn r1760) -Fix: [ 1113399 ] Game no longer crashes when right-clicking a disabled Full Load button
2005-02-01 09:47:18 +00:00
miham
cf5dd15213
(svn r1759) Daily/Weekly/Monthly langfile updates
2005-02-01 09:36:07 +00:00
tron
8dc84b3deb
(svn r1758) Replace `` with $(shell), because the latter is only evaluated once instead of over and over again
2005-02-01 05:28:18 +00:00
tron
ff973f7992
(svn r1757) Stop the new AI from trying to build its HQ on non-existent tiles
2005-01-31 22:17:15 +00:00
tron
aa592190dc
(svn r1756) Cleanup: if cascade -> switch, uint -> TileIndex
2005-01-31 21:57:05 +00:00
tron
af3605705f
(svn r1755) Trim trailing whitespace
2005-01-31 19:22:44 +00:00
darkvater
35cb4fbf8c
(svn r1754) - Fix: you can once again load newgrf files with lots of sprites. Index wasn't reset in second run, thus counting them double.
2005-01-31 12:04:40 +00:00
darkvater
b344d30792
(svn r1753) - Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now disabled.
2005-01-31 11:36:16 +00:00
darkvater
9776f2350b
(svn r1752) - Fix: MSVC acting up once again, as well as project file updates for the missing files.
2005-01-31 11:33:21 +00:00
matthijs
a2dec6c32a
(svn r1751) - Feature: New PathFinder (NPF).
...
- Supports trains, road vehicles and ships.
- Uses A* pathfinding (same codebase as the new ai).
- Currently unlimited search depth, so might perform badly on large maps/networks (especially ships).
- Will always find a route if there is one.
- Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values).
- With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again.
- Feature: Disabling 90 degree turns for trains and ships.
- Requires NPF to be enabled.
- Ships and trains can no longer make weird 90 degree turns on tile borders.
- Codechange: Removed table/directions.h.
- table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location?
- Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault.
- Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64.
- Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED.
- Codechange: Moved TileAddWrap() to map.[ch]
- Add TileIndexDiffCByDir(), TileIndexDiffCByDir().
- Codechange: Moved IsTrainStationTile() to station.h
- Add: IsRoadStationTile() and GetRoadStationDir().
2005-01-31 11:23:10 +00:00
darkvater
b64c375f2f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
2005-01-31 11:03:23 +00:00
tron
7bbcf5875c
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
2005-01-31 07:23:15 +00:00
tron
e1c19367f0
(svn r1748) Enforce map size limits
2005-01-31 06:46:53 +00:00
darkvater
4cc0952736
(svn r1747) - Fix: [network] ottd should compile when networking is disabled.
...
- Change: change strgen project file to get rid of warning.
2005-01-31 00:12:44 +00:00
darkvater
f4ffba1a6e
(svn r1746) - Feature: [GUI] [ 1107690 ] Resizable orders GUI (nzhook)
2005-01-30 23:41:57 +00:00
tron
25f514ab6d
(svn r1745) Use -fno-inline when DEBUGing
2005-01-30 23:04:41 +00:00
tron
6955f80c6e
(svn r1744) DEBUG and PROFILE can be used at the same time.
2005-01-30 23:03:31 +00:00
celestar
b312055c80
(svn r1743) -Fix: Multistop: Added some debug output and made sure that orphaned slots are cleared.
2005-01-30 22:04:14 +00:00
bjarni
1c109afdaa
(svn r1742) - Fix: fixed bug introduced in r1730 where AI players had problems when building aircrafts
2005-01-30 21:06:09 +00:00
bjarni
73c0cc5203
(svn r1741) - Fix: added IsVehicleIndex() so it's possible to protect GetVehicle() from reading an invalid vehicle index
...
- Fix: added check for v->type in some commands, which expects v to be a specific type
Checks like this is needed to protect network servers from people, who hack their clients to either cheat or crash the server
NOTE: if I made a mistake here it can make a function unreachable when it should be used. Here is one place to look if something weird happens
2005-01-30 20:50:06 +00:00
celestar
94f6208bde
(svn r1740) -Fix: [ 1112342 ] Realistic acceleration works properly with TTDPatch non-stop handling behaviour
2005-01-30 19:51:39 +00:00
darkvater
55e1eab1a2
(svn r1739) - Fix: type checking when selling vehicles (TrueLight)
2005-01-30 18:51:08 +00:00
celestar
e3287ad303
(svn r1738) -Fix: [ 1108735 ] Fixed (hopefully) an assertion that was cause by selling carriages in a MP game faster than the network can handle. (Truelight)
2005-01-30 18:40:52 +00:00
tron
7526afdae0
(svn r1737) Add DEBUG category "map" and use it to print the map size when allocating the map
2005-01-30 18:12:37 +00:00
celestar
5f05703206
(svn r1736) -Fix: Forgot to remove some unused variables in last commit :(
2005-01-30 17:53:44 +00:00
celestar
6d1ee15b9a
(svn r1735) -Fix: [ 1112285 ] Fixed an assertion error with stations where stops
...
were deleted, the assertions were just plain wrong at that place. Used a
more graceful handling. Todo: What happens if ALL stations in a schedule
have no suitable stop?
2005-01-30 17:46:57 +00:00
darkvater
1527ef3db0
(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled when it was out of focus (dominik)
2005-01-30 16:54:39 +00:00
darkvater
8580e73b65
(svn r1733) - Fix: oops "| 1" is SETBIT(x, 0), not 1 :(. Now you can remove signals again
2005-01-30 16:08:19 +00:00
darkvater
f838448552
(svn r1732) - Change: [OS/2] [ 1112148 ] Project file update (orudge)
2005-01-30 16:00:37 +00:00
darkvater
abf2ae3f80
(svn r1731) - Fix: [ 1106930 ] BugFix: placing signals with 2x1 drags workaround is completely rewritten. Also features checks for hacked/modified clients. Thanks a lot Hackykid!
2005-01-30 15:57:38 +00:00
bjarni
307c27892d
(svn r1730) - Fix: Ships and Aircrafts have to be build in depots owned by _current_player (hacked client protection)
...
now all 4 types of vehicles have to be build in depots. Note: there is a wordaround for AI players since the AI handle aircraft building in a weird way
2005-01-30 14:52:04 +00:00
darkvater
961ba55e85
(svn r1729) - Fix: [ 1112469 ] Clearing land for free by reallocating HQ
2005-01-30 14:32:52 +00:00
bjarni
e8f4b7cf19
(svn r1728) - Fix: now a player can only build a road vehicle in depots he owns (hacked client protection)
2005-01-30 13:42:11 +00:00
bjarni
5987455d35
(svn r1727) - Fix: now CmdBuildRailVehicle() behaves correctly if DC_EXEC is set
...
this commit alters ai.c a little to get rid of the workaround from r1725 so AI players could still build locomotives
2005-01-30 13:03:32 +00:00
tron
cc7f7220c0
(svn r1726) Move an assert() because it could not catch all cases of incorrect input where it was placed
2005-01-30 08:25:39 +00:00
bjarni
c16c7312cf
(svn r1725) - Fix: now trains can only be built in depots and you have to own the depot too (hacked client protection)
2005-01-29 23:58:07 +00:00
tron
b18851e0b9
(svn r1724) Set maximum number of industries and towns to 250 each
2005-01-29 20:18:01 +00:00
tron
b29877e14c
(svn r1723) Save the map size in tiles, not number of bits
2005-01-29 20:11:19 +00:00
tron
3a89108a55
(svn r1722) -Feature: Bigger maps - anyone?
2005-01-29 19:45:14 +00:00
celestar
752b3f0dd6
(svn r1721) -Feature: It is now possible to build multiple road stations (up to 8) on
...
a single station.
Thanks to: Truelight for the saveload code, Darkvater and Hackykid for
network testing and Tron for proof-reading 1500 lines of diff.
2005-01-29 19:41:44 +00:00
darkvater
885fd2b15c
(svn r1720) - Fix: signed/unsigned warnings. Tile which is incremented/decremented every time until suitable ground is found is compared to the direction it is going in. If this wraps, return error. For this treat the tile itself as a TileIndexDiff
2005-01-29 18:22:07 +00:00
darkvater
2005495bfb
(svn r1719) - Fix: [installer] fix some installer problems mainly for DOS files as well as beautify it a little
...
- Fix: corrected newlinetype of tile.c
2005-01-29 16:47:19 +00:00
tron
97ae59fe1a
(svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.
...
This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name.
2005-01-29 15:12:40 +00:00
darkvater
797355cb7e
(svn r1717) -Fix: some compilation problems for braindead VS6 and added missing files to project (thx bociusz)
2005-01-29 14:56:25 +00:00
tron
f2af1ed332
(svn r1716) Prevent zeppelins from accessing non-existent tiles when leaving the map
2005-01-29 14:53:05 +00:00
tron
f08d102ac2
(svn r1715) Move [GS]etMapExtraBits to tile.[ch]
2005-01-29 13:33:48 +00:00
tron
a2de96abc0
(svn r1714) Add missing include
2005-01-29 13:33:14 +00:00
tron
5885b31bb4
(svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h
2005-01-29 12:19:05 +00:00
bjarni
3b6901f7fd
(svn r1712) - Fix: a hacked client can no longer send other players trains to a depot
...
- Feature: [autoreplace] trains now tries to find a depot if they needs to be replaced
Now all 4 types of vehicles goes to a depot if they needs to be replaced
2005-01-29 12:01:36 +00:00
bjarni
849ffd59ec
(svn r1711) - Add: [MacOSX] Added an Xcode project file (Tobin)
...
This project file adds a graphical IDE to OSX, including graphical debugging, which is a bit easier than gdb (Xcode uses gdb for debugging)
Since it uses the makefile to compile, it should (hopefully) work without updating the project file when the makefile is updated
Tobin did most of the work, but I altered paths and settings for custom executable so it should work out of the box for everybody
2005-01-29 10:10:10 +00:00
bjarni
db4721a31d
(svn r1710) - Fix: [autoreplace] vehicles do no longer go to a depot all the time if the owner clicked 'stop replacing' ( ship+aircraft+road vehicles )
2005-01-29 01:02:47 +00:00
bjarni
27cd24c316
(svn r1709) - Feature: [autoreplace] ships now automatically goes to a depot if they need to be replaced
2005-01-28 20:43:46 +00:00
bjarni
41ca1be4ff
(svn r1708) - Fix: FindNearestHangar() will no longer return a hangar where a jet will crash if it is a jet, that is searching
...
- Codechange: Since planes move in strait lines in 8 directions, GetTileDistAdv() is used instead of manhatten distance in FindNearestHangar()
2005-01-28 18:10:12 +00:00
bjarni
dce0bbad6c
(svn r1707) - Feature: [autoreplace] road vehicles now tries to find a depot if they needs to be replaced
2005-01-28 17:31:42 +00:00
tron
3617d24318
(svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D()
...
These scale a number relative to the map size/circumference.
Use them to scale the amount of map objects.
Of course at the moment they return just the input, because there are no bigger/smaller maps yet.
2005-01-28 15:31:04 +00:00
dominik
4e6d6578e4
(svn r1705) Sign owner variable is a byte, not int32 of course
2005-01-28 12:21:04 +00:00
dominik
5856325e5a
(svn r1704) - Fix: [newgrf] rotors of custom helicopters are displayed correctly in the hangar window
2005-01-28 12:20:06 +00:00
dominik
b4b134e527
(svn r1703) - Fix: Scrolling with the arrow keys is now smooth and it now also scrolls exactly in tile direction if e.g. up and left are pressed
2005-01-28 09:30:19 +00:00
dominik
c8d084a85e
(svn r1702) - Fix: [ 1110407 ] Game does not crash any more when a newgrf file doesn't exist
2005-01-28 08:56:43 +00:00
tron
3e0dcfd47f
(svn r1701) Style police ^^
2005-01-27 21:18:03 +00:00
bjarni
99338d278d
(svn r1700) - Fix: Hacked clients can no longer be used to build vehicles that are not available yet (Hackykid)
2005-01-27 21:00:05 +00:00
bjarni
1ae9e7b448
(svn r1699) - Feature [autoreplace] a plane will now go to the hangar right after landing if it needs to be replaced
...
- Fix [autoreplace] fixed a typo that could prevent autoreplaced aircraft from automatically go to a hangar
2005-01-27 20:38:19 +00:00
bjarni
14f0cb2704
(svn r1698) - Feature [autoreplace] helicopters will now go to the nearest hangar if they are set to autoreplace and don't have any airport with a hangar in
...
schedule
2005-01-27 15:43:44 +00:00
tron
eebb2f196d
(svn r1697) Remove superflous special case for the VOID border tiles in FindLandscapeHeightByTile()
...
While here clean up some other stuff: uint -> TileIndex, assert() that the TileIndex is valid and remove a line which was already commented out
2005-01-27 15:30:34 +00:00
tron
63653bd6af
(svn r1696) Use GetTileSlope() instead of FindLandscapeHeightByTile() where it is sufficient. FindLandscapeHeightByTile() uses GetTileSlope() internally and adds some more info, which is discarded in these cases.
...
While touching the code make a bit more clear how GetBridgeHeight() works.
2005-01-27 12:52:20 +00:00
Celestar
6eec07257a
(svn r1695) -Fix: I broke maximum speed sorting for anything but trains with the new acceleration. Sorry
2005-01-27 11:33:14 +00:00
celestar
1bdd01867a
(svn r1694) -Fix: Forgot to remove a DEBUG statement :(
2005-01-27 11:25:32 +00:00
Celestar
1fd8c45c55
(svn r1693) -Fix: [ 1108618 ] A wrong error message was displayed when trying to
...
expand railroad stations beyond maximum spread
2005-01-27 09:43:24 +00:00
truelight
0470fe9f89
(svn r1691) -Fix: oops, forgot to bump the company-info-version
2005-01-26 19:51:29 +00:00
bjarni
54549adc66
(svn r1690) - Fix: [autoreplace] Cheaters can no longer exploit autoreplace to get vehicles, that's not invented yet
...
- Fix: [autoreplace] Fixed a stupid bug introduced in r1687, that made a crash if anybody tried to autoreplace anything but an aircraft
2005-01-26 19:43:22 +00:00
truelight
f84607af52
(svn r1689) -Fix: big typo in network_udp.c, the company-password flag didn't work
2005-01-26 19:40:21 +00:00
bjarni
ecb954fd9d
(svn r1687) - Feature: [autoreplace] server now checks for plane<->helicopter replacement and reject replacement if needed
2005-01-26 19:03:01 +00:00
tron
8742b63fa1
(svn r1686) Fix (Work around?) crash when generating tropical maps
2005-01-26 18:59:10 +00:00
dominik
ac0ea378ff
(svn r1685) - Fix: [newgrf] airplanes from grf sets are not treated as helicopters, as introduced in r1682
2005-01-26 18:39:35 +00:00
bjarni
d580d4e46c
(svn r1684) - Fix: [autoreplace] made sure that planes only show planes in replace GUI and helicopters only show helicopters
2005-01-26 18:18:00 +00:00
tron
a2971d0449
(svn r1683) Fix placement of MP_VOID tiles. On square maps it accidently works, but on non-square maps the wrong tiles would get marked as MP_VOID
2005-01-26 18:17:50 +00:00
dominik
478e001d0e
(svn r1682) - Fix: [newgrf] Helicopters from grf sets are now correctly recognized
2005-01-26 17:36:59 +00:00
celestar
efcd72a2ef
(svn r1681) -Feature: New realistic acceleration.
...
This will make things more difficult as narrow curves
and depots impose rather strict speed limits. Feedback welcome
For those who don't like low-speed curves: Switch it off
2005-01-26 12:51:04 +00:00
bjarni
5665d51bb3
(svn r1680) Feature: Replace train GUI now remembers the railtype selected in the dropdown menu
2005-01-26 12:42:29 +00:00
bjarni
518034d28d
(svn r1679) Fix: dropdown menus now returns the index of the string that was clicked even if a previous item is hidden
...
This bug was not triggered by the current code, but it's easier to code new features if you do not have to think about such limitations
like you can't hide an item in the middle of the list ;)
2005-01-26 11:23:54 +00:00
miham
7874c86cb2
(svn r1678) Added cheat option for setting production of raw-material product industries in game
2005-01-26 10:52:23 +00:00
tron
6d23dac1f6
(svn r1677) Forgot to change the save/load size for 3 variables
2005-01-26 05:51:27 +00:00
tron
993a106679
(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
...
WARNING: If i made any mistake here it WILL lead to corrupted savegames!
2005-01-25 21:43:57 +00:00
tron
8e5e2e52fd
(svn r1675) Ignore scenario files
2005-01-25 21:00:38 +00:00
dominik
346d10172b
(svn r1674) - Fix: Signs are now displayed in the correct color at all zoom levels
2005-01-25 20:47:02 +00:00
dominik
085ae9cab2
(svn r1673) - Codechange: Removed some redundant comments from r1667
...
Saving the player color for signs will work right after the savegame bump
2005-01-25 17:05:38 +00:00
tron
6497f08ad4
(svn r1672) Simplify dependency tracking and actually implement it for C++ files, too.
...
Note: Do "make clean" to get rid of the old dependency files
2005-01-25 16:10:06 +00:00
tron
85248d7850
(svn r1671) Remove WARNING_DISPLAY, because it contained no warning, but an optimization flag
2005-01-25 16:03:45 +00:00
tron
3276c46c72
(svn r1670) Garbage collect some variables, because they are only used once and hide magic, like containing -o where a filename must be the next parameter
2005-01-25 15:59:01 +00:00
tron
76e1dd515f
(svn r1669) Rename all ttd_XXX to just XXX, because we already know who we are (;
2005-01-25 15:46:32 +00:00
darkvater
568dff40b6
(svn r1668) -Fixed windows installer (autorail.grf) and a changelog typo
2005-01-25 15:43:27 +00:00
dominik
d439221c62
(svn r1667) - Feature: Signs are now shown in the color of the player who created them
...
(Note: The player information is currently not stored in savegames. Upon loading a game the signs will all be gray again)
2005-01-25 15:38:36 +00:00
tron
03ba24dd65
(svn r1666) Move some MorphOS compile flags to a place where they actually belong
2005-01-25 15:38:35 +00:00
tron
75045328ec
(svn r1665) Remove VERBOSE flag, because it was only partially implemented
...
Add "info" target instead, which prints out some relevant variables used in the Makefile
2005-01-25 15:35:11 +00:00
bjarni
6e532184bb
(svn r1664) Makefile: removed the forced 0.3.6 version tag
2005-01-25 00:13:48 +00:00
darkvater
1054ec7749
(svn r1662) -Fix: Unpause Linkgames scenario per default
2005-01-25 00:07:58 +00:00
bjarni
001fa99741
(svn r1661) Makefile: added scenario to make install
2005-01-25 00:07:50 +00:00
dominik
3482605b1a
(svn r1660) Added scenarios to Mandrakelinux specs file
2005-01-24 23:58:12 +00:00
bjarni
6a66bb2314
(svn r1659) Makefile: added scenario to mac and MorphOS release scripts
2005-01-24 23:52:59 +00:00
darkvater
212ecff33b
(svn r1658) -Update readme and windows installer for 0.3.6
...
-Fix up VS6 and add new default icon for OpenTTD
2005-01-24 23:44:24 +00:00
bjarni
ae7bdefc33
(svn r1657) changelog update
2005-01-24 23:32:58 +00:00
dominik
66166bd7f7
(svn r1656) Sorry, this is of course the 2004 version of Linkgame Islands
2005-01-24 23:28:47 +00:00
dominik
4cc23f6608
(svn r1655) Add: Three brand new scenarios for endless multiplayer pleasure:
...
- Linkgame Islands (by sign_de)
- Mountain Pass (by Korenn)
- Volcano City (aka The Big City, by lucaspiller)
2005-01-24 23:24:34 +00:00
dominik
7150dd66cd
(svn r1654) updated changelog and known-bugs for 0.3.6
2005-01-24 23:04:30 +00:00
darkvater
5666efe66b
(svn r1653) -Fix: removed CTRL+A and CTRL+B cheats; thanks Hackykid
...
-Removed executable bits on png files in media dir (svn pd svn:executable <file>)
2005-01-24 23:02:14 +00:00
bjarni
e006f89aa3
(svn r1652) Fix: train and road vehicle lists are now redrawn when vehicles enters/leaves a depot (Hackykid)
...
fix: the ship status bar was not updated properly after a breakdown if show_speed was off (Hackykid)
2005-01-24 22:24:47 +00:00
dominik
ffb2c4de77
(svn r1651) Fix: [ 1098696 ] Airport shadow remains after crashing
2005-01-24 22:09:20 +00:00
matthijs
19c55cbb75
(svn r1650) - Added known-bugs.txt to os/debian/docs
2005-01-24 21:51:06 +00:00
bjarni
720b906a74
(svn r1649) Makefile: added known-bugs.txt to mac and MorphOS release scripts and made a really dirty hack to force 0.3.6 on binary files compiled with this makefile
2005-01-24 21:39:16 +00:00
darkvater
e05f961eed
(svn r1648) -Fix: server can now pause and unpause a game through the console. Use 'pause' and 'unpause'
2005-01-24 21:33:44 +00:00
tron
6151c1044a
(svn r1647) Remove stale comment and fix typo
2005-01-24 20:55:54 +00:00
dominik
aad7995648
(svn r1646) Miscellaneous langfile fixes, in particular for STR_NETWORK_SERVER_ADDRESS, broken by myself in r1611
2005-01-24 20:42:02 +00:00
dominik
700862295f
(svn r1645) Updated Mandrakelinux spec file and added some ScummVMish comments
2005-01-24 20:35:07 +00:00
matthijs
b9c13283a4
(svn r1644) - Some minor corrections to the os/debian dir.
2005-01-24 20:33:43 +00:00
truelight
f08983a948
(svn r1643) -Fix: [ 1108547 ] You can now change the server-password via the GUI again
2005-01-24 20:25:52 +00:00
truelight
7a5ce1cb34
(svn r1642) -Fix: solve AI related order-problem
2005-01-24 20:20:30 +00:00
tron
7f14b69022
(svn r1641) Remove a boundary check added in r1332 to work around a bug - the real cause has been eleminated in r1413.
...
Leave an assert() just to be sure...
2005-01-24 18:57:16 +00:00
bjarni
6e2abeba5e
(svn r1640) fix: now helicopters will use a hangar in schedule to be replaced in, even if they are only set to service there. Since helicopters are serviced at helipads, they will only go there if they needs to be replaced or renewed.
2005-01-24 18:21:23 +00:00
dominik
eae329f332
(svn r1639) Fixed spelling: Wrong command in error for goto_dir
2005-01-24 17:49:22 +00:00
celestar
ef3961448f
(svn r1638) -Fix: Train crashes should no longer desync the game. This is more of a
...
workaround, as somewhere there might be some InteractiveRandom() abuse
in the code.
2005-01-24 14:39:22 +00:00
darkvater
9139f4ba84
(svn r1637) -Fix: VS6 warning
...
-Added missing files to VS6 and VS.Net project files (bociusz)
2005-01-24 11:32:47 +00:00
bjarni
6dc99f7738
(svn r1636) fix: helicopters now go to a hangar if they are set for replacement or needs to be renewed
2005-01-24 10:50:57 +00:00
bjarni
b4c4daf775
(svn r1635) fix: forgot to set SetVScrollCount properly in autoreplace train GUI. It appears ok now
2005-01-24 08:49:14 +00:00
tron
ad6cc5a12d
(svn r1634) Update readme: JAM support has been removed, also be more precise which version of SDL is needed to compile
2005-01-24 07:18:45 +00:00
darkvater
a9e789fa02
(svn r1633) -Fix: [1040119] Flood and wagons in depot
2005-01-24 00:36:22 +00:00
darkvater
590bbd7e21
(svn r1632) -Fix: [1108008] Scenario creation bug; engines are of correct year when scenario is saved
2005-01-23 23:59:49 +00:00
dominik
29e0ded977
(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
2005-01-23 23:58:35 +00:00
miham
6912223444
(svn r1630) Langfile update
2005-01-23 22:39:34 +00:00
bjarni
6510b12203
(svn r1629) added a counter to tell how many engines you have of each type to the autoreplace vehicle windows and made them show only the vehicles you actually have in the left list.
...
this also fixes some window updates issues when autoreplacing
2005-01-23 22:01:51 +00:00
darkvater
dd6a6fa7ec
(svn r1628) -Fix: [1107893] script command; log file pointer was not reset to NULL after logging was closed
2005-01-23 21:42:29 +00:00
darkvater
94dc25b45f
(svn r1627) -Fix: The tabulizer in action ^_^
2005-01-23 21:30:31 +00:00
darkvater
f1c151f157
(svn r1626) -Updated readme and credits list.
2005-01-23 21:24:33 +00:00
darkvater
f31d8bb9a1
(svn r1625) -Alphabetized credits list
2005-01-23 20:41:20 +00:00
darkvater
660f130d2b
(svn r1624) -Fix: [1106930] BugFix: placing signals with 2x1 drags is treated as placing a single signal thus providing an easy fix for a nasty problem.
2005-01-23 20:40:49 +00:00
tron
a2619da37e
(svn r1623) Remove dead code
2005-01-23 20:06:38 +00:00
truelight
24a34936db
(svn r1622) -Fix: variables can't be defined after a statement.. (Igor2Code)
2005-01-23 19:33:42 +00:00
truelight
8edff76765
(svn r1621) -Fix: fixed some compiler warnings for the random-debug-switch
2005-01-23 19:02:53 +00:00
tron
2cf65953db
(svn r1620) Fix typo in r1619
2005-01-23 17:51:22 +00:00
tron
62e8c573e8
(svn r1619) Fight bit rot in the Makefile:
...
- Begin all echos with ===> to visually emphasise them
- Add @ to suppress printing of commands where it was missing
- Add echos to rules where none were
- Rephrase some existing echos
- Remove VERBOSE_FILTER, because piping errors to /dev/null is ... a bad idea
2005-01-23 17:35:01 +00:00
tron
88c10e02ff
(svn r1618) () -> (void)
2005-01-23 16:33:09 +00:00
darkvater
1a92141896
(svn r1617) -Fix: Ugly hack to only call ResetObjectToPlaceon childwindows of build-toolbar if the window is closed manually (with 'X'); if not checked ResetObjectToPlace is called twice resulting in undesired actions (eg. clicked button is unclicked immediately).
2005-01-23 15:25:17 +00:00
tron
53d1c3f117
(svn r1616) Introduce ttd_strlcat() and use it to de-uglify some piece of code in misc_cmd.
...
While here rename the len parameter of ttd_strlcpy() to size, because it is a buffer size and not a string length.
Also add -Wwrite-strings to the Makefile, because the above mentioned piece of code was the only part which triggered this warning.
2005-01-23 15:16:47 +00:00
darkvater
9a96f5b64e
(svn r1615) -Fix: [1107350] console ignoring return character occasionally. For everyone that is running 2 dedicated servers on 1 windows machine, console input is now correct (event was the same so it was random which console received the input)
2005-01-23 14:15:42 +00:00
dominik
52ec917125
(svn r1614) Fix: Signals were not updated correctly when the vehicle drive side was changed
2005-01-23 13:45:20 +00:00
darkvater
ae792cedde
(svn r1613) -Fix: WE_CLICK event is not called on default actions. If special action is needed, use the other events like WE_RESIZE or WE_DESTROY, etc.
2005-01-23 13:42:26 +00:00
truelight
bb276ef5a9
(svn r1612) -Fix: made sure that ->next pointers are set to NULL
2005-01-23 13:30:02 +00:00
dominik
7d0468aaa4
(svn r1611) Display server port in the multiplayer game info window
...
I had to make the multiplayer window 10 pixels wider for this
2005-01-23 13:19:15 +00:00
tron
44f48ce915
(svn r1610) Remove trailing whitespace (last time ever, i hope)
2005-01-23 13:09:35 +00:00
truelight
80131e1e4a
(svn r1609) -Codechange: converted the last order-loop with FOR_VEHICLE_ORDERS
2005-01-23 13:08:01 +00:00
tron
a11eddd04b
(svn r1608) Make ReplaceWords() comprehensible
2005-01-23 12:04:40 +00:00
truelight
8fe9bc6439
(svn r1607) -Fix: When deleting an order, the next pointer was not cleared,
...
resulting in some unusual behavoir from time to time
2005-01-23 11:37:27 +00:00
tron
9f60324821
(svn r1606) Fix some bogus casts
2005-01-23 10:54:32 +00:00
tron
fd25a53d1b
(svn r1605) Remove redundant if
2005-01-23 10:47:15 +00:00
dominik
322bd934be
(svn r1604) Fix: [ 1105112 ] Destroyed train locks crossings
2005-01-23 10:40:54 +00:00
darkvater
720b183017
(svn r1603) -Fix: unused variable in FormatTinyDate
...
-Fix: added void to all win32.c functions as well
2005-01-23 10:34:39 +00:00
tron
7243369333
(svn r1602) -Fix: [1107514] When resizing a window, make sure the correct window receives the click
2005-01-23 08:34:39 +00:00
dominik
f83828d944
(svn r1601) Add: A brand new set of icons.
...
Removed: The old icons
2005-01-22 23:57:03 +00:00
bjarni
c7502c6eb3
(svn r1600) Mac: applied the new icon to the mac binary file
2005-01-22 23:55:45 +00:00
bjarni
8e7d88c85b
(svn r1599) fix: autoreplace window now updates when inflation alters prices
...
Hackykid and not LordOfThePigs pointed out the update problem fixed in rev 1597. Sorry. Sometimes development can get too fast
2005-01-22 23:41:23 +00:00
dominik
6027e777c8
(svn r1598) Feature: Message history now is stickyable and resizeable
...
The news messages are now precisely cropped according to pixel width to fit optimal into the window.
Introduced a new date format: DATE_TINY, which is ISOish.
2005-01-22 23:13:20 +00:00
bjarni
8313879b3c
(svn r1597) fix: autoreplace vehicle lists are now redrawn when a new vehicle becomes available (thanks LordOfThePigs for pointing this one out)
2005-01-22 23:11:25 +00:00
tron
e5cd6b6193
(svn r1596) Add some more statics
2005-01-22 22:47:58 +00:00
tron
e75c48ec7a
(svn r1595) EmergencySave() is only used on WIN32, add preprocessor guard to hide it everywhere else
2005-01-22 22:46:10 +00:00
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
2005-01-22 20:23:18 +00:00
tron
7984a9a500
(svn r1593) Remove yet another alloca()
2005-01-22 19:41:30 +00:00
tron
54e78e114c
(svn r1592) -Fix: [1090495] Slopes under high bridges weren't flooded
2005-01-22 19:05:30 +00:00
tron
6fb79d5f33
(svn r1591) Make dedicated servers on OS/2 check for input the UNIX way
2005-01-22 18:59:53 +00:00
darkvater
b49547b2b5
(svn r1590) -Fix: [1107347] ban 1 crashes dedicated server. Dedicated server cannot ban itself :)
2005-01-22 18:51:09 +00:00
tron
c0a0d1bb22
(svn r1589) Adapt the AI to a slight behavior change of CmdBuildSignals() introduced in r1585
2005-01-22 18:46:30 +00:00
celestar
f40ff3c134
(svn r1588) -Fix: [ 1105959 ] coded a workaround in the acceleration code so that
...
trains don't think they're on a slope while they drive around in a
tunnel
2005-01-22 18:39:52 +00:00
darkvater
7c28bafba9
(svn r1587) -CodeChange: fixed up the graph loop a little..numd now shows the exact amount, no +1 needed
...
-CodeMotion: moved 'Company performancerating detail' to the end of the file; it fits there
2005-01-22 16:24:21 +00:00
dominik
6e17ee9fe2
(svn r1586) Fix: [ 1107340 ] Graphs don't show comapany info for company #8
2005-01-22 15:50:54 +00:00
tron
5d443a2482
(svn r1585) Rewrite CmdBuildSignals()
...
This addresses several issues:
- Correct comments
- Check input parameters for validity (and don't assert() them)
- Reorder checks if action is possible to produce more meaningful error messages
- Correct bug where money was charged for an action which should be free
- Kill warning about uninitialized variable, because the variable exists no more
- Make more clear how the function works (at least i hope so)
2005-01-22 14:52:20 +00:00
dominik
4ce10986b5
(svn r1584) Fix: Highlighlighting tiles under bridges works again correctly for square selection tools.
2005-01-22 09:17:58 +00:00
darkvater
0a944dc950
(svn r1583) -Fix: You should no longer be able to delete bridges on any type of underground when there is a vehicle on it
2005-01-21 19:52:32 +00:00
dominik
5290d5f667
(svn r1582) Fix: Only the train orders GUI has a non-stop button now.
2005-01-21 18:36:17 +00:00
celestar
962dd27a8c
(svn r1581) Added a display for the total map population to the town display (Jango)
2005-01-21 16:51:25 +00:00
dominik
2f4959dcd8
(svn r1580) Fix: [ 1106354 ] Graph's keys get confused
...
Fix: Graphs were not updated correctly when one graph with a certain selection was already open and another graph window was opened
2005-01-21 11:12:17 +00:00
dominik
ef93fcfe48
(svn r1579) Fix: [ 1105963 ] Buoys can now only be removed if no ship has it in their schedule.
...
This makes buoys more useable in multiplayer games again, as buoys can't be deleted by other players if they are used.
2005-01-20 22:19:34 +00:00
darkvater
c245d93e7d
(svn r1578) -Fix: [1102454] dedicated server crashes after some hours (highscore problems for dedicated...should be really solved now)
2005-01-20 18:57:09 +00:00
tron
2e0d576e6b
(svn r1577) Fix: [1103301] Railroad tracks on slopes weren't flooded
2005-01-20 18:19:37 +00:00
tron
44dae05c3d
(svn r1576) Clean TileLoopWaterHelper() a bit up
2005-01-20 18:18:32 +00:00
Celestar
1af764c4d0
(svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if
...
you have newgrfs loaded)
2005-01-20 10:31:59 +00:00
celestar
f8345b3fe6
(svn r1574) -Fix [ 1105281 ] upgrade rail fails when train under bridge
2005-01-20 09:12:20 +00:00
celestar
f0e616ea2b
(svn r1573) -Fix: Station and depot building mode is now terminated if the
...
corresponding windows are closed [ 1104277 ]
2005-01-20 08:36:15 +00:00
tron
e9c25f8274
(svn r1572) Remove dead code from ludde's autorail implementation which was left over by revision 1571
2005-01-19 21:50:38 +00:00
dominik
aaf09ceb26
(svn r1571) Feature: Visually enhanced autorail placing
...
When using the autorail tool, the rail pieces which are going to be build are highlighted.
If a piece is shown in red, this indicates that the slope/rail combination is impossible. It does not tell you if the rail line construction might not be possible because of other obstacles, e.g. houses or water.
2005-01-19 20:55:23 +00:00
tron
28df4a0e25
(svn r1570) Make the gcc version test work with old versions of test (i.e. don't use the < operator)
2005-01-19 20:22:10 +00:00
darkvater
7837be0575
(svn r1569) -Fix: signed/unsigned mismatch
2005-01-19 19:32:33 +00:00
bjarni
2fd3553d78
(svn r1568) made an enum of train subtypes to make the code more readable
2005-01-19 19:15:03 +00:00
darkvater
e4a3d284b2
(svn r1567) -Fix: [110452] On horizontal/vertical tracks you are also charged for building/removing signals on the parallel track on the same tile. Signal updating is also correct. (Hackykid)
2005-01-19 13:31:46 +00:00
darkvater
15630855dd
(svn r1566) -Fix eol-style on script files, as well as update them a bit (sign_de)
2005-01-19 13:22:01 +00:00
celestar
941da5dc94
(svn r1565) -Fix: [ 1104969 ] Aircraft in hangar messages are now revalidated before
...
display
-CodeChange: replaced one if (foo) return true else return false by
return (foo)
2005-01-19 10:00:37 +00:00
tron
a6d1544447
(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)
2005-01-19 05:55:30 +00:00
bjarni
69065b53c8
(svn r1563) fix: autoreplaced trains now sets wagon override properly
2005-01-19 01:18:29 +00:00
bjarni
f09b0def11
(svn r1562) Changed copyright 2004 into copyright 2004-(current year) in the get info window in finder (macOSX)
2005-01-18 23:48:55 +00:00
bjarni
b1c4b0f07d
(svn r1561) Fix: autoreplacing a singleheaded engine into a dualheaded engine now adds the the rear engine
...
autoreplacing a dualheaded engine into a singleheaded engine now sells the rear engine
as a sideeffect of this, the price for replacing both engines are now added and displayed once from the depot(instead of two identical numbers written on top of each other, looking like one)
fix: cost for autorenew dualheaded engines were doubled and their value where doubled too
2005-01-18 23:27:06 +00:00
tron
31d6f87d80
(svn r1560) Introduce SetTileType() and SetTileHeight()
...
Replace direct references to _map_type_and_height with these
2005-01-18 18:41:56 +00:00
tron
64b08311b9
(svn r1559) Use IsTileType() instead of bit shifting and comparisons
2005-01-18 17:19:34 +00:00
Celestar
389a4bf44d
(svn r1558) -Fix: [ 1104350 ] Crashed trains do not initiate the lost vehicle
...
message anymore
2005-01-18 16:01:35 +00:00
tron
eaa6bf3f42
(svn r1557) Replace strange if () do while () construct with a plain for ()
2005-01-18 15:26:14 +00:00
Celestar
5bcf3d2bc0
(svn r1556) -Fix: Vehicle list updates should now really work
2005-01-18 09:35:31 +00:00
miham
4559279686
(svn r1555) Daily (err.. this time it's rather weekly, sorry!) langfile updates
2005-01-17 22:44:33 +00:00
celestar
e0471187d0
(svn r1554) -Fix: [ 1103187 ] Order Check messages are now validated before
...
displayed, so that there are no stray error messages any more.
-Feature/Fix: Order Checking is only execute for ONE vehicle in an
order-share system
2005-01-17 21:54:45 +00:00
tron
9fadf6cf84
(svn r1553) Check which gcc version is present and only set availible compiler flags
2005-01-17 13:21:10 +00:00
tron
f4f705e723
(svn r1552) Make ottd compile on Zeta
2005-01-17 13:13:11 +00:00
tron
1847b99461
(svn r1551) Silence a warning and simplify a preprocessor check
2005-01-17 10:17:18 +00:00
tron
5adad6c1b4
(svn r1550) Remove useless function declaration
2005-01-17 09:43:02 +00:00
tron
fb0c3c8061
(svn r1549) Clean up some functions:
...
uint tile -> TileIndex tile
if () cascade -> switch ()
2005-01-17 09:41:46 +00:00
tron
d4beff7954
(svn r1548) Move AI_PATHFINDER_IS_ROAD from ai.h to ai_pathfinder.c to avoid global namespace pollution, turn it into a function called IsRoad and improve the commments a bit
2005-01-17 09:16:43 +00:00
darkvater
a1e94b67d5
(svn r1547) -Feature: windows dedicated (if anyone would run that, but ok), is now functioning correctly. There is no other way but to create a new thread, but that's only MS braindeadness
...
-Fix: [1103113] font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts
-Fix: [1103069] console backspace key with ded server; fixed due to normal console handling
-Fix: [1101963] console in dedicated server; see above
-Fix: dedicated server also writes to log file if active
2005-01-16 18:19:33 +00:00
truelight
8521367373
(svn r1546) -Fix: possible buffer-overflow in network
2005-01-16 17:19:37 +00:00
tron
022b8cea37
(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)
...
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
2005-01-16 14:50:01 +00:00
truelight
8e404a26f6
(svn r1544) -Fix: SwapOrder did not use AssignOrder, which caused the saveroutine to
...
crash from time to time
-Codechange: added const before 'Order *' where possible
2005-01-16 14:42:53 +00:00
dominik
be5a832db3
(svn r1543) Fix: [ 1101906 ] Configure Patches window text overflow
2005-01-16 14:10:13 +00:00
tron
ef923fae44
(svn r1542) Rename TileHeight to TilePixelHeight, because this is what it actually returns
2005-01-16 14:06:22 +00:00
dominik
b119b6c474
(svn r1541) Fix: [ 1100767 ] fast forward in main menu
2005-01-16 13:59:07 +00:00
darkvater
340a9ab6be
(svn r1540) -Fix: since grf files are reopened on every load/new game, close the old opened to fix stale filehandles (thx tamlin)
2005-01-16 12:40:25 +00:00
darkvater
8efc7866dd
(svn r1539) -Fix: [1103271] free'd memory used. Moved w->wndproc(w, &e) to end of function. Thanks for finding this tamlin.
2005-01-16 12:30:52 +00:00
darkvater
37f56fa324
(svn r1538) -Feature: [988816] Disable servicing when breakdowns set to none (jaguar7)
2005-01-16 12:29:52 +00:00
darkvater
208a9b8547
(svn r1537) -Fix: Close all and any open filehandles open at shutdown (tamlin)
2005-01-16 12:14:52 +00:00
tron
ae796740aa
(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
2005-01-16 11:24:58 +00:00
truelight
d2643dc483
(svn r1535) -Fix: bah, I hate to be wrong.. oh, euh, wrong copy/paste from TPFMode 1
2005-01-16 11:18:17 +00:00
tron
efecea001a
(svn r1534) Use memmove() instead of memcpy() when copying overlapping memory (tamlin)
2005-01-16 11:04:45 +00:00
tron
1955371a71
(svn r1533) Turn an if cascade into a switch and move a const array to the only location where it is used
2005-01-16 09:51:56 +00:00
darkvater
d41a003bcc
(svn r1532) -Fix: [1103078] default service period patch options are now cast to 0 with right variable size.
2005-01-16 00:23:19 +00:00
darkvater
6e07bad728
(svn r1531) -Feature: [1039061] Swiss town-names (vulvulune)
2005-01-15 21:41:49 +00:00
bjarni
971d844266
(svn r1530) Makefilefix: now the binary never links to SDL if DEDICATED is set. Thanks to igor2code for making me aware of this issue even through I fixed it in a different way than his patch did. (I made dedicated never link to sdl, nomatter what makefile.config says)
2005-01-15 21:30:16 +00:00
darkvater
633786f55e
(svn r1529) -Feature: [1090950] Adding 16:10 resolutions for mainly laptops (doode)
2005-01-15 20:43:01 +00:00
truelight
1b00f36520
(svn r1528) -Fix: forgot to init a variable
2005-01-15 20:10:44 +00:00
truelight
24c9e6ff66
(svn r1527) -Add: RCon (Remote Connection). A server can set:
...
'set rcon_pw <password>'
Which enables rcon. A client can now do:
'rcon <password> "<command>"'
The command will be executed on the server. (guru3)
-Fix: 'kick 1' did crash dedicated servers
-Fix: server password is now correctly saved
!!Warning!!: do not give your rcon password to people you do not thrust!
2005-01-15 20:09:16 +00:00
darkvater
e6d31cb89c
(svn r1526) -Fix: [1103027] Minor changes for the lobby GUI (widen window) (bociusz)
2005-01-15 19:17:45 +00:00
truelight
d275109e79
(svn r1525) -Codechange: rewrote the _order_array, now it can be made dynamic.
...
-Codechange: renamed all 'schedule' stuff to 'order(list)'
-Codechange: moved all order-stuff to order_cmd.c / order.h
-Codechange: vehicles that share orders are now linked to eachother
with next_shared/prev_shared in Vehicle
Developers: please use AssignOrder to assign data to an order. If not,
you _WILL_ make the save-routine to assert!
2005-01-15 19:06:22 +00:00
darkvater
732c362dea
(svn r1524) -"Feature": when windows exception tracker is enabled (release builds) and the game crashes for any reason any active log file is closed first. This ensures the log file and ingame debug messages can be used to debug a problem. Any *nix versions are welcome
2005-01-15 16:38:10 +00:00
darkvater
ef3b9161f8
(svn r1523) -Fix: somehow mousewheel was disabled on windows using SDL; reenabled again
...
-Fix: added missing CDECL to ellipsis functions and changed VS6 project file to use _cdecl calling conventions (thx tamlin)
2005-01-15 15:48:05 +00:00
darkvater
559317f9d0
(svn r1522) -Fix: warning players.c; forgot return type. Damn, makefile is too strict ;) (Thx Tron)
2005-01-15 10:04:04 +00:00
celestar
02ed8410a2
(svn r1521) -Fix: Ship Vehicle Lists are now redrawn correctly
...
-Codechange: added some const to last commit
-Codechange: Ship and Aircraft lists are now update on order change, not
on new day
2005-01-15 09:28:08 +00:00
tron
3279a7c9a2
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
2005-01-15 08:58:31 +00:00
celestar
7f7c6297f7
(svn r1519) -Fix: [1102776], [1099535] Aircraft vehicle lists are now redrawn when an aircraft arrives in the depot. Station-specific vehicle lists are now redrawn daily as well (not only the master list)
2005-01-15 08:40:32 +00:00
darkvater
f9b5f704b1
(svn r1518) -Fix: server issue where some company names were wrong
...
-Fix: Highscore troubles; accessing members of deleted window
2005-01-15 01:52:23 +00:00
darkvater
75474e5bf1
(svn r1516) -Cheating players do not get their names added to the highscore table/file
...
-Fixed issue where highscore window would not come up after endgame screen
-Fix: VS6 compiles once again (braindead compiler)
2005-01-15 00:46:45 +00:00
darkvater
c3a40dba68
(svn r1515) -Removed the 'close ALL windows' from the toolbar since shift+del does this.
2005-01-15 00:42:01 +00:00
darkvater
976ed5e396
(svn r1514) -Fix: [1092474] little red box in scenario editor (Celestar). Error box is also shown in scenario editor for terraforming, thus solving the eternally-pulsating-tile problem.
2005-01-14 22:03:09 +00:00
truelight
83b00ad861
(svn r1513) -Fix: glitch in revision 1510
...
-Fix: MSVC6 project file update (bociusz)
-Fix: MSVC6 default language is now English (UK), no longer Swedish (bociusz)
2005-01-14 21:59:31 +00:00
tron
dd27968460
(svn r1512) Replace probably incorrect test of loading_count with probably correct test of loaded_count
2005-01-14 21:58:48 +00:00
truelight
e9a57c56b7
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
...
- Added green dot if company income is positive (else red dot)
- Added lock icon if company is password protected
2005-01-14 21:47:35 +00:00
tron
3a838447a8
(svn r1509) Const correctness and add static where appropriate while touching the lines anyway
2005-01-14 19:44:42 +00:00
tron
4136f395bf
(svn r1508) Remove duplicate declarations and include proper headers where necessary
2005-01-14 19:41:24 +00:00
tron
9d1f7e7348
(svn r1507) Remove unreachable code
2005-01-14 19:39:06 +00:00
dominik
34db065631
(svn r1506) Fix: [ 1102275 ] Game crashed when clicking "new face" or "company color" twice
2005-01-14 14:56:50 +00:00
celestar
314a4245a9
(svn r1505) -Fix: Refit engine button is now disabled when cargo capacity equals zero
2005-01-14 09:36:29 +00:00
celestar
febac23b25
(svn r1504) enummed town ratings (Jango)
2005-01-14 09:20:12 +00:00
miham
9e10458209
(svn r1503) Added feature:
...
o allows users to setup the production values of the rawmaterial producing
industries in the editor
Modified:
o ttd.h - added CT_INVALID for 0xFF cargo type
o english.txt - added 1 string
o industry_gui.c - the feature itself
o window.h - added compile asserts to the structs which checks whether their
sizes are smaller than WINDOW_CUSTOM_SIZE
Thanks:
o Darkvater to bother me to constantly improve the patch
o Various users at #openttd for testing
2005-01-14 00:14:13 +00:00
darkvater
352cf002b2
(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in player_gui.c ^ should've been &
...
-Fix: in multiplayer clientlist can only be opened once
2005-01-13 20:46:39 +00:00
celestar
7dddb6cf7a
(svn r1500) -Feature: Train window shows now the number of vehicles per row (mpetrov)
2005-01-13 17:23:24 +00:00
celestar
237732d0a1
(svn r1499) -Fix: Order tooltip now explains the ctrl+click scroll. [1101412 / 1097043] (mpetrov)
2005-01-13 17:06:10 +00:00
Celestar
6dd2e2f06d
(svn r1498) -Feature: Addded keyboard shortcuts for the order window
2005-01-13 16:55:17 +00:00
darkvater
61cae70fe5
(svn r1497) -Fix: [1101179] Crash if generating land while industry window is open. This also happened for towns and the land information window
...
-Added DeleteWindowByClass() function that deletes all windows of a given class
2005-01-13 16:50:20 +00:00
darkvater
06cc62f40d
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game
...
-Fix: fixed some compiler warnings
-Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
2005-01-13 16:28:47 +00:00
celestar
0074496ea4
(svn r1495) -Fix: Loan does not count against the company value
...
-Feature: New companies receive a 5-year protection period
2005-01-13 09:55:32 +00:00
tron
131f4c50fd
(svn r1494) Give GetNumberBasedOnSeed() a bit more sane name: SeedChance()
...
Add SeedChanceBias() which subtracts a bias from SeedChance() to reduce code duplication
While touching the lines anyway sprinkle a bit holy ANSI water (static before inline) and move assignments in the conditions of ifs before the ifs
2005-01-12 22:10:50 +00:00
celestar
253a02e712
(svn r1493) -Codechange: Removed redundancy in the order GUI. Currently we had most
...
of the code written 4 - 8 times in the code.
This currently causes the "non-stop" button to appear for all
vehicles, which is disabled all the time. Don't report this as a bug
please.
This is (hopefully) the first patch in a joint effort to simplify
the order system
2005-01-12 22:09:21 +00:00
tron
f062187e47
(svn r1492) Reduce strcpy(, "") follwed by strcat() to just strcpy() (Jango)
2005-01-12 21:38:49 +00:00
tron
45233a7e16
(svn r1491) Fix bracing style and indentation (Jango)
2005-01-12 21:33:43 +00:00
tron
fd19404b6f
(svn r1490) Restore original town name generation behavior for german and hungarian (Jango)
2005-01-12 21:11:26 +00:00
truelight
747eab12d9
(svn r1489) -Fix: You fix a GCC warning, you get a MSVC warning.. now fixed both
...
(which compiler do we break this time?)
2005-01-12 16:33:33 +00:00
truelight
7ec997afce
(svn r1488) -Fix: fixed some spelling mistakes (tnx to Tron)
...
-Fix: fixed some compiler-warnings
2005-01-12 11:54:51 +00:00
darkvater
f25bec9132
(svn r1487) -Fix: [1100736] wrong tooltip for place desert button
2005-01-12 11:50:41 +00:00
truelight
a243285af4
(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared it for
...
dynamic arrays
2005-01-12 11:21:28 +00:00
darkvater
ff23795f5b
(svn r1485) -Fix: [1031451] Catchment area shows when buying sign. Catchment area wasn't reset when road station window was unselected
...
-Fix: small GUI glitch in terraform toolbar
2005-01-12 00:50:08 +00:00
darkvater
1a450b0b39
(svn r1484) -Fix: [1099197] scrolling through console sometimes crashed the whole game. Also added MarkWholeScreenDirty() to have redrawing of console resize instant (sign_de)
2005-01-11 23:39:21 +00:00
truelight
4873c0b1ea
(svn r1483) -Fix: don't close a socket if it is already closed (windows doesn't like
...
it :() (partly tnx to tamlin)
2005-01-11 15:52:18 +00:00
celestar
1feae2083d
(svn r1481) -Fix: [ 1099891 ] Added a return in DispatchLeftClickEvent which prevents reading of free'd memory (tamlin)
2005-01-11 12:15:08 +00:00
darkvater
5fac6142e8
(svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
...
-Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while
-These values are saved in hs.dat; added read/write functions for it
-Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
2005-01-11 00:54:06 +00:00
darkvater
085563653f
(svn r1478) -Fix: [1099195] mouse-wheel in train replace window. Scrollbar1 and Scrollbar2 now work independently. You can only scroll on list and scrollbar itself; scrollbar must be next widget of the list.
...
-Fix: updated the few gui's that didn't have the scrollbar right after the listbox.
2005-01-11 00:24:27 +00:00
darkvater
38da06301d
(svn r1477) -Fix: finally zooming in/out always works. The problem was that the zoomed in/out coordinates were used for checking if the area was a zoomable viewport in the not zoomed in/out position. The chances were high that there was a window.
2005-01-10 22:56:20 +00:00
darkvater
ae72661742
(svn r1476) -Fix: [1099209] Catchment area with drag&drop stations (Celestar)
2005-01-10 22:36:11 +00:00
tron
05a3a83b6c
(svn r1475) Fix some more signed/unsigned comparison warnings
2005-01-10 22:14:35 +00:00
celestar
46d0e2f892
(svn r1474) Added some gcc flags in the Makefile
2005-01-10 21:56:02 +00:00
darkvater
70f9921423
(svn r1472) -Fix: correct error message for when trying to build a railroad station over a bus/truck/etc-station.
2005-01-10 21:52:35 +00:00
darkvater
02e020c05e
(svn r1471) -Alternate icon added, made by Dominik
...
-VS6 project file updated (bociusz)
2005-01-10 20:53:18 +00:00
tron
1fc77885c2
(svn r1470) Revert r1457, this warning option was introduced with gcc 3.4
2005-01-10 19:27:38 +00:00
truelight
2c6e2a68b7
(svn r1469) -Fix: missed one in last commit
2005-01-10 19:14:05 +00:00
truelight
52de6766c7
(svn r1468) -Fix: really old maps do load again (Darkvater / TrueLight)
2005-01-10 19:08:25 +00:00
Celestar
c0b82db752
(svn r1467) Fixed a nasty bug where one could build one station OVER the other
2005-01-10 16:35:20 +00:00
darkvater
83b2abb6d6
(svn r1466) -Fix: oops, depot windows can of course also scroll horizontally. Thanks si-m1.
2005-01-10 14:56:26 +00:00
darkvater
29b4ab04c3
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
2005-01-10 14:43:00 +00:00
darkvater
fae367ab31
(svn r1464) -Fix: [1099106] Resizeable portion of bus/air/rail depots window unclickable
2005-01-10 14:36:08 +00:00
darkvater
1261a44cec
(svn r1463) -Fix: [1099451] Game crashes after the click on Rename (see also Bug 10992). There was no check for non-selected engine
2005-01-10 14:24:40 +00:00
darkvater
49e7939a10
(svn r1460) -Fix: [1099225] Bug Fix - Vehicle Lists not updated at Acqusition (thx tamlin and mpetrov) This also fixes some bug but can't find i right now.
2005-01-10 12:14:15 +00:00
darkvater
53bd40ebaf
(svn r1458) -Fix: remove byte *s again for windows.
2005-01-10 10:38:02 +00:00
tron
cd4e73193d
(svn r1457) Make Darvater happy: -Wdeclaration-after-statement
2005-01-10 09:33:18 +00:00
tron
b9fed3391b
(svn r1456) Simplify isWagon(), make it static and give it a canonical name (IsWagon)
2005-01-10 08:25:43 +00:00
miham
aacb89ed53
(svn r1455) Fixed spritecache.c to compile
2005-01-10 07:26:19 +00:00
darkvater
52bfa90d5e
(svn r1454) -Fix: small warnings in spritecache.c
2005-01-10 01:50:17 +00:00
dominik
aa261049f4
(svn r1453) Feature: MD5 hash check for TTD files
...
The original TTD files are now checked with a MD5 sum to determine which version of the grf files is used and to warn about possible file corruptions. (Thanks to ledow for the original patch)
2005-01-10 01:14:26 +00:00
miham
c77e9231ef
(svn r1452) Fixed missing option from settings.c (Simen Graaten)
2005-01-09 21:39:49 +00:00
tron
49584082a0
(svn r1451) Fix some of the signed/unsigned comparison warnings
2005-01-09 21:25:44 +00:00
miham
c6c86abeee
(svn r1450) Updated norwegian townname generation (Simen Graaten)
2005-01-09 20:45:07 +00:00
darkvater
fbcc84bdcf
(svn r1449) -Fix: signed/unsigned error on windows
...
-Change: Makefile added -Wsign-compare flag
2005-01-09 18:59:16 +00:00
truelight
97479f9613
(svn r1448) -Fix: The current_order of a vehicle is now correctly saved (caused
...
massive desyncs)
Warning: savegames which are made with the nightly of 08-01-2005 will
NO LONGER work!!
2005-01-09 18:49:18 +00:00
tron
55e6b4f928
(svn r1447) Move TILE_ADD(), TILE_ADDXY() and SafeTileAdd() to map.[ch] and make the latter map size agnostic
2005-01-09 17:55:11 +00:00
truelight
32f480a4ae
(svn r1445) -Fix: reversing a train also reverses the UP and DOWN status for the
...
realistic acceleration calculation
-Fix: there was a big bug in setting the UP and DOWN flags making it
easy possible for a overloaded train to go up a mountain. This is no
longer possible. They will hang at a certain height
2005-01-09 16:02:06 +00:00
truelight
9853d4e0d4
(svn r1444) -Fix: fixed weight for double-head trains (and with that the acceleration)
...
(now maglev lvl4 can reach their top speed, and are faster than lvl3)
(Tnx to Darkvater :))
-Fix: Buy Vehicle GUI now shows HPs bigger than 32000 correctly
2005-01-09 14:45:19 +00:00
miham
598addff94
(svn r1443) Added feature that users are able to place multiple accepting industies nearby in the editor mode if the appropriate patches are set
2005-01-09 14:07:59 +00:00
celestar
86c3bfd66d
(svn r1441) Fixed a couple of warnings, and removed a pointless assert
2005-01-09 10:04:30 +00:00
celestar
e17a8989cf
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
...
terminals in every group can be freely chosen
-Codechange: AT_OILRIG is now 15, so that new airports can be added
easily.
2005-01-09 08:49:40 +00:00
miham
13dda25334
(svn r1439) Daily langfile updates [except latvian for non-iso8859-1 chars] (semi-automatic)
...
The last patch (norwegian townnames was from Simen Graaten
2005-01-09 01:11:01 +00:00
miham
0f339f3a6b
(svn r1438) Added norwegian townnames
2005-01-09 00:17:01 +00:00
darkvater
5edecb9495
(svn r1437) -Fix: Safetileadd preprocessor magic is the same as for GCC and no longer extern
2005-01-08 23:59:49 +00:00
dominik
bfc670b4d9
(svn r1435) Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode
2005-01-08 20:55:21 +00:00
dominik
4b6a846d9c
(svn r1434) Fix: [ 1098553 ] Crash when all vehicles from a vehicles per station list had been removed
2005-01-08 19:34:00 +00:00
truelight
5110ffeef4
(svn r1432) -Fix: I seem to be unable to revert a simple file :s
2005-01-08 15:31:20 +00:00
truelight
ead1aa8dfc
(svn r1431) -Fix: oeps, I added my personal Makefile in the last commit :(
2005-01-08 15:28:16 +00:00
truelight
d4d4a46436
(svn r1430) -Fix: starting openttd with -g <invalid_name> now acts normal
2005-01-08 15:26:58 +00:00
truelight
788f543bc3
(svn r1429) Change: bumped savegame to revision 5.
...
- Now orders are bigger
- Now _map2 is official 16 bits
2005-01-08 12:47:26 +00:00
miham
3be9515d84
(svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
2005-01-08 12:03:21 +00:00
bjarni
4972b3722e
(svn r1427) fixed issue where the wrong sprite could be used if autoreplacing between single and multiheaded trains
2005-01-08 10:38:07 +00:00
truelight
dcca3cf80b
(svn r1426) -Codechange: cleaned up the reference code in the saveload routines
...
-Codechange: removed next_in_chain_old, and saved ->next for Vehicles
(and bumped savegame revision for that to version 4.4)
-Codechange: Added _sl.full_version, which has both major and minor version
2005-01-08 09:48:08 +00:00
celestar
90871eeb9e
(svn r1425) Added hotkeys for dock and airport toolbar
2005-01-08 09:40:22 +00:00
dominik
634c395a6f
(svn r1424) Add dynamite to landscaping toolbar (hotkey 'D')
2005-01-08 09:24:15 +00:00
dominik
69a4df909c
(svn r1423) Fix: [ 1084074 ] Delayed news messages
2005-01-08 09:09:11 +00:00
dominik
3f7da833d1
(svn r1422) Fixed linux compiling, that was broken in r1420
2005-01-08 08:29:12 +00:00
bjarni
db4668c057
(svn r1421) improved autoreplace multiheaded trains. It now remembers the current heading for an engine instead of turning all of them like the first one and the last the other way
2005-01-08 01:05:24 +00:00
darkvater
b11f7c7817
(svn r1420) -Fix: Console alias, load_game functionality and load fix (sign_de)
2005-01-08 00:48:10 +00:00
bjarni
2da54df9df
(svn r1419) fixed issue where autoreplacing dualheaded trains turned the last engine the wrong way
2005-01-08 00:22:11 +00:00
darkvater
116789022c
(svn r1418) -Feature: [1098254] (dis)Allow Shares. Add patch options to allow buying/selling of shares (Hackykid)
2005-01-07 23:59:59 +00:00
dominik
b78b576b21
(svn r1417) Fix: The invisible tiles on the southern border are now converted to class MP_VOID when an old map (with wrong classified invisible tiles) is loaded.
...
I bumped the minor savegame version for that, even though it's not really necessary. We're not gonna run out of minor savegame versions anyway though. ;)
2005-01-07 18:13:56 +00:00
tron
76c7f3b14e
(svn r1416) Print sensible information in SafeTileAdd() if gcc is used
2005-01-07 17:47:29 +00:00
tron
35972e68e1
(svn r1415) Move TILE_FROM_XY and TILE_XY to map.h and push TILE_[XY] bits from map.h into map.c.
...
Now the whole source except map.c is independent of TILE_[XY]_BITS!
2005-01-07 17:40:23 +00:00
tron
7ca6b2b8b0
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
2005-01-07 17:02:43 +00:00
dominik
f5c33e5073
(svn r1413) Fixed a serious memory leak problem. The invisible tiles on the southern border now have the correct tile type (MP_VOID) again. Please note that older maps might still have incorrect border tiles, thus still causing overflows.
2005-01-07 12:33:28 +00:00
celestar
9a4465f9c0
(svn r1412) -Feature/Fix: Aircraft refit options have been restricted to "sane"
...
values.
-Feature: aircraft can now be refitted "mail-only"
-Feature: Passengers aircraft now ignore the amount of mail for "full
load any" options
2005-01-07 09:51:16 +00:00
truelight
e58739c559
(svn r1411) -Fix: structure packing in the OS/2 version (eg, with the old loader).
2005-01-07 09:28:16 +00:00
celestar
8ed132a5b9
(svn r1410) Replaced all occurences of 'passanger' by 'passenger' in the code
2005-01-07 08:38:27 +00:00
tron
a6ba0d3fbe
(svn r1409) Simplify some preprocessor magic
2005-01-07 08:07:24 +00:00
darkvater
a3c0e81230
(svn r1408) -Fix: uninitialized variable :)
2005-01-06 22:50:48 +00:00
truelight
63e97754fb
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
...
(in prepare of dynamic arrays):
- DEREF_XXX is changed into GetXXX
- All direct call are directed via GetXXX
- struct Industry has now an index-field
- ENUM'd some stuff
- Replaced home built loops with FOR_ALL_XXX
- Added _stations_size, _vehicles_size, ... which gives the length of the
array (which will be dynamic in the near future)
- Changed lengtof(XXX) to _XXX_size (e.g. _stations_size)
- Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX)
- Made the sort-functions of all 4 dynamic
- Made all 4 Initialize functions more of the same
- Some minor tab-fixing and stuff
(tnx to Tron for proof-reading my 100kb patch ;))
Note for all: please do NOT directly call _stations, _vehicles, _towns and
_industries, but use the right wrapper to access them. Thank you.
Ps: please also do not use 'v++', where v is of type Vehicle *.
2005-01-06 22:31:58 +00:00
bjarni
a4111363c0
(svn r1405) Added half done Estonian translation (indrek)
2005-01-06 19:40:44 +00:00
darkvater
deabdb666f
(svn r1404) -Fix: Company password no longer shares a widget with buying shares
2005-01-06 18:54:13 +00:00
miham
57aebadb15
(svn r1403) Daily langfile updates (semi-automatic) [505 missing strings]
2005-01-06 18:49:51 +00:00
tron
8b7c1e94e1
(svn r1402) Trim trailing whitespace
2005-01-06 18:45:28 +00:00
truelight
2c9cd8f68c
(svn r1401) -Fix: glitches in train-depot GUI (tnx to Hackykid)
...
-Fix: glitch in Company Overview GUI (Hackykid)
2005-01-06 17:40:57 +00:00
truelight
8e58dd8dec
(svn r1400) -Fix: signal stays red if a track is removed (Darkvater / Tron / TrueLight)
2005-01-06 17:14:37 +00:00
truelight
c06dd27c33
(svn r1399) -Fix: Fixes for compiling with Watcom C/C++ (ie, OS/2 port). (orudge)
...
Note: If people could watch out for initialising structs with
*non-constants* in future... it's a bit annoying, I
know, but Open Watcom isn't the only compiler which
doesn't support this (yet) - Borland, for example,
still doesn't like it.
2005-01-06 15:57:26 +00:00
darkvater
becd9c224e
(svn r1398) -Feature: CTRL+V (Paste) now works on all editboxes. This includes 'Add Server', chat, etc. Feature is Windows only.
2005-01-06 15:54:09 +00:00
tron
5b7e224f46
(svn r1397) Add missing RESIZE_NONE
2005-01-06 12:34:22 +00:00
tron
f8c95a1dbe
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
2005-01-06 11:39:00 +00:00
tron
790b03c707
(svn r1395) Fix assertion when building road bridge
2005-01-06 08:08:17 +00:00
bjarni
1e99155d61
(svn r1393) fix [ 1096026 ]. Autorenew trains should now hopefully work like it did before autoreplace was added
...
DEREF_ENGINE is now used in autoreplace
2005-01-05 19:28:10 +00:00
tron
cc465f0f35
(svn r1392) Use TileOffsByDir() instead of home brewed table
2005-01-05 19:12:47 +00:00
tron
5583fd89b3
(svn r1391) Make an assert map size agnostic
2005-01-05 18:59:02 +00:00
tron
2cdc210193
(svn r1390) Use TileOffsByDir() instead of home brewed table
2005-01-05 18:09:06 +00:00
truelight
523a6a1cff
(svn r1389) -Add: [Network] Added packet protection. No longer a client or server
...
reads beyond the size of the packet
-Fix: [Network] A server no longer crashes when a client sends an
invalid DoCommand, but drops the client instead.
2005-01-05 14:39:48 +00:00
dominik
f1e9fdf76d
(svn r1388) Feature: [SDL] Show revision number in window title
2005-01-05 14:20:23 +00:00
dominik
6735135773
(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
2005-01-05 13:48:38 +00:00
tron
67161506ad
(svn r1386) Move TileIndexDiff to map.h
...
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
2005-01-05 13:32:03 +00:00
dominik
2543158c8e
(svn r1385) Fix: [ 1095020 ] When all stations in an aircraft's order list are demolished, the plane eventually crashes (running out of fuel)
2005-01-05 13:15:27 +00:00
dominik
61761cfab1
(svn r1384) Fix: Sometimes when lists were saved, a lot of blank lines had been added
2005-01-05 11:19:57 +00:00
dominik
87e5984ae2
(svn r1383) Fix: You can now also delete automatically found servers by pressing "del"
...
Fix: The scrollbar is correctly updated when deleting servers
2005-01-05 10:47:59 +00:00
tron
9294d33611
(svn r1382) Make automatic placement of rails in front of train depots map size agnostic
2005-01-05 10:20:51 +00:00
dominik
e31da8532e
(svn r1381) Fix: [ 1095143 ] Servers list now also saves the port
2005-01-05 09:59:45 +00:00
darkvater
c4b682f996
(svn r1380) -Fix: missed widget fixes; thanks Jango and TestMan57
2005-01-04 21:45:38 +00:00
darkvater
4c5f6fe360
(svn r1379) -Fix: various GUI glitches. Added default sizes to various widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
2005-01-04 21:28:09 +00:00
bjarni
0fe19ed2ac
(svn r1378) Fix: train engines are now only replaced if the engine is really set to be replaced and they are replaced to the type that engine type is set to be replaced to (instead of whtat the first engine in the train is set to)
2005-01-04 20:19:00 +00:00
darkvater
2af42f48b9
(svn r1377) -Fix: only a server can rename a town in a MP game
2005-01-04 19:49:44 +00:00
bjarni
29d2f6ed6c
(svn r1376) fixed an issue where a modified client could try to replace a vehicle to an invalid engine ID and crash the server. Now the server just rejects the request. Also added a check for vehicle ownership, so you should not be able to replace other player's vehicles
2005-01-04 17:54:16 +00:00
darkvater
6edb21231e
(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.
2005-01-04 17:11:03 +00:00
darkvater
88b8a01da6
(svn r1374) -Feature: Add sticky item to finances window; sticky remains when requesting big/small window
...
-Moved resize icon in save dialog to bottom-right
2005-01-04 17:04:10 +00:00
darkvater
101ccce895
(svn r1373) -Fix: compilation fix for windows
2005-01-04 16:04:28 +00:00
truelight
27df6c86fc
(svn r1372) -Fix: fixed some GUI glitches introduced with resize-buttons
2005-01-04 15:49:30 +00:00
truelight
c5d6230c66
(svn r1370) -Add: added console support for loading maps. Use 'load', 'list_files'
...
and 'goto_dir' to navigate and load games.
2005-01-04 15:06:08 +00:00
darkvater
4f496b8681
(svn r1369) -Feature(ish): Added sprites for up/down and left/right arrows. Anywhere where there are horizontal scrollers these are now left/right arrows
2005-01-04 14:54:27 +00:00
truelight
86fa7720f9
(svn r1368) -Fix: Disabled dropdown menu options are gray again (instead of blue)
...
(redid revision 1357)
2005-01-04 13:45:58 +00:00
matthijs
a9b3d8c998
(svn r1367) -Fix: Full-Loading trains no longer get "lost" after a while (Hackykid)
2005-01-04 00:54:12 +00:00
darkvater
cdfb3d5113
(svn r1366) -Fix: [1093186] rough land in snow upon dying of tree
2005-01-04 00:53:52 +00:00
darkvater
3a48ab4c54
(svn r1365) -Fix: very, very nasty buffer overflow bug introduced with replace vehicles. You CANNOT access the i[255] of an array that only has 255 elements! I will kick the next person that does that so hard...goddammit (I only noticed it because it screwed up my console in the debug build and took me at least an hour to fix)
2005-01-04 00:07:58 +00:00
darkvater
5a9478cdba
(svn r1361) -Remove .cod files from VS6 project as well (bociusz)
2005-01-03 22:16:02 +00:00
tron
39bb863024
(svn r1359) Fix typos in last commit
2005-01-03 22:12:36 +00:00
tron
2f2688b829
(svn r1358) Assert bounds of depot list when searching for a depot
2005-01-03 22:07:40 +00:00
darkvater
579d51b1b2
(svn r1357) -Fix: Disabled dropdown menu options are gray again (instead of blue)
2005-01-03 22:04:34 +00:00
darkvater
f6c4e3eb1c
(svn r1356) -Fix: [1092363] missing GCC_PACK in oldloader.c (thx hafken)
2005-01-03 21:51:24 +00:00
darkvater
9a49fda8e6
(svn r1355) -Fix: [1092473] random trees in scenario editor do not overwrite rocks as well
2005-01-03 21:47:52 +00:00
tron
d922ca68e7
(svn r1354) Use WindowClass/WindowNumber to store/pass window class/number, not some arbitrary data types
2005-01-03 21:29:59 +00:00
darkvater
52c87a0330
(svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place rocks on trees and vice versa
2005-01-03 21:26:09 +00:00
darkvater
1ee725ef35
(svn r1352) -Fix: [1093200] Drive side in new games. Setting the driver side is possible during the game until someone buys road vehicles. In networked games only the server can change it.
2005-01-03 21:05:03 +00:00
bjarni
ad24d6cb04
(svn r1351) fixed issue in last commit where it it not update the replace train window properly when changing company colour (the lower two panels stayed the old colour until the window was reopened)
2005-01-03 21:01:37 +00:00
bjarni
e0c4e144b9
(svn r1350) Replace Vehicle GUI:
...
- Replaced "WP(w,replaceveh_d).line_height" with
"w->resize.step_height" since they needed to be the same anyway
- Cleaned the code a litte for readability (like correct tabbing)
- Added company color to replace vehicle windows to make them look like
the rest of the vehicle windows and made the caption text white (also to
fit the standard)
--This line, and those below, will be ignored--
M vehicle_gui.c
M lang/english.txt
M window.h
2005-01-03 20:52:09 +00:00
darkvater
363dd7bdf0
(svn r1349) -Fix: [1093485] Dissappearing rocks in Scenario Editor
2005-01-03 20:20:25 +00:00
truelight
a94fe04a9a
(svn r1348) -Feature: resizable windows. Read the comment in window.h to find out
...
how the system works. All useful windows are already made resizable. Enjoy :)
-Fix: fixed some GUI-glitches and flaws along the way
2005-01-03 19:45:18 +00:00
darkvater
5b6be88587
(svn r1347) -Fix: Some were fixed for the trees -> Only copy the lowest two bits (amount of snow/desert) from map5 to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide;
2005-01-03 19:34:07 +00:00
darkvater
79d29b7633
(svn r1346) -Fix: fix signed/unsigned warnings
...
-Fix: latent removal of 2 lines from ttd.c which I forgot because the file was not saved :O
2005-01-03 19:09:45 +00:00
tron
afb6e5441d
(svn r1345) Only copy the lowest two bits (amount of snow/desert) from map5 to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide
2005-01-03 19:06:16 +00:00
tron
c0702318d2
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
2005-01-03 18:59:58 +00:00
truelight
d382463f8a
(svn r1343) -Fix: [Graphic] Autorail icon is now correct (Darkvater)
...
-Fix: [Graphic] Added resize icon (tnx tokai)
2005-01-03 18:49:45 +00:00
darkvater
a72d993e65
(svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER
2005-01-03 18:40:41 +00:00
darkvater
3ee8697bbf
(svn r1341) -Fix: fix WWT_FRAME drawing when there is no text there (STR_NULL)
...
-Copyright notice is now 2002-2005 for all languages
2005-01-03 17:55:25 +00:00
darkvater
ca1b3a80ae
(svn r1340) -Feature: scrolling credits list...finally! Hope nobody gets offended if I forgot them.
2005-01-03 16:45:42 +00:00
darkvater
d317a93e0f
(svn r1339) -Fix: compilation with networking works on MinGW32 again (thx orudge).
2005-01-03 14:33:59 +00:00
darkvater
39f8b82640
(svn r1338) -Fix: fix signed/unsigned warnings introduced when ditching the macros for map querying.
2005-01-03 14:07:49 +00:00
tron
32bfe0dddd
(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY]
...
While here replace one erroneous TILE_MAX_X with MapMaxY()
2005-01-03 12:56:22 +00:00
dominik
4c14afba4e
(svn r1336) Fix: Correct landscaping buttons in monorail and maglev toolbars
2005-01-03 12:15:55 +00:00
dominik
288c52b688
(svn r1335) Removed wrongly renamed STR_TOWNNAME_ADDITIONAL_ENGLISH from all language files
2005-01-03 12:03:24 +00:00
dominik
2cb37408a3
(svn r1334) Fix: [ 1093466 ] no more glitches with many maps in the scenario list when creating server
2005-01-03 11:58:53 +00:00
dominik
60ba9c3280
(svn r1333) Fix: No crash when creating a game with American town names any more
2005-01-03 11:45:11 +00:00
truelight
7e89cd8643
(svn r1332) -Fix: Desert-landscape does no longer crash (protected GetMapExtraBits
...
from overflowing)
2005-01-03 11:11:16 +00:00
tron
6c4840fa50
(svn r1331) Update map size before sending game info
2005-01-03 09:14:31 +00:00
tron
29e71638ce
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
2005-01-03 08:50:44 +00:00
tron
608cdbe3f6
(svn r1329) Remove unused function declaration
2005-01-03 08:34:54 +00:00
tron
09dd8053a9
(svn r1328) Turn loop with explicit terminator element into loop using endof()
2005-01-03 08:33:04 +00:00
darkvater
ae336f146d
(svn r1327) -Fix: made resource file version independent for windows
...
-Fix: language file inconsistencies...please update all other language files as well when you rename a string name and do nothing else.
2005-01-03 00:42:43 +00:00
bjarni
6a6cbdd9b4
(svn r1326) fixed compiler warnings in vehicle_gui.c and widget.c
2005-01-02 22:28:56 +00:00
darkvater
efc2702491
(svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
...
-Fix: the level land icon no longer flashes (was palette colour)
2005-01-02 21:52:21 +00:00
bjarni
2351271889
(svn r1324) Fixed problem with autoreplace GUI and msvc6 (thanks bociusz)
2005-01-02 17:39:01 +00:00
bjarni
29d8c5bb50
(svn r1323) Adding autoreplace feature
...
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once
ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the
vehicle overview windows
Note: autorenew is now autoreplace, but to the same engine type
Nice new features, that was added to make this possible
- windows can now have two independant vertical scrollbars
- CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with
estimated costs even if shift is pressed
- fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
2005-01-02 17:23:04 +00:00
truelight
a11f46fed4
(svn r1322) -Add: banning system (mostly tnx to guru3)
...
A server can ban people via ClientList
Both server and dedicated can do it via console:
'ban', 'unban', 'banlist'.
2005-01-02 12:03:43 +00:00
truelight
5d06584545
(svn r1321) -Fix: Revision 1302 partly solved the problem and created an other.
...
Should now really be solved.. now only MP_WATER is owned by OWNER_WATER
2005-01-01 19:18:48 +00:00
truelight
a0716c39de
(svn r1320) -Fix: fixed chat-bug (that from a certain moment, nobody could talk).. 1
...
variable was still byte instead of uint16 (with a very big tnx to guru3!)
2005-01-01 16:34:54 +00:00
truelight
461ca703ff
(svn r1318) -Fix: Saving a game fucked up the industries.. sorry ;)
2005-01-01 15:40:44 +00:00
truelight
36333076d5
(svn r1314) -Fix: Population numbers is no longer negative for 32k+ towns
2004-12-31 19:09:03 +00:00
truelight
2ebc5011f3
(svn r1313) -Fix: fixed MSVC problem
2004-12-31 18:59:22 +00:00
truelight
92ac503b74
(svn r1312) -Add: Patch which is on by default: population in label of the town
...
-Fix: Expand town is a bit more agressive
-Fix: Fixed a bug in growing algorithm
2004-12-31 18:57:24 +00:00
truelight
1fef394fde
(svn r1308) -Update: updated MSVC project files
2004-12-31 15:55:14 +00:00
truelight
d76ecbba7c
(svn r1307) -Fix/feature: rewrote the townname generation code. Code is much more
...
readable now. 'American' is replaces by 'Additional English' (Jango)
2004-12-31 14:43:47 +00:00
miham
6c1e2989b1
(svn r1303) Daily langfile update (automatic)
2004-12-31 09:47:09 +00:00
truelight
4b38004a49
(svn r1302) -Fix: [ 1091655 ] In some older maps somehow water is owned by
...
OWNER_NONE instead of OWNER_WATER.
-Fix: On InitializeLandscape the map was made MP_WATER, but OWNER_NONE.
When ConvertGroundTilesIntoWaterTiles() is not called, this gives big
problems (see above). Now the owner is set to OWNER_WATER by default.
2004-12-30 10:29:28 +00:00
truelight
546fcfa3ec
(svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES too
2004-12-30 10:03:35 +00:00
truelight
32c3fbd18e
(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)
2004-12-30 09:46:40 +00:00
truelight
635b854c29
(svn r1299) -Fix: [ 1092473 ] In SE, when trees are placed randomly, they are no
...
longer placed on farmland
2004-12-30 09:43:12 +00:00
truelight
bcc3b1cbb5
(svn r1298) -Fix: [ 1092661 ] On create, the scrollbar of the server-list was not updated
2004-12-29 15:32:10 +00:00
miham
57852f6498
(svn r1297) Language fixes in the source.. (ln-)
2004-12-29 13:13:29 +00:00
celestar
14dfb539b0
(svn r1296) Cleanup for MSVC files (bociusz)
2004-12-29 11:00:34 +00:00
truelight
fe08f457bc
(svn r1295) -Fix: [ 1092499 ] Copy order was fucked up, because memcpy said:
...
sizeof(uint16), instead of sizeof(Order).
2004-12-29 08:42:30 +00:00
miham
e24c0ec9df
(svn r1294) Daily langfile updates (automatic)
2004-12-28 22:46:09 +00:00
miham
37a18c858f
(svn r1293) Fixed the bug in translator
2004-12-28 22:36:46 +00:00
truelight
6735bffd39
(svn r1292) -Codechange: also updated the town/industry sort-list to be uint16 compatible
2004-12-28 17:50:17 +00:00
truelight
e6a59be8c0
(svn r1291) -Codechange: prepared subsidies and towns to become an uint16 (happens
...
after savegame bump)
2004-12-28 17:40:15 +00:00
bjarni
c4d073a4de
(svn r1290) Added type to typedef struct Engine and filled in the same data as in type in vehicle
...
it was kind of lame that you should use AircraftVehInfo(), ShipVehInfo() etc. if you wanted to know what type the engine is
2004-12-28 17:18:46 +00:00
truelight
5b8c604f47
(svn r1289) -Fix: Minor fix for OS/2 message boxes (orudge)
2004-12-28 12:11:34 +00:00
truelight
c2ee8d70e4
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
...
an uint8 till the savegame version is bumped to version 5. Then it works
automaticly as a fully uint16. So _stations[] can not be increased till
after the bump!!
2004-12-28 11:51:31 +00:00
truelight
41201f488c
(svn r1287) -Fix: reversed 1285, because it is not the solution. This also means
...
that getting a lot of money with shares is back... :(
2004-12-28 09:55:55 +00:00
truelight
c531739602
(svn r1286) -Fix: oeps, I clamp'd some numbers wrong :$
2004-12-28 09:31:38 +00:00
truelight
a5a811f767
(svn r1285) -Fix: your loan is now substracted from your company value
2004-12-28 09:29:40 +00:00
truelight
15d188d7f8
(svn r1284) -Fix: Fixed 'money-cheat' (read: bug which could give people a lot of money)
2004-12-28 09:24:02 +00:00
truelight
8dcbf2675b
(svn r1283) -Add: AutoRenew is now a client-side patch instead of a game-side patch
...
Note: this is the first commit that breaks compatibility with 0.3.5!
-Fix: Bufferoverflow with autorenew_money. It is now a 32-bit integer.
2004-12-27 18:18:44 +00:00
truelight
96b36ec01e
(svn r1282) -Fix: forget 2 files for the OS/2 patch. And forgot to add:
...
patch by Orudge, great job!!
2004-12-27 13:40:30 +00:00
truelight
1f4c1e8821
(svn r1281) -Fix: the OS/2 is now finished. Fixes:
...
- Networking
- File selector issue
- Keyboard input
- Dedicated server console issue (use dedicated.cmd to open a server)
- Plus many other minor issues
2004-12-27 10:40:04 +00:00
truelight
f3c8f40c51
(svn r1280) -Codechange: made the last patch a bit more... readable (in other words:
...
use that spacebar!!)
2004-12-27 10:24:38 +00:00
bjarni
b01382c20b
(svn r1279) Fixed the scrollbar in the network gui(server list). It now updates when scrolling (HackyKid)
2004-12-26 22:09:34 +00:00
matthijs
e4ee040a04
(svn r1278) (Applied to trunk/ and branch/map/)
...
-Made media/opentdd.64.png non-executable
-Created an xpm version of media/openttd.64.png (required for debian)
2004-12-25 20:59:11 +00:00
miham
c575939ef4
(svn r1277) Daily langfile updates (automatic)
2004-12-25 17:08:56 +00:00
truelight
c5cca49117
(svn r1276) -Fix: [Network] Bug in bind system. Advertising failed on systems with
...
more then 1 ip, and server_bind active to one of them.
2004-12-24 08:54:00 +00:00
bjarni
7e0f47ff15
(svn r1274) Makefile: networking is not longer experimental
2004-12-24 00:33:41 +00:00
miham
4972ba9a78
(svn r1273) Daily langfile updates (automatic)
2004-12-24 00:24:13 +00:00
truelight
4ec9356ba2
(svn r1272) -Fix: game compiles again with network disabled
2004-12-24 00:13:32 +00:00
darkvater
de597eb7d2
(svn r1271) -Fix: set eol-style to native on missing files
...
-Added known_bugs file with open bugs on SF..should be included with installer
-Updated installer for 0.3.5
2004-12-24 00:00:10 +00:00
bjarni
7d18544b04
(svn r1270) Updated all languages so they are ready to be released
...
moved russian, turkish and latvian 'translations' to lang/unfinished so we do not release 'translations' with nearly no translated strings
2004-12-23 23:53:13 +00:00
truelight
3b60676e64
(svn r1269) - Updated changelog.txt and readme.txt for 0.3.5
...
- Marked docs/console.txt as out-dated
2004-12-23 23:32:07 +00:00
darkvater
d7bc1d776c
(svn r1268) -Fix: some warnings in gfx.c fixed
...
-Fix: Makefile now correctly works for cygwin/mingw; altough defining only cygwin does not compile the game
-Fix: moved SDL information message from severity 0 to 1. Only errors/severe warnings should be level 0
2004-12-23 23:15:07 +00:00
darkvater
1e8cfa10bf
(svn r1267) -Fix: fix the wrong language file postfix strings...if you do such a change in english.txt, please also update the other language as well too!
2004-12-23 22:45:24 +00:00
darkvater
b249954538
(svn r1266) -Fix: fix some cygwin/mingw warnings
...
-Note: when compiling with MinGW (-mno-cygwin) __MINGW32__ is defined; when compiling without it __CYGWIN32__ is defined. You need to set either -mno-cygwin (MinGW) or -mwin32 (Cygwin) to have WIN32 defined
2004-12-23 22:31:46 +00:00
truelight
dda14faac5
(svn r1265) -Fix: the server can also no longer use the money cheat if the
...
advertise-mode is active
2004-12-23 21:58:01 +00:00
dominik
6788a614d1
(svn r1264) Fix: Default currency is GBP again and the currency identifier is displayed correctly in the config file
2004-12-23 20:42:24 +00:00
truelight
97ec7de9e6
(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars
...
-Fix: You can enter some more chars in the chatbox
2004-12-23 20:33:57 +00:00
darkvater
ffed7d6834
(svn r1262) -Fix: [1088996] kill some warnings for MinGW (luzi82)
2004-12-23 20:23:05 +00:00
bjarni
c330e4203e
(svn r1261) Removed the English strings from danish.txt
2004-12-23 19:50:01 +00:00
darkvater
0533d9ff6e
(svn r1260) -Fix: [1090357] Patch for braindead MinGW compiler (luzi82)
2004-12-23 19:33:17 +00:00
truelight
f5b68e2d9d
(svn r1259) -Fix: [Network] Network now compiles with glibc 2.1 (MacBaine)
2004-12-23 19:23:56 +00:00
dominik
58c153b9ac
(svn r1255) Renamed "postfix" to "suffix", for strings and variable names
2004-12-23 18:28:13 +00:00
dominik
60052ffb45
(svn r1254) - Fix: [ 993500 ] High bridge rendering error
...
- Changed button to open landscaping toolbar
2004-12-23 18:14:12 +00:00
truelight
1558948b9b
(svn r1253) -Update: updated the multiplayer doc a bit.
...
Via this commit I wanted to thank everyone who helped with this new
network, with some people by name: Bjarni, for Endian support,
Hackykid, for Masterserver and ingame server-list, Geniusdex, for
suggestions and bug reporting, Darkvater, for the Windows testing,
Tron, for his comments and suggestions for the network, sign_de, for his
general help around the network, orudge, for his kind offer to host
our masterserver, dominik, for the network GUI, and all the others I
did not mention or forgot. Thank you all :)
2004-12-23 17:59:37 +00:00
truelight
c9645885d0
(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the date for in
...
which year the server must restart hisself. (0 = disabled, default value)
2004-12-23 17:37:26 +00:00
truelight
3672ae1118
(svn r1251) -Fix: [Console] The alias 'clean_company' is now working correctly
2004-12-23 17:12:30 +00:00
truelight
c48ba54a09
(svn r1250) -Fix: a dedicated server could not kick user number 1
2004-12-23 15:33:47 +00:00
truelight
3f87f29a81
(svn r1249) -Fix: new files in the last commit had double content
2004-12-23 15:08:53 +00:00
truelight
a9bb5be49d
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
...
Works fine, beside some minor stuff:
- Network is not working yet
- Keyboard is not working
- No MIDI support
- 'A few file selector bugs involving drives'
2004-12-23 14:46:16 +00:00
truelight
d91326fb4a
(svn r1247) -Fix: [ 1090313 ] Shares are now also sold when a company goes bankrupt
2004-12-23 14:02:40 +00:00
truelight
a14a78de34
(svn r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because
...
company-index was sent, which should have been the client-index
2004-12-23 13:53:05 +00:00
truelight
533e7a97ef
(svn r1244) -Fix: no longer show the current password when 'set company_pw' is called
...
without parameters (technical not possible, sorry DV)
2004-12-23 13:03:48 +00:00
darkvater
b4c80052fe
(svn r1243) -Fix: Scenario road-building toolbar also stickified. Thx for the notice teeone
2004-12-23 11:36:22 +00:00
darkvater
79bbc37daa
(svn r1242) -Fix: fix some morhpos warnings (tokai)
2004-12-23 11:31:06 +00:00
darkvater
3a98db672b
(svn r1241) -To get empty password, '*' is not needed in the gui; forgot to remove it from the tooltip...it's late already.
2004-12-23 00:33:44 +00:00
darkvater
28c1dc3e39
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
...
-Fix: removed some warnings
-Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
2004-12-23 00:24:44 +00:00
darkvater
c4836bbd70
(svn r1239) -Feature: Added gui option of setting company password. It can be found in the 'company information' window
...
-Spiced up 'set company_pw' a bit, where if no pw is typed, it shows the current one.
-Added a space between company name and player; looks better
2004-12-22 23:24:53 +00:00
bjarni
0e3399177e
(svn r1238) Changelog update with the mac specific stuff since 0.3.4
2004-12-22 22:52:06 +00:00
darkvater
39727d6a81
(svn r1237) -Fix: Viewports crash when too many viewports are open. Their amount was not updated to reflect the updated windows amount (thx lefti)
2004-12-22 21:37:28 +00:00
bjarni
fb345e983e
(svn r1236) MorphOS: added make release like in OSX (tokai)
...
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
2004-12-22 21:12:36 +00:00
miham
64e153fc34
(svn r1235) Daily langfile updates (automatic)
2004-12-22 21:09:45 +00:00
dominik
e297eada07
(svn r1233) Fixed several currency issues. Now currencies should work correctly again.
2004-12-22 19:48:27 +00:00
tron
51cbbd0438
(svn r1232) Plug memory leak
2004-12-22 19:16:56 +00:00
truelight
51257991c0
(svn r1231) -Fix: missing header file for console_cmds.c
2004-12-22 19:16:10 +00:00
truelight
d66adc937d
(svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
...
from the server-list
2004-12-22 18:56:52 +00:00
truelight
90b2b2144b
(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
...
-Fix: UDPListener was launched wrongly
-Fix: Not all sockets have broadcast enabled anymore
-Fix: Server-advertise retries 3 times before giving up
2004-12-22 18:42:56 +00:00
darkvater
ed0a42f940
(svn r1225) -Feature: SHIFT+DEL now deletes all non-vital windows (only status bar and main bar remain)
...
-Fix: For everyone who tried to crash the game by opening a huge amount of windows and stickying all of them; bad luck. It's fixed now (thanks Tron for the helpful criticism). First all normal windows are a candidate for replacement, then if none are found, sticky windows. Then..well that should not happen :)
2004-12-22 17:37:21 +00:00
dominik
b7f71b026d
(svn r1222) Currency cleanup. Changed some currency symbols according to forum suggestions (thx ChrisCF) and rearranged the currencies alphabetically (except for the major ones).
2004-12-22 16:54:55 +00:00
darkvater
5c7decc27d
(svn r1219) -Fix: compilation for windows release build (forgotten VARDEF)
2004-12-22 15:45:41 +00:00
dominik
68e1cdbdea
(svn r1218) Fix: Autosaves go to the correct folder again with keep_all_autosave enabled
2004-12-22 15:32:50 +00:00
dominik
4f4fa940d8
(svn r1215) Feature: You can now make a custom currency by chosing "Custom..."
2004-12-22 13:19:26 +00:00
darkvater
46af99b8c0
(svn r1214) -Feature: Stickified Industries (list & window), Smallmaps (all three), Stations (list & window) and Towns (list & window). I hope I didn't forget to update a widget somewhere :O
...
-Feature: With the sticky windows on and some unfortunate resizing of your game it the 'close' button might go outside of the playing field, making it impossible to close. Added an option to the Options menu that closes all windows, even if they are stickified ("Close ALL windows")
2004-12-22 01:32:30 +00:00
darkvater
f55303b0a8
(svn r1213) -Feature: Stickified vehicle lists
2004-12-22 00:45:05 +00:00
darkvater
222d6ca952
(svn r1212) -Feature: sticky windows all build-toolbars
2004-12-22 00:18:40 +00:00
darkvater
160a0a5ee1
(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized
2004-12-21 23:27:58 +00:00
miham
9a0c994fa8
(svn r1210) Daily langfile updates (automatic)
2004-12-21 22:53:55 +00:00
truelight
91d1805fb1
(svn r1209) -Fix: fix compiler warning (sorry)
2004-12-21 19:39:21 +00:00
truelight
af4f4069ee
(svn r1208) -Fix: the owner-check introduced in r1203 now also works correctly for
...
bridges (the middle-parts don't have any owner)
2004-12-21 19:37:10 +00:00
celestar
d9199657c1
(svn r1207) -Fix: Compiler warning due to the modified catchment areas
2004-12-21 19:07:23 +00:00
dominik
8bf52f8c0f
(svn r1206) Fix: Polished build docks window a bit.
2004-12-21 18:30:51 +00:00
dominik
1e1eac5f17
(svn r1205) Fix: Made the network window a bit wider, so that other languages don't have overlapping strings
2004-12-21 17:41:12 +00:00
truelight
19e3842615
(svn r1204) -Add: [Network] Added some cheaters-protection (money-cheat mostly)
2004-12-21 17:31:10 +00:00
truelight
8ab0190c29
(svn r1203) -Fix: the pathfinder no longer sees rail with an other owner as a
...
possible route. This also makes sure signals don't show red because
there is a train on the track of an other owner.
2004-12-21 17:12:20 +00:00
truelight
07d0fd6719
(svn r1202) -Fix: removed unused variable
2004-12-21 16:56:43 +00:00
truelight
9044110096
(svn r1201) -Fix: I forgot to add a * in r1183 ;)
2004-12-21 16:54:46 +00:00
truelight
d8709b18c6
(svn r1200) -Fix: Fixed bug pointed out by Tron: when a train is on the
...
road/rail-crossing, and you let an other train drive towards it, reverse
it, the lights no longer go off.
2004-12-21 16:17:27 +00:00
truelight
8ee37e7b47
(svn r1199) -Fix: [ 958098 ] No longer road/rail crossing signals hang when a train
...
is reversed at the wrong moment (Yeah, our longest open bug finally
fixed :) :) :))
2004-12-21 16:02:14 +00:00
truelight
24853eb42c
(svn r1198) -Fix: [ 1087701 ] It is no longer possible to crash trains of other
...
companies by building a depot close to a station. (even more: trains do
no longer enter tiles that do not belong to his owner)
2004-12-21 16:00:14 +00:00
truelight
c136432978
(svn r1197) -Fix: [GUI] in r1194 someone deleted too much code from WE_KEYPRESS. Now
...
you can change your player-name in the GUI again :)
2004-12-21 14:54:27 +00:00
truelight
245bc59c68
(svn r1196) -Fix: Preview Vehicle had a small glitch. Fixed now.
2004-12-21 14:42:06 +00:00
miham
97865f03f6
(svn r1195) Daily langfile updates (automatic)
2004-12-21 14:35:19 +00:00
dominik
7cfaa8a418
(svn r1194) Feature: You can now add and remove servers from the server list. Those will be remembered until you delete them by pressing the Delete key.
2004-12-20 22:14:39 +00:00
tron
3bbea05a93
(svn r1189) Fix vehicle list update glitch when moving waggons in depots
2004-12-20 18:11:22 +00:00
truelight
3d0cd51f27
(svn r1188) -Fix: [Network] Fixed that CTRL+<key> could sometimes hang a dedicated
...
server till enter was pressed. CTRL+D after a random key still does hang
the dedicated server till enter is pressed.
2004-12-20 16:35:16 +00:00
truelight
9b237345d1
(svn r1187) -Fix: [Network] You can no longer join as spectator a game with no
...
companies (a lot of code can simply not handle it)
2004-12-20 16:15:19 +00:00
truelight
5f25a0788a
(svn r1186) -Fix: [Network] You can now join a company on a server where a company
...
went bankrupt, without joining the wrong company (or even failing to do so)
2004-12-20 16:02:01 +00:00
truelight
7460764d91
(svn r1185) -Fix: [Network] Send to team now results in correct company on the sender
2004-12-20 15:26:19 +00:00
truelight
36ce6a7e4f
(svn r1184) -Fix: [Network] %p as chat message no longer gives funny result (tnx to
...
GeniusDex (that makes 10 ;)))
2004-12-20 15:25:39 +00:00
truelight
7e61a04785
(svn r1183) -Fix: Newsmessage-validation-pointer was never reset, causing some nasty
...
crashes (tnx to GeniusDex for the clear backtrace)
2004-12-20 14:38:28 +00:00
truelight
28d34b0f56
(svn r1182) -Fix: Makefile had a small glitch, making it impossible to compile the game (Oskar_)
2004-12-20 14:37:52 +00:00
miham
5caca8d64e
(svn r1181) Daily langfile updates (automatic)
2004-12-20 12:38:33 +00:00
bjarni
123acd5a73
(svn r1180) Makefile: fixed dependancies so the flag -j can be used. It makes the compilation process into more than one job which makes it able to benefit from multiple CPUs. Using -j without setting a limit of jobs (like -j2) is not a great idea (thanks to ln-- for reporting the need for this one)
2004-12-19 23:27:20 +00:00
dominik
110b410af4
(svn r1179) Fix: Tooltips for vehicle list sorting
...
This has gotta be the greatest kick for Moriarty!
2004-12-19 22:23:32 +00:00
dominik
862370f232
(svn r1178) Fix: Error message for building canals on slopes is correct
2004-12-19 22:17:27 +00:00
tron
7182b2508d
(svn r1177) Enable non-stop flag for waypoints
2004-12-19 21:03:16 +00:00
truelight
0807891501
(svn r1176) -Fix: [Network] PlayerBasedMenu's caused crashes when a company went bankrupt
2004-12-19 19:17:15 +00:00
truelight
60204bd309
(svn r1175) -Fix: [ 1086375 ] Backup-order-list was not closed with an OT_NOTHING,
...
resulting in order-lists mixing together (maybe tnx to Darkvater, not
sure though..)
2004-12-19 16:26:45 +00:00
truelight
db16262698
(svn r1174) -Fix: [Network] All strings can now be translated (no more hardcoded strings)
2004-12-19 15:14:55 +00:00
truelight
96c1e88d56
(svn r1173) -Fix: [Network] Console input in dedicated server for windows was not
...
working (Hackykid)
2004-12-19 14:42:17 +00:00
truelight
9bd54b592d
(svn r1172) -Fix: [Network] Pressing CTRL+C in dedicated server now closed the server
2004-12-19 14:08:29 +00:00
dominik
8c6c4e5262
(svn r1171) Fix: Console hotkey works again on keyboards where this key is a deadkey.
2004-12-19 13:28:09 +00:00
dominik
18dd7ebae2
(svn r1170) Fix: news_gui.c should compile everywhere without warnings now.
2004-12-19 13:06:20 +00:00
truelight
4d94803d32
(svn r1169) -Fix: [Network] [ 1087591 ] When you want to be a spectator, you now
...
stay a spectator even if someone else joins.
2004-12-19 10:24:45 +00:00
truelight
0e19f74c16
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
...
and 'void' where needed, prefixed all functions, typedefs and global
vars with 'Network' and organized all externals nicely.
2004-12-19 10:17:26 +00:00
dominik
bb5dca016d
(svn r1167) Feature: Added the possibility to add validation functions to NewsItems. This is now done for "Train in depot" messages. Before displaying such a message, it checks if the train really still is in the depot. Can be applied to other news items as well.
2004-12-19 09:39:19 +00:00
dominik
cf89cb12cd
(svn r1166) Fix: [ 1040119 ] Flooded wagons in depots don't keep constantly exploding any more
2004-12-19 09:33:02 +00:00
dominik
f18b913493
(svn r1165) Fix: [ 1085255 ] Docks now have a button to display the catchment area
2004-12-19 09:31:35 +00:00
dominik
61d744c38a
(svn r1164) Redid fix from revision 1163 to work with all patch settings
2004-12-19 09:30:05 +00:00
dominik
453c85e61d
(svn r1163) Fix: [ 1087403 ] Crashed trains aren't reported to have too few orders any more
2004-12-18 21:11:45 +00:00
dominik
853c11d301
(svn r1162) The server list can now be automatically filled from the config file. Add a section [servers] with the addresses each in a new line. Those will be checked upon OpenTTD startup.
2004-12-18 18:58:03 +00:00
tron
b9779176d5
(svn r1161) Don't make redundant GetAirport() calls, use the cached value
2004-12-18 18:19:49 +00:00
truelight
c7b5cc3787
(svn r1160) -Fix: redid revision 1159. pid_t should not be defined under windows.
2004-12-18 18:13:37 +00:00
darkvater
158a4d897b
(svn r1159) -Fix: pid_t was unknown to windows; typedeffed to int.
2004-12-18 18:05:56 +00:00
tron
1fd06cf773
(svn r1158) Make network compile on SunOS
2004-12-18 17:31:02 +00:00
dominik
74a0d26d0e
(svn r1157) Enhanced the config file (openttd.cfg) to use another section type. "List sections" as opposed to "variable sections" contain a list of values, separated by a new line. This is now used for the [newgrf] group. You have to edit each line in this section from e.g. "0 = firstset.grf" to only "firstset.grf".
2004-12-18 16:00:10 +00:00
truelight
17a613546c
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
2004-12-18 14:19:21 +00:00
truelight
3f2d2d8f37
(svn r1153) -Fix: FindCatchmentRadius is now a function that uses the enums instead
...
of magic numbers (tnx to Stumo)
2004-12-18 13:38:27 +00:00
truelight
88b94c3c67
(svn r1152) -Add: [Network] Added signal handling (GeniusDex)
2004-12-18 13:15:41 +00:00
tron
80a9fa962d
(svn r1151) Fix last commit |:
2004-12-18 12:46:29 +00:00
tron
a4e5ed68fd
(svn r1150) Fixes:
...
- Don't crash when building or destroying airport without depots (bugs were latent before r1149)
- Delete all hangar windows when destroying an airport, not just the first one (before r1149 none where deleted)
2004-12-18 12:40:34 +00:00
tron
376c5adb7c
(svn r1149) Fix hack which abuses first TileIndex of airport depot array as number of depots (similar change as in map branch)
2004-12-18 12:19:04 +00:00
dominik
64f98e058d
(svn r1148) Fix: The console hotkey is finally working properly on all keyboards. It's the key on the top left corner
2004-12-17 23:32:54 +00:00
truelight
9d05289147
(svn r1146) -Fix: You can no longer change waypoints whom are owned by somebody else
2004-12-17 17:06:20 +00:00
tron
ef89eb019a
(svn r1145) Remove stray line which crept in in last commit
2004-12-17 09:02:41 +00:00
tron
e75954a7ab
(svn r1144) Don't rely on sizeof() to determine the map size, use MapSize() instead
2004-12-17 09:01:24 +00:00
miham
52685ad50c
(svn r1143) Daily langfile updates (automatic)
2004-12-17 04:42:55 +00:00
truelight
da24f97483
(svn r1137) -Fix: [Network] Replaces all strncpy with ttd_strlcpy.. windows really
...
does not like strncpy for some silly reason.
2004-12-16 15:51:18 +00:00
truelight
f04d49ca17
(svn r1136) -Fix: [Network] Revision check on windows-servers is working now
2004-12-16 15:35:19 +00:00
truelight
f6e23d726f
(svn r1135) -Fix: added map.c/h to vc6 project file (bociusz)
2004-12-16 14:57:25 +00:00
truelight
5e28fb8f97
(svn r1131) -Add: [Network] Autoclean_companies (set it with 'set autoclean_companies on/off').
...
When enabled, empty companies (companies with no active clients) with no
password are declared bankrupt after 1 year of emptyness.
For empty companies with password, the password is removed after 3 years
of emptyness.
The delay of removing company/password can be configured via:
- 'set autoclean_protected <months>'
- 'set autoclean_unprotected <months>'
2004-12-16 13:59:23 +00:00
tron
89fd12692f
(svn r1130) Add helper functions to query map size
2004-12-16 12:30:13 +00:00
truelight
74a149127d
(svn r1129) -Add: [Network] Added 'reset_company <company-id>'. If a company is
...
empty (no clients logged on to it), a server can delete a company via
this command in the console.
2004-12-16 11:36:57 +00:00
truelight
dccd3adb9b
(svn r1128) -Fix: [Network] Going bankrupt of human-players was corrupted in networkgames
2004-12-16 11:36:00 +00:00
truelight
523ba1ff50
(svn r1127) -Fix: [Network] Protect the network against an illegal PLAYER_CTRL (in
...
which a modified client could, for example, delete a random active company)
2004-12-16 11:35:08 +00:00
truelight
693d074d76
(svn r1126) -Fix: [Network] Pressing Disconnect on the GUI puts you back to the
...
main-menu (so you no longer stay ingame (if you were))
2004-12-16 11:12:59 +00:00
truelight
c5770907ac
(svn r1125) -Fix: [Network] You can now safely join a company again
2004-12-16 11:09:00 +00:00
truelight
e5a2abb872
(svn r1124) -Fix: [Network] Also the server now has the option Give Money in
...
ClientList (tnx to teeone for reporting)
2004-12-16 11:04:43 +00:00
darkvater
83981e40b5
(svn r1121) -Feature: Added sticky windows feature. A small pin allows the user to set the window as undeletable and can only be closed by hand. As an example the viewport window has been stickied (thanks to Neko-San)
...
-To use the feature add WDF_STICKY_BUTTON to the widget description and update all widget-ID's since sticky button will be widget 2.
2004-12-15 23:33:04 +00:00
miham
ec94450aef
(svn r1119) Fixed url in manpage
2004-12-15 22:50:20 +00:00
matthijs
76363231be
(svn r1118) * Added a minimal manpage with references to where to get real info
...
* Specified installation locations in the os/debian/rules script so it works now.
2004-12-15 22:46:53 +00:00
tron
765ecfed84
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
2004-12-15 22:18:54 +00:00
truelight
736718ef53
(svn r1116) -Add: [Console] With 'set server_advertise on/off' you can put server
...
advertise on/off via console (requested by imachine)
2004-12-15 22:06:47 +00:00
tron
15265ac40a
(svn r1115) Put every source file on an extra line
2004-12-15 22:05:40 +00:00
miham
37192a99a6
(svn r1114) Daily langfile updates (automatic)
2004-12-15 21:54:13 +00:00
truelight
5f51b42c99
(svn r1113) -Add: [Network] Added the GUI part for server advertising. When you go
...
to Start Server, you can select by connection: 'Internet (advertise)'.
When selected, the server will announce itself to the server-list at
http://servers.openttd.org (when finished)
2004-12-15 21:54:07 +00:00
truelight
88862fcdb6
(svn r1112) -Fix: _decode_parameters was increased to [20], but not all temp-dparams were
2004-12-15 21:45:44 +00:00
darkvater
2d5a938621
(svn r1111) -Fix: Some language file fixes. Added a space in 'company information' and fixed most not-same-format as english.txt problems. Some are remaining because they need translations.
2004-12-15 21:45:05 +00:00
darkvater
ce4bff7fa5
(svn r1110) -Fix: Empty console commands were executed and returned error message (sign_de for GeniusDex)
2004-12-15 21:30:20 +00:00
tron
39b3e71239
(svn r1109) Fix c&p bug: In vehicle lists a name was displayed for road vehicles even if they had none
2004-12-15 21:25:33 +00:00
truelight
fa1f026367
(svn r1108) -Fix: [Network] Fixed problem around slow clients:
...
They joined, they got the map, but it took some time before the new
player was created. In this time a player could do stuff, causing a
player-id-mismatch, and the player was kicked out. Now a player get's a
nice GUI which says: registering.. When that is gone, the player is
joined and can play safely. Tnx to Moriarty for bugging me with this bug ;)
2004-12-15 21:13:52 +00:00
truelight
9595ee80e3
(svn r1107) -Fix: [Network] A spectator can no longer buy/sell shares of companies
2004-12-15 20:24:26 +00:00
truelight
015fb81810
(svn r1106) -Add: [Network] Added master-server protocol and advertise to
...
master-server option. No GUI yet, and disabled by default (it still is WIP)
2004-12-15 20:10:34 +00:00
darkvater
d867a845fd
(svn r1104) -Fix: nasty server crash buffer overflow problem when using release build. Big thanks to Truelight for the guidance in fixing this very annoying bug!
...
-VS.NET now treats warnings as errors too in the release build.
2004-12-15 20:08:01 +00:00
truelight
d7d3ff4849
(svn r1102) -Fix: [Console] 'set server_pw' was acting crazy when you typed more
...
chars then it could take
2004-12-15 17:40:12 +00:00
truelight
a4a3d829be
(svn r1101) -Fix: [Console] Removed magic numbers
2004-12-15 17:31:18 +00:00
truelight
b615e854e1
(svn r1100) -Fix: [Console] 'set company_pw' is now working again (Hackykid)
2004-12-15 17:24:10 +00:00
darkvater
f1b6b1711b
(svn r1098) -Fix: server without revision build doesn't care about the client's version. Also moved all revision things where it belongs (network.c)
2004-12-15 16:51:55 +00:00
truelight
29b844a408
(svn r1096) -Fix: [Network] PlayAs is now registered correctly
...
-Codewise: [Network] Cleaned some code, removed some comment, changed
some wrong comment
2004-12-15 15:19:51 +00:00
darkvater
c8ca2a8604
(svn r1095) -Fix: scenario editor road-build-gui works again altough shortcuts are screwed.
...
-Feature: Pressing enter on 'Abandon Game' returns to main menu (one less click \o/)
2004-12-15 11:42:05 +00:00
miham
f3ca6a9180
(svn r1094) Daily langfile updates (automatic)
2004-12-15 10:56:33 +00:00
darkvater
c58549d512
(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-15 00:31:08 +00:00
dominik
6cb53e7d34
(svn r1092) Fix: Autorail can be accessed with the 'a' hotkey again
2004-12-14 21:56:01 +00:00
dominik
af9dc1f817
(svn r1091) Fix: Finally station names use 100% the correct color in transparent mode
2004-12-14 20:54:01 +00:00
truelight
b6c74c1c20
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
...
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
2004-12-14 20:27:00 +00:00
miham
52aeaebde0
(svn r1089) Daily langfile updates (automatic)
2004-12-14 20:21:52 +00:00
dominik
20f36f8c88
(svn r1088) Strings cleanup. Renamed some strings to reflect their content.
2004-12-14 19:47:35 +00:00
truelight
967762e5ef
(svn r1086) -Fix: [Network] [ 1084774 ] Fixed quick-share-sell bug
2004-12-14 18:17:24 +00:00
truelight
55f3347514
(svn r1085) -Fix: [Network] [ 1084834 ] If IF_IN_NETWORK flag was on, an error
...
resulted in infinite money (or assert)
2004-12-14 18:13:02 +00:00
dominik
23612e41f2
(svn r1084) Generalized hotkey catching when textfield windows are open. Now only hotkeys attached to the main toolbar are working if you have a textfield open.
2004-12-14 17:38:48 +00:00
dominik
a94da5937c
(svn r1083) Fix: the console "script" command saves all output to the textfile, not only printf stuff (sign_de)
2004-12-14 17:06:54 +00:00
dominik
7196860373
(svn r1082) Feature: Chat toolbar
...
- to chat with all players press Return (or Shift-T) and type in the message
- Press Return again to send the message
2004-12-14 16:53:38 +00:00
miham
833ce98409
(svn r1081) Daily langfile updates (automatic)
2004-12-14 15:24:36 +00:00
tron
1fcf823d66
(svn r1080) Improve mini-map scrolling in a similar way as viewport scrolling (r1063): now the centre of the mini-map window is the region of interest instead some arbitrary coordinate.
2004-12-14 08:01:12 +00:00
darkvater
043b8bc5ad
(svn r1079) -Fix: you can once again quit the game in windows by pressing ALT+F4 or the 'exit' button in the main menu.
2004-12-14 00:45:24 +00:00
bjarni
1b386f46b4
(svn r1078) md5.c vc6 + vs.net fix for release builds (sign_de)
2004-12-13 22:19:37 +00:00
dominik
a9972399c5
(svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de)
...
- %! allows to merge alias parameters
- \% allows to use % in alias strings
- "alias" command now overwrites the old alias list entry
2004-12-13 22:13:02 +00:00
dominik
77e882c3bd
(svn r1076) Feature: Patch setting to autosave the game on exit
...
If you set autosave_on_exit = true in openttd.cfg, your game will be saved as exit.sav in the autosave folder and you won't be asked if you want to quit the game any more.
2004-12-13 22:10:12 +00:00
miham
2b13b2d239
(svn r1075) Daily langfile updates (automatic)
2004-12-13 21:28:38 +00:00
dominik
27e008d3f7
(svn r1074) Fix: server_bind_ip was set to 255.255.255.255 by default
...
The correct default value is 0.0.0.0. If you are experiencing problems with connecting to your server you'll have to change the value of server_bind_ip to 0.0.0.0 in openttd.cfg
2004-12-13 21:23:28 +00:00
dominik
9aeb0e1d30
(svn r1073) - condebugger extended a bit [shows the commandline] (sign_de)
...
- fixed handling of aliases with parameters (sign_de)
2004-12-13 20:45:55 +00:00
dominik
def5fc3ff7
(svn r1072) Fixed a few warnings that made trouble in VS .NET 2003
2004-12-13 20:12:45 +00:00
truelight
db6a545203
(svn r1069) -Add: [Network] Added UDP-packet for detail info about a server for
...
upcoming server-listing
2004-12-13 19:55:31 +00:00
truelight
cf205d059f
(svn r1068) -Fix: [Console] Let the client remember his own name-change
2004-12-13 19:54:44 +00:00
truelight
c185adf780
(svn r1067) -Add: [Console] Added comment for scripts (everything behind the # is
...
ignored) (GeniusDex / sign_de)
2004-12-13 19:07:54 +00:00
truelight
5b2cd5fae0
(svn r1066) -Fix: Crash when saving game as spectator (tnx to GeniusDex for reporting)
2004-12-13 18:53:59 +00:00
truelight
551d0622c5
(svn r1065) -Add: [Console] Alias support. Type 'list_aliases' to show them all (sign_de)
2004-12-13 18:51:08 +00:00
truelight
92b8ec9ff8
(svn r1064) -Fixed typo (tnx GeniusDex)
2004-12-13 18:34:31 +00:00
tron
d1d33372ff
(svn r1063) Improve scrolling limits a bit. You now can scroll further away from the map at the NW and NE edge.
...
Hopefully this new code is also a bit more comprehensible than the old. (;
2004-12-13 18:33:47 +00:00
truelight
d6e4999f1f
(svn r1062) -Fix: [Console] Compile warnigs in Get/SetPatchSettings
2004-12-13 18:32:49 +00:00
truelight
2e7f669153
(svn r1061) -Fix: [Network] Compiling without ENABLE_NETWORK now works again correctly
2004-12-13 17:58:53 +00:00
truelight
9ced62e239
(svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port'
...
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use
scripts/pre_dedicated.scr)
2004-12-13 17:47:21 +00:00
truelight
382b924b41
(svn r1058) -Add: [Console] 3 aliases for newgame: new_game, newmap, new_map (this
...
annoyed me for some time now)
2004-12-13 17:07:32 +00:00
truelight
b153236503
(svn r1057) -Add: [Network] 'set port <port>' changes the port of the server (after reboot)
...
-Fix: [Network] Fixed warnings that came with last revision
-Cleanup: [Network] Removed an unused var (_network_client_port)
2004-12-13 17:04:41 +00:00
truelight
549dafc241
(svn r1056) -Fix: [Network] Give the dedicated-server always a console in windows (sign_de)
2004-12-13 16:51:10 +00:00
truelight
e7886b6a34
(svn r1055) -Add: [Console] Special for dedicated servers:
...
- You can change patch settings via 'set patch <patch_name> [<value>]'
2004-12-13 16:16:28 +00:00
truelight
25dfbc3134
(svn r1054) -Fix: [Network] Redid revision 1024, only a bit more nice this time
...
(revision length is back to 10, and checking is now done correctly)
2004-12-13 16:15:21 +00:00
truelight
bff8c0af61
(svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in:
...
- set server_pw "password"
- set server_name "servername"
- set company_pw "password"
- set name "playername"
(patch by sign_de)
2004-12-13 15:07:33 +00:00
truelight
1c4c5ae370
(svn r1052) -Fix: [Network] You can't join a server when revision mismatches.
2004-12-13 14:57:58 +00:00
truelight
c0247e66e8
(svn r1051) -Fix: [Network] New Company button is disabled when there is no more
...
space for a new company
2004-12-13 14:49:31 +00:00
truelight
4d7c2e9d90
(svn r1050) -Fix: [Network] Scripts are no longer under revision control
...
-Add: [Network] Moved original scripts to be example scripts
2004-12-13 14:43:41 +00:00
truelight
f80094deb7
(svn r1045) -Fix: OpenTTD compiles again under VC6 (sign_de)
2004-12-13 11:17:59 +00:00
truelight
c0603e4768
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow
...
windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-13 09:01:24 +00:00
tron
523b37a3e9
(svn r1041) Under certain circumstances obsolete fields are included in the size calculation of a chunk in a savegame which leads to failed loads. This wasn't triggered because the necessary conditions weren't met.
2004-12-13 07:41:04 +00:00
dominik
2690ba03b2
(svn r1040) Fix: All character hotkeys are disabled now when a window for typing is open
2004-12-12 22:05:08 +00:00
bjarni
9e3ca26ae6
(svn r1039) Makefile: now RELEASE flag can contain () too
2004-12-12 21:18:39 +00:00
dominik
52134822b8
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
...
Please read the Readme for further information. There are some minor graphical glitches when you use the DOS files. E.g. the autorail button is a bit screwed up.
2004-12-12 20:36:24 +00:00
dominik
3c3ba97d11
(svn r1037) Rearranged landscaping hotkeys a bit more.
...
See this URL for the list of hotkeys: http://wiki.openttd.org/index.php/Hotkeys
2004-12-12 18:51:24 +00:00
miham
99f0cda875
(svn r1036) Daily langfile updates (automatic)
2004-12-12 18:49:50 +00:00
dominik
7188778c81
(svn r1035) Fix: Added a line that I accidentally deleted in r1033
2004-12-12 18:20:05 +00:00
bjarni
625b0ffec0
(svn r1034) Makefile: fixed issue where it would not compile if RELEASE string contained space. Did the same fix to OSXAPP, just in case it's changed to something containing space at a later date
2004-12-12 18:10:35 +00:00
dominik
532aa593a6
(svn r1033) -Add: 'l' openes the landscaping toolbar globally
2004-12-12 18:06:48 +00:00
dominik
3887747e4a
(svn r1032) Fix: Pressing "-" crashed the game
2004-12-12 18:05:36 +00:00
truelight
c8452c5195
(svn r1031) -Fix: [Network] The unique-id was not as unique as I though it was..
2004-12-12 17:47:50 +00:00
dominik
6d8a0c52f5
(svn r1030) Some toolbar icons are arranged differently:
...
- Landscaping buttons have to be accessed from the landscaping toolbar
- Landscaping toolbar can be opened from all other toolbars
- The order of buttons in the docks toolbar now matches the other toolbars
- Landscaping toolbar has new keyboard shortcuts
2004-12-12 17:42:04 +00:00
truelight
8057dd2214
(svn r1029) -Update: also added md5.h to vc6 / vc.net project files (bociusz)
2004-12-12 17:32:32 +00:00
truelight
96bf7074e3
(svn r1028) -Update: updated MSVC6 project file (bociusz)
2004-12-12 17:22:02 +00:00
tron
8f7373427e
(svn r1027) Add tooltips to the per-station vehicle list buttons
2004-12-12 17:20:46 +00:00
truelight
0e79314353
(svn r1026) -Add: [Network] Added unique id, so in network, each client has an
...
unique id (generated via md5)
2004-12-12 16:04:32 +00:00
truelight
5221f35182
(svn r1025) -Fix: [Network] [ 1083687 ] Sending to depot caused desync because the
...
new pathfinder uses a random, and the goto_depot uses the new pathfinder
(if enabled)
2004-12-12 15:43:55 +00:00
truelight
a65302dafe
(svn r1024) -Fix: [New Network] Revisions can now be longer then 10 chars, so I made
...
it 20 chars long
2004-12-12 14:28:08 +00:00
truelight
397bd915a3
(svn r1023) -Fix: [Network] [ 1083692 ] You can no longer buy out a company in MP
...
because of the lag between commands (anyway, I hope)
2004-12-12 14:00:25 +00:00
truelight
e027fa76b1
(svn r1022) -Fix: [Network] [ 1083690 ] The password dialog made the network
...
disconnect without cleaning up.
2004-12-12 13:46:10 +00:00
dominik
920a93071b
(svn r1021) Updated Spec file for Linux RPM release builds
2004-12-11 19:20:00 +00:00
truelight
5b72167c8c
(svn r1018) -Fix: Buffer overflow in edit box, because we misuse maxlen for a flag..
...
someone should rewrite the editbox!
2004-12-11 12:30:12 +00:00
Celestar
7559b9fed1
(svn r1017) Solved a Segfault if a station was built too close to the northern corner
2004-12-11 12:12:51 +00:00
tron
f995fd08a1
(svn r1016) Make the cargo sorter not consider the number of wagons of a particular cargo type but the sum of their capacity.
...
Also add the number sorter to sort by vehicle number if the cargo capacity is equal.
2004-12-11 11:00:54 +00:00
tron
0ba5123cef
(svn r1015) MFM r789
...
Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
2004-12-11 10:17:10 +00:00
miham
5a3ef18c94
(svn r1013) Daily langfile updates (automatic)
2004-12-11 09:51:55 +00:00
truelight
8dc2405ad6
(svn r1012) -Fix: [Network] Endless loop if a server was offline (WizKid)
2004-12-10 22:01:17 +00:00
bjarni
72559a785e
(svn r1011) Makefile, mac: added absolute path to hdiutil (default location) to fix the path issues when building nightly builds with a cronjob
2004-12-10 20:22:24 +00:00
bjarni
88cdb99ff7
(svn r1010) Makefile: removed the outdated remove of ttd binary from make clean (should only be a check for openttd binary)
...
Tron forgot to credit Celestar for last commit (rev 1009)
2004-12-10 18:24:35 +00:00
tron
5b0915e677
(svn r1009) -Feature: per-station vehicle lists
...
This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule.
As side effect this gets rid of some global variables.
2004-12-10 18:16:08 +00:00
tron
55bac62c5a
(svn r1007) Remove the last SET_DPARAM (:
2004-12-10 15:12:48 +00:00
miham
38f5ef6bd4
(svn r1006) Daily langfile updates (automatic)
2004-12-10 13:58:39 +00:00
tron
bd1d21911d
(svn r1005) Don't treat orders in the normal load routine as old orders, this lead to corruption on load.
2004-12-10 13:10:17 +00:00
tron
ea8311301e
(svn r1004) Fix harmless typo (comma instead of semicolon)
2004-12-10 13:02:47 +00:00
bjarni
c669c94ba3
(svn r1003) Mac: reintroduced the static libpng hack in makefile since it appears to be needed in the nightly builds
2004-12-10 13:00:11 +00:00
darkvater
625332a686
(svn r1002) -Fixed the placement of the OpenTTD logo a bit (thx Jango).
2004-12-09 23:49:23 +00:00
darkvater
6bc9b64421
(svn r1001) -Changed the title name to OpenTTD. Don't know how this was missed all this time; but is fixed now.
2004-12-09 23:20:32 +00:00
bjarni
74619675d5
(svn r1000) Makefile: added check for static build releases on mac. Most users can't use a dynamic build
2004-12-09 23:17:03 +00:00
dominik
416e2b67b1
(svn r999) New icons for the network interface, newgrf gui and the tiny euro
2004-12-09 23:16:52 +00:00
bjarni
02bf3ed5c0
(svn r998) now vehicles are serviced both when entering and when leaving depots to prevent that vehicles might need service when leaving after a long stay (ln--)
2004-12-09 21:46:56 +00:00
tron
93a4dbda4b
(svn r990) Fix a display bug in the order list:
...
TTD stores invalid orders different than OTTD, this resulted in empty lines in the order list. With the overhaul of the order system this got worse: no line was shown at all.
Fix this by sanity checking while loading and convert the orders accordingly.
2004-12-09 18:18:21 +00:00
bjarni
4a818ecbb6
(svn r988) Removed the JAM file stuff since it turned out that nobody uses it anymore and it is not maintained anymore
2004-12-08 21:33:44 +00:00
bjarni
416953f6dc
(svn r986) Norwegian translation update (Johannes)
2004-12-08 20:02:15 +00:00
bjarni
9ec6e0a501
(svn r985) Makefile: repaired issue in make release (OSX)
2004-12-08 19:33:44 +00:00
truelight
22951f5523
(svn r984) -Fix: deleted a debug level 0 line that was introduced in revision 978
2004-12-08 18:18:20 +00:00
bjarni
ec40598d4c
(svn r983) SunOS: fixed backspace key (Oskar)
2004-12-08 18:17:58 +00:00
truelight
2bb5145a20
(svn r982) -Fix: [Network] Because dparams are misused as a char, we had some
...
endian-problems. To fix this, we are sending dparams byte by byte
(instead of an uint32). Because of this dparam is sent
not-uint32-endian-safe, but char-endian-safe. Too bad dparam can no
longer be used for normal stuff (which is currently not the case) (tnx
to Tron and Bjarni)
2004-12-08 18:16:43 +00:00
bjarni
ecf7e8e9a7
(svn r981) SunOS: fixed the hotkey for console (Oskar)
2004-12-08 17:14:36 +00:00
bjarni
1f31bee5e4
(svn r980) Fixed issues where MorphOS would get problems if AmigaOS would get a port, since MorphOS also have the flag __AMIGA__ defined (Tokai)
2004-12-08 16:27:54 +00:00
Celestar
5b0743d66b
(svn r979) Allow more realistically sized catchment areas
2004-12-08 15:46:13 +00:00
Celestar
6fd3fc10e3
(svn r978) Fixed an endianess issue with the new Order system. Thanks to Bjarni, Oskar and Tron
2004-12-08 15:26:57 +00:00
miham
547a2d1f9f
(svn r977) Daily langfile updates (automatic)
2004-12-08 13:35:00 +00:00
bjarni
7938c1b884
(svn r974) Makefile: fixed issue in make release and nightly_build, which caused failures if RELEASE contained spaces
2004-12-07 19:31:24 +00:00
bjarni
253ec52c01
(svn r973) Makefile: added make nightly_build (only on mac)
2004-12-07 18:17:41 +00:00
bjarni
701e58e157
(svn r972) Makefile: added make release (currently only works on mac)
...
Mac: sets the STATIC flag if no makefile.config is found
2004-12-07 17:58:06 +00:00
bjarni
bad25dec0e
(svn r971) Mac: updated text files and added the link files from the releases
2004-12-07 17:27:55 +00:00
bjarni
051134ac9f
(svn r970) Added 2nd data path for all non-windows OSes
...
added completely customizable lang path (all non-Windows OSes)
2004-12-07 17:16:57 +00:00
Celestar
a3a2f0617c
(svn r962) Fixed a problem with the new order system due to missing '{}' (another place)
2004-12-06 00:03:26 +00:00
Celestar
293d5bffa8
(svn r961) Fixed a problem with the new order system due to missing '{}'
2004-12-05 23:57:08 +00:00
darkvater
c8d83ce557
(svn r960) -Fix: forgotten conversion of orders for the AI (Tron)
2004-12-05 21:30:58 +00:00
darkvater
860a39af2a
(svn r959) -Fix: fix previous typo for workaround of braindead MSVC6 (Tron)
...
-Fix: added debug code to autosave cause it is buggy in multiplayer (does not remember settings; takes them from _opt instead of _new_opt (or vice versa)).
2004-12-05 20:02:49 +00:00
darkvater
78b651c2c9
(svn r957) -Fix: vehicle.c compiler problems for MSVC6 only! (Tron)
2004-12-05 19:50:58 +00:00
tron
7c2448ecea
(svn r955) Replace uint16 for orders with struct Order
...
This adds no functionality, but is a stepping stone for future improvement (like 16bit order indices) and is easier to read.
This changes preserves binary compatibility wrt savegames.
2004-12-05 12:43:04 +00:00
truelight
1de8e294d8
(svn r954) -Fix: [Console] Hook fixes (sign_de)
...
-Add: [Console] Auto sort commands and variables (sign_de)
2004-12-05 12:25:25 +00:00
miham
cef5ac8c8b
(svn r953) Daily langfile updates (automatic)
2004-12-05 11:40:58 +00:00
darkvater
6e49b85703
(svn r952) -A tiny insignificant fix for a toyland industry gfx
...
-Added table\sprites.h to VS.NET project file
2004-12-04 23:43:54 +00:00
bjarni
14a025a6bf
(svn r951) Makefile: fixed missing flag for libpng, which prevented lib detection if SDL was not used
...
Makefile: Combined the OSX specific libpng code with the general one. Now OSX have no special code for libpng
2004-12-04 23:19:31 +00:00
miham
e7ee76dc56
(svn r950) Daily langfile updates (automatic)
2004-12-04 22:29:18 +00:00
bjarni
47713d05e3
(svn r949) Makefile: added DEDICATED flag to allow complilation of dedicated servers without linking to SDL. Request by Jezral
2004-12-04 20:34:59 +00:00
truelight
40121d60cd
(svn r948) -Codechange: clearified my last commit a bit more with some comment in the code
2004-12-04 18:57:42 +00:00
truelight
43e495045c
(svn r947) -Fix: [Network] Desync problem
2004-12-04 18:43:07 +00:00
tron
581302e147
(svn r946) Remove double patch option which crept in during merge
2004-12-04 18:27:08 +00:00
truelight
00168d4660
(svn r945) -Fix: [Network] Terraform callback went wrong in merge
...
-Fix: Some settings went wrong in merge
2004-12-04 18:17:52 +00:00
truelight
39382a16f3
(svn r944) -Updated vc6 project file (Hackykid)
2004-12-04 18:16:20 +00:00
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00
truelight
0434287ef8
(svn r939) -Fix: Fixed compiler errors
2004-12-04 15:02:45 +00:00
tron
e56c3cddd8
(svn r925) Use sound enums
...
Also play the correct sound when a toyland road vehicle breaks down
2004-12-04 09:26:39 +00:00
tron
d036559e0e
(svn r924) Use RailVehInfo() instead of &_rail_vehicle_info[]
2004-12-04 07:41:37 +00:00
tron
aa183e35d8
(svn r923) Forgot s/rail_vehinfo/RailVehInfo/
2004-12-04 00:34:20 +00:00
tron
56dd31f33b
(svn r920) Replace vehicle info macros with inline functions and add asserts to check limits
2004-12-03 21:57:05 +00:00
tron
5149373467
(svn r909) Small cleanup in vehicle.c, this should fix some warnings on 64bit machines
2004-12-03 14:38:02 +00:00
tron
c00258237e
(svn r907) Sprinkle holy ANSI water:
...
- "inline" must before the return type (and after "static")
- Initialise all struct members, not just some of them
- Remove (one) spurious semicolon
2004-12-03 07:43:00 +00:00
miham
b7f0b278fb
(svn r906) Daily langfile updates (automatic)
2004-12-03 05:59:26 +00:00
tron
fdb447ac55
(svn r901) Small step in the process to clean up the DPARAM mess:
...
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest)
- use inline functions instead of macros
- add assert()s to check for buffer overruns
2004-12-02 22:53:07 +00:00
miham
2c88f958ed
(svn r880) Daily langfile updates (automatic)
2004-12-01 21:35:14 +00:00
bjarni
a317cbdc09
(svn r877) Moved bemidi.cpp correctly this time
2004-12-01 19:44:39 +00:00
bjarni
5a458590b8
(svn r876) reverted the accidently cleared bemidi.cpp
2004-12-01 19:42:42 +00:00
bjarni
e9b49ebf8e
(svn r870) BeOS: made the move of bemidi.cpp properly (I hope)
2004-12-01 15:25:18 +00:00
bjarni
c925f452e7
(svn r869) Mac: finally made asserts open the console, so people should be able to see what went wrong even if they opened the game in the GUI
...
deleted the wrongly moved bemidi.cpp
2004-12-01 15:23:05 +00:00
bjarni
2fc6077a68
(svn r862) Cygwin: libdetection now sets the flags properly if no Makefile.config is found
...
Cygwin: workaround: libpng is automatically not used even if present until the Cygwin/libpng problem is solved
2004-12-01 11:50:20 +00:00
miham
ec7586dac3
(svn r857) Daily langfile updates (automatic)
2004-11-29 23:20:07 +00:00
Bjarni
00d6b3609f
(svn r856) Makefile: added the flags CYGWIN and MINGW to libdetection. They were missing in the autodetected makefile.config
2004-11-29 20:26:00 +00:00
bjarni
a580b4c21e
(svn r855) BeOS: moved bemidi to os/beos/ (w-ber)
2004-11-29 20:03:04 +00:00
darkvater
ccd731a2ce
(svn r854) -Fix [1070274] Invisible trains. Weird macros and MSVC optimizing don't always mix. (Tron)
2004-11-29 19:26:24 +00:00
tron
d701668f50
(svn r853) -Feature: Implement improved vehicle loading algorithm
...
It's not FIFO loading, but does the right thing in the common case:
If a vehicle is empty and another vehicle is already loading the same cargo at this station then the vehicle waits.
This is an reworked version of [ 1072211 ] submitted by Hackykid, thanks!
2004-11-29 11:59:09 +00:00
miham
5733ad3e32
(svn r852) Daily langfile updates (automatic)
2004-11-28 22:43:46 +00:00
tron
29cec910fc
(svn r850) Adjust the other language files according to revision 844
2004-11-28 21:37:23 +00:00
tron
9be1dadb04
(svn r847) Add the station type icons to strgen: {TRAIN}, {LORRY}, {BUS}, {PLANE} and {SHIP}
2004-11-28 19:46:24 +00:00
tron
d542f5624a
(svn r844) Fix some typos ([ 1074329 ]) and use a bigger font in the detailed performance rating window
2004-11-28 12:24:48 +00:00
tron
6b9a744b2d
(svn r843) Remove redundant variable assignments and function calls
2004-11-27 21:28:51 +00:00
tron
12d6d679b0
(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
2004-11-27 19:53:53 +00:00
pasky
97c533eb9c
(svn r831) Remove station-specific roadbits magic. Tron already fixed road stations so that they don't give out roadbits in r780.
2004-11-26 22:29:02 +00:00
pasky
0554031514
(svn r830) Move the MP_STATION roadbits guard to GetTownRoadBitsByTile() wrapper of GetRoadBitsByTile(). This should really and for once fix the road-behind-road-station bug.
2004-11-26 22:21:12 +00:00
tron
908adfc191
(svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal
2004-11-26 21:52:18 +00:00
pasky
08e16d966a
(svn r828) Everyone welcome table/sprites.h in trunk - so far not in use besides enum AnimCursors migrated from viewport.h and tiny fragment of enum Sprites migrated from ttd.h (we should slowly convert trunk to use the symbolic names instead of sprite numbers too to reduce the delta to map). Ported from the map branch, where the work was done by Darkvater, Celestar and Tron.
2004-11-26 21:14:42 +00:00
tron
daa599c135
(svn r827) Dye bridge ramps in the matching colours compared to the rest of the bridge
...
This fix was created by Celestar
2004-11-26 21:11:37 +00:00
tron
1c86acd8ba
(svn r826) Seperate all bridge related tables from tunnel_land.h into their own file
2004-11-26 20:29:05 +00:00
tron
7b8bf96c2b
(svn r822) Use a struct instead of pairs of bytes for the string colormap.
...
While here give the string colormap a more canonical name.
2004-11-26 16:55:35 +00:00
dominik
d801ca16a3
(svn r819) Code cleanup: colors for langfile strings are now taken from a color table instead of a sprite
2004-11-26 14:00:57 +00:00
miham
a295166754
(svn r818) Daily langfile updates (automatic)
2004-11-26 07:30:06 +00:00
tron
acbd1801c7
(svn r815) Include strings.h only in the files which need it.
...
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-25 10:47:30 +00:00
miham
908d2471ec
(svn r814) Daily langfile updates (automatic)
2004-11-25 08:11:48 +00:00
tron
b07357373f
(svn r813) Push two tables from vehicle_gui.h into vehicle_gui.c - they were in the binary 48 (!) times.
...
While here change the type for one table from uint16 to StringID.
2004-11-25 06:05:47 +00:00
tron
e35a0b1c44
(svn r803) Switch to ISO 8859-15
...
It has proper support for the euro sign and includes letters which are needed by the Latvian translation (and perhaps others), though the letter sprites are missing.
2004-11-24 22:52:57 +00:00
darkvater
669368cf21
(svn r802) -add latvian to VS.net Project (bociusz)
2004-11-24 20:56:52 +00:00
dominik
372340b731
(svn r801) - re-enabled background highlighting in Newgrf GUI
...
- minor Newgrf GUI fixes and adjustments
2004-11-24 20:08:38 +00:00
tron
3ef3f05288
(svn r800) Check if the data tables for houses have the correct number of elements via compile time asserts
2004-11-24 17:19:26 +00:00
tron
fca55e3741
(svn r793) Merge INLINE -> inline replacement (revision 376)
2004-11-24 13:19:48 +00:00
tron
0ea87b6473
(svn r792) Small cleanup: Kill a goto
2004-11-24 12:47:25 +00:00
bjarni
aceb89fb7d
(svn r788) added a latvian translation (currently contains 0 strings)
2004-11-24 09:10:42 +00:00
tron
e8537f5512
(svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent with its own name and all other DO_* flags.
...
Now it is active-true.
2004-11-23 22:36:11 +00:00
miham
06158be674
(svn r786) Daily langfile updates (automatic)
2004-11-23 20:54:51 +00:00
tron
0b3cceb21d
(svn r785) -Fix: A train can leave and enter the same depot at the same time, then the trai simply got stuck
2004-11-23 20:25:18 +00:00
tron
c5b0ecac4f
(svn r780) Always report a bus/lorry station as unpassable.
...
The current behavior just causes bugs and the pathfinder does the necessary magic to handle stations as destinations and enter them anyway.
This fixes [ 1058809 ]
2004-11-23 18:04:04 +00:00
matthijs
a3cb5499bf
(svn r779) Reverting last commit, svn didn't cancel the commit like I was meaning to tell it.
...
Tron will commit the real bugfix we were working on in a minute (I hope ;-)
2004-11-23 17:46:39 +00:00
matthijs
ca0f5ffe60
(svn r778) -Fix: [ 1064742 ]
2004-11-23 17:16:41 +00:00
pasky
2214a9df5c
(svn r773) When refitting a train engine, refit also all the attached wagons which can be refitted (applicable to DBSetXL, as shown in http://pasky.or.cz/~pasky/dev/openttd/screenshots/wagrefit.png ). This is how TTDPatch does it, pointed out by Bjarni.
2004-11-22 23:05:34 +00:00
pasky
34c89d6896
(svn r772) Whoops, I know. Do not consider pointer to be a boolean value. Sorry 'bout that, sirs.
2004-11-22 22:52:01 +00:00
pasky
f012e15c95
(svn r771) Do not give a file new {struct GRFFile} if it was already loaded once. Eliminates those double entries in the newgrf manager and also some possible memory leaks.
2004-11-22 22:51:19 +00:00
miham
b2e973056a
(svn r770) Daily langfile updates (automatic)
2004-11-22 22:22:03 +00:00
pasky
4beb4ae2bc
(svn r769) Fixed a tiny mistake in the _userstring boundary check. Let's hope I got it right this time.
2004-11-22 21:53:19 +00:00
pasky
bf587e9aac
(svn r768) In the NewGRF manager, show GRF ids as 8-digit hex numbers (that's how they are supposed to look).
2004-11-22 21:48:40 +00:00
pasky
3ee0dee12a
(svn r767) Introduce USERSTRING_LEN (128) and try to make sure we don't overflow it anywhere (as long as we keep USERSTRING_LEN above 7 or so).
2004-11-22 21:41:25 +00:00
darkvater
d4b723a7c9
(svn r766) -Fix: compilation problems on windows
...
-There is nothing wrong with uses spacebars in the code; they are not a luxury item
-Please use standard rowsizes of 14px and less magic numbers (highlighted items drawn in white as all other windows do)
-TYPEDEF structs (this goes to pasky!!)
2004-11-22 20:49:42 +00:00
tron
d51887fbed
(svn r764) Enumerate the houses only one per town can exist and use the enums instead of magic numbers to check for these
2004-11-22 18:42:03 +00:00
tron
8a3d7cce1c
(svn r760) Replace some bit-juggling with bit fields
2004-11-22 11:01:30 +00:00
tron
a744e8e375
(svn r757) Repair the damage inflicted on english.txt in revision 745
2004-11-22 10:26:59 +00:00
tron
40a04816a4
(svn r756) Demystify and explain some piece of code regarding which house sprite to draw
2004-11-22 10:09:37 +00:00
miham
6d81770985
(svn r746) Daily langfile updates (automatic)
2004-11-21 23:20:11 +00:00
dominik
4e41cf9e2b
(svn r745) Added newgrf GUI (in options menu)\nThe interface currently only displays the installed grf sets, you can't (de)activate them through the gui yet
2004-11-21 22:44:13 +00:00
miham
485102814f
(svn r739) Daily langfile updates (automatic)
2004-11-21 15:18:41 +00:00
tron
17cfda1a98
(svn r727) The langauge files depend on english.txt, not strings.h
2004-11-21 12:21:23 +00:00
tron
7fea17457d
(svn r726) The OpenTTD binary doesn't depend on the language files, so move this dependency to the all target
2004-11-21 12:18:52 +00:00
tron
2a3969695b
(svn r725) Fix language file dependencies
2004-11-21 11:34:07 +00:00
tron
57adc97733
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
...
This especially enables houses to accept passengers, mail, goods AND food.
Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them.
Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided.
This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon.
2004-11-21 10:49:40 +00:00
tron
75d002690a
(svn r723) Increase size of dparam so more parameters can be passed to string output
2004-11-21 10:42:01 +00:00
miham
4bba1273aa
(svn r721) Daily langfile updates (automatic)
2004-11-21 08:22:57 +00:00
pasky
bf6dace925
(svn r703) Attempt to improve the town growth algorithm - now it scales over 76 houses, is slightly exponential and travels further for larger towns.
2004-11-20 11:57:45 +00:00
truelight
32f69dab0e
(svn r702) -Fix: Buffer overflow in music/sound/video-driver-parameter (Oskar_)
2004-11-20 11:15:31 +00:00
pasky
578bde9aae
(svn r698) Merge a town growth fix from TTDPatch - in arctic and desert climate, require food (and possibly water) only if the population is more than 90, so that the town gets chance to actually accept it. (By Marcin?)
2004-11-20 02:36:10 +00:00
pasky
e1c1036648
(svn r697) Fix the town road removal crash _still_ present there.
2004-11-20 02:25:31 +00:00
pasky
5650257c0c
(svn r696) Do not consider a road station as street when growing the town.
2004-11-20 01:49:42 +00:00
pasky
7a8fb5d2fd
(svn r694) Make the town sometimes build streets on slopes.
2004-11-20 01:08:41 +00:00
pasky
d9096f9ea4
(svn r688) Fix eol-style (hopefully).
2004-11-19 22:59:31 +00:00
pasky
989fd10d06
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
2004-11-19 22:53:18 +00:00
pasky
ad068622fb
(svn r681) Support for VERBOSE configuration variable which shows the commands actually used for compilation.
2004-11-19 22:29:30 +00:00
pasky
0f7e48ead2
(svn r679) Clarify bp.sprite assignment in GfxMainBlitter(). Pointed out by Oskar.
2004-11-19 21:57:02 +00:00
darkvater
249438be88
(svn r677) -newgrf: Fix some custom electric trains appearing in maglev depots (pasky).
2004-11-19 19:13:32 +00:00
darkvater
d51daeab1a
(svn r669) -Add missing language files to VS.NET and VS6 project files (bociusz).
2004-11-17 21:57:00 +00:00
tron
3f91aff573
(svn r668) -Fix: [ 1068269 ]
...
- Number of passangers and mail in exclusive test offer window is swapped
- Wrong data caused by double index shift is displayed in exclusive test offer window
2004-11-17 21:36:04 +00:00
tron
83ffb9c7fa
(svn r667) Fix bug in rendering stations from savegames
...
Also don't pitch custom station sprites by railtype
(pasky)
2004-11-17 21:11:16 +00:00
darkvater
258ffc1382
(svn r666) -Added missing sprite.c for VS6 project file
2004-11-17 20:30:34 +00:00
dominik
8d91459f37
(svn r665) code fixes for newgrf.c/newgrf.h
2004-11-17 20:08:13 +00:00
tron
9dd7c284f0
(svn r664) Fix warning on MorphOS
2004-11-17 19:29:24 +00:00
dominik
31184f974e
(svn r663) [newgrf] sorry, forgot newgrf.h
2004-11-17 18:53:49 +00:00
dominik
4612dcdb48
(svn r662) [newgrf] Moved grfspecial.c to newgrf.c/newgrf.h
2004-11-17 18:49:55 +00:00
tron
0f24c74b14
(svn r661) Make strgen print its own revision instead of the repo's.
...
This also fixes the annoying unecessary language file recompiles.
2004-11-17 18:38:07 +00:00
tron
d753aeea58
(svn r660) Fix typo introduced in r655
2004-11-17 18:22:21 +00:00
tron
3a7abc2a35
(svn r659) Support for cutomized TTDPatch-style new stations (no selector GUI yet) (pasky)
2004-11-17 18:03:33 +00:00
tron
c4e9896851
(svn r658) Ignore callbackish randomized spritegroups - they would just crash us (pasky)
2004-11-17 17:15:36 +00:00
celestar
155f20329b
(svn r657) Do not touch 0x8000 bit in sprite index for custom waypoints. (pasky)
2004-11-17 15:14:18 +00:00
tron
87adce3ca0
(svn r655) Add the necessary bits to make building on SunOS/Solaris work
2004-11-17 09:07:29 +00:00
tron
13f0b6c0cf
(svn r654) Hopefully complete support for randomized variational spritegroups (i.e. the cars transporter in DBSetXL gets different cars each time) (pasky)
2004-11-17 08:52:47 +00:00
tron
0086bb9d06
(svn r653) Prevent SDL parachute from catching SIGSEGV and SIGFPE (pasky)
2004-11-17 08:11:24 +00:00
tron
2760ed80fd
(svn r652) Factorise special case for MorphOS regarding signal() handling
2004-11-17 07:57:28 +00:00
miham
4fb8338fa6
(svn r651) LoadNewGrfFile() now doesn't care about num_sprites and just loads whatever is
...
available. Fixes George's long vehicles. (pasky)
2004-11-17 02:24:21 +00:00
miham
dd90693a4c
(svn r650) Pasky fix #4 . (Misc fixes to get USSet going)
2004-11-17 02:01:12 +00:00
miham
46dddda22f
(svn r649) Support for custom rail vehicle refit bitmasks. (pasky)
2004-11-17 01:09:15 +00:00
miham
e2f3634db3
(svn r648) Dummy skip-support for two new station properties. Rename FOR_EACH_ENGINE() to more appropriate FOR_EACH_OBJECT(). (pasky)
2004-11-17 01:00:04 +00:00
miham
86d19cb577
(svn r647) Cleanup custom station classes handling. (pasky)
2004-11-17 00:52:54 +00:00
darkvater
cd6cb84889
(svn r646) -Fix: braindead case-sensitive file extension filter replaced with a case-INsensitive one (joint effort of Bjarni and Darkvater).
2004-11-16 23:51:38 +00:00
darkvater
60184e1495
(svn r645) -Feature: Finally support for TTDLX games on Big Endian machines such as Macintosh and MorphOS; thanks for testing Bjarni :)
...
-Added turkish.txt to lang-project and screenshot.h to ttd-project
2004-11-16 23:26:15 +00:00
tron
cc428ef6cf
(svn r637) Add keycode for the key to open the console on BeOS
2004-11-16 16:13:54 +00:00
tron
69159b6e52
(svn r636) Set svn:eol-style for screenshot.h
2004-11-16 11:40:32 +00:00
tron
b65bda506c
(svn r635) Fix choosing a spritegroup from deterministic variational spritegroups if there is no structure to search (i.e. in purchase lists) (pasky)
2004-11-15 20:52:11 +00:00
miham
61103119fb
(svn r634) Added turkish translation (iso8859-1)
2004-11-15 20:45:25 +00:00
miham
f1a3b32dc4
(svn r633) Daily langfile updates (automatic)
2004-11-15 20:44:39 +00:00
tron
450c669eb2
(svn r631) Merge r440, r444, r485, r630 to trunk:
...
r440
Move screenshot function declarations to new file screenshot.h
Clean up screenshot.c a bit, mostly whitespace, alloca() -> malloc() and checking return values
r485
Remove unused field from struct ScreenshotFormat
2004-11-15 19:25:59 +00:00
tron
fb4b5fa841
(svn r628) Merge r442 to trunk:
...
In bemidi.cpp
- Whitespace cleanup
- Simplify one if ()
2004-11-15 12:15:03 +00:00
tron
6da3e44fc7
(svn r627) Merge r439 to trunk:
...
Cleaned up whitespace in namegen.c
2004-11-15 12:11:43 +00:00
tron
a0b4161a32
(svn r626) Merge r438 to trunk:
...
Some whitespace and magic number cleanup (in news_gui)
2004-11-15 12:05:01 +00:00
tron
2f35fea097
(svn r625) Almost complete support for deterministic variational vehicle spritegroups. (pasky)
2004-11-15 11:54:35 +00:00
tron
57c472e093
(svn r624) Merge r377 to trunk:
...
Remove the memmove special case for MSVC
According to the MSDN it was just plain wrong and memmove was directly used in some places anyway
2004-11-15 10:31:48 +00:00
tron
01e88bb61d
(svn r623) -Feature: [ 1066504 ] Pause key pauses the game
2004-11-15 10:04:57 +00:00
tron
95a3e4fe1f
(svn r621) Merge r450 to trunk:
...
Cleanups and #if 0 some unused debug code
2004-11-15 09:05:06 +00:00
miham
747d0fcca9
(svn r620) Daily langfile updates (automatic)
2004-11-15 08:11:04 +00:00
tron
5a07c9bd71
(svn r619) Add the necessary bits to make building under BeOS using GNU Make work
2004-11-15 07:53:09 +00:00
darkvater
4852474343
(svn r617) -newgrf: Support for parameter 0x8E (train Y-pitch in info windows) both setting and testing. This should fix displaced wagons in DBSetXL as reported by DarkVater. (pasky)
2004-11-14 23:36:19 +00:00
darkvater
afca207cf0
(svn r616) -newgrf: Fixed crashing when trying to resolve references to unknown or callback result spritegroups in variational spritegroup handler of NewSpriteGroup() (pasky).
2004-11-14 23:14:44 +00:00
bjarni
5914888ad6
(svn r615) Fix the same bug in ParamSet action loading, pointer out by Bjarni too. (pasky)
2004-11-14 22:31:57 +00:00
dominik
d99b89ab29
(svn r614) [newgrf] Some minor code fixes
2004-11-14 22:30:46 +00:00
bjarni
363a92bd43
(svn r613) Fix bug in GRFInhibit action loading, pointed out by Bjarni. (pasky)
2004-11-14 22:25:21 +00:00
dominik
fb64b4e499
(svn r612) [newgrf] Fix: custom waypoints on monorail/maglev are displayed correctly
2004-11-14 22:10:08 +00:00
darkvater
051e094921
(svn r611) -newgrf: Change GetCustomEngineSprite() calling convention (invisible to users of GetCustomVehicle*() wrappers). Needed for deterministic spritegroups support (pasky).
2004-11-14 20:53:34 +00:00
darkvater
ec434b208e
(svn r610) -newgrf: Support for some basic deterministical spritegroups regarding stations. Waypoints look changes based on year now :^) (pasky).
2004-11-14 20:50:38 +00:00
dominik
c2193ce1a8
(svn r609) Fixed choose waypoints dialogs, it works without assertion failures and with custom waypoint #0 selectable now. (pasky)
2004-11-14 20:25:07 +00:00
dominik
0bcc9b7573
(svn r608) [newgrf] enabled possibility to build default waypoint when custom waypoints are enabled
2004-11-14 20:02:43 +00:00
tron
249a170ace
(svn r607) -Patch: [ 985102 ] static cleanup
...
Thanks to lvoge
2004-11-14 19:44:06 +00:00
dominik
200d3fdbe8
(svn r606) -newgrf: Fixed waypoint scrollbar
2004-11-14 18:20:40 +00:00
darkvater
183c33931d
(svn r605) -newgrf: Framework for supporting variational spritegroups . Deterministic only at the moment, but random ones support shouldn't be that difficult now It doesn't do anything, but makes these actions actually possible (pasky).
2004-11-14 18:18:28 +00:00
tron
a348f74c65
(svn r604) -Fix: [ 999669 ] Wrong trees (toyland's) in sub-tropical landscape style
...
Tree generation code sometimes set the non-existent growth state 7
This could also become manifest in snow covered trees below the swnow line in arctic climate and similar effects
2004-11-14 17:16:26 +00:00
darkvater
ea48b0d05c
(svn r603) -newgrf: Stupid TortoiseSVN converted the file to DOS newlines. Bah
2004-11-14 16:45:38 +00:00
darkvater
e656a91736
(svn r602) -newgrf: Move DrawTileSeqStruct & co and struct SpriteGroup to sprite.h (pasky)
2004-11-14 16:42:08 +00:00
darkvater
a415b8ecce
(svn r601) -newgrf: blaat
2004-11-14 16:13:43 +00:00
darkvater
5fcd71cf28
(svn r600) -newgrf: Relocation offset for custom station sprites is now stored separately, making it possible to show different sprites in waypoint selection dialog (pasky).
2004-11-14 16:11:48 +00:00
tron
2b5b1f4e06
(svn r594) -Fix/Feature: [ 1066121 ] Resetting file name after deleting a file
...
Thanks to dannys9 for the patch
2004-11-14 15:11:25 +00:00
darkvater
80f787e60a
(svn r593) -newgrf: Support for two more TTD(Patch) version relate) SkipIf in-game variables (pasky).
2004-11-14 14:54:10 +00:00
darkvater
5847317526
(svn r592) -newgrf: Dynamically allocate global custom station IDs (pasky).
2004-11-14 14:53:15 +00:00
darkvater
ccc496ba2c
(svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), not just the rendering data. This will be needed for variational stationspecs (pasky).
2004-11-14 14:10:03 +00:00
darkvater
5663926aaf
(svn r590) -newgrf: Instead of a bunch of statinfo arrays, use station-array of struct StationSpec-s (pasky).
2004-11-14 13:59:11 +00:00
darkvater
770eb4c8c3
(svn r589) -newgrf: Rename spritesset to spritegroups (pasky).
2004-11-14 13:45:38 +00:00
darkvater
552689b7fe
(svn r588) -newgrf: Silent ignore those stupid one-byte zero special sprites (dbsetw.grf is crawling with them) (pasky).
2004-11-14 13:11:38 +00:00
darkvater
397cc50f61
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
2004-11-14 13:07:07 +00:00
darkvater
8946e92468
(svn r586) -Fix: [1066114] Code error in win32.c Thanks Shai
...
-Fix: ttd.vcproj change to hard-set compilation as C, as well as adding WITH_SDL to debug mode. If you don't have SDL just remove that.
2004-11-14 12:37:23 +00:00
darkvater
989289fadd
(svn r585) -newgrf: GUI for selecting custom waypoint graphics to use. Patch by dominik81 and pasky.
2004-11-14 11:04:59 +00:00
darkvater
4f6fa3b468
(svn r584) -newgrf: Increase chance to get a TTDPatch savegame using custom GRF files loaded (pasky)
2004-11-14 10:18:15 +00:00
darkvater
a9a7957eaa
(svn r583) -newgrf: Hopefully prevent GRF files introducing new bridges or townhouses to crash the game (pasky).
2004-11-14 10:03:21 +00:00
tron
2f56162f35
(svn r582) -Fix: [ 1034318 ] place sign and blue message box
...
A name change wasn't possible while an always-on-top window (like news) has been visible
2004-11-14 09:31:39 +00:00
celestar
eb50427670
(svn r581) -newgrf: Basic support for new stations - only waypoints supported now and only
...
the first custom one can be placed (no selector GUI, coming soon). This
also moves some global variables to {struct GRFFile} and reorders which
actions are processed in what stage, to get it all working together --
(pasky)
2004-11-14 09:07:15 +00:00
tron
a9a852a4d6
(svn r580) Fix latent bug in BringWindowToFrontByID() - a wrong pointer was returned
2004-11-14 08:15:50 +00:00
tron
37cbae0370
(svn r579) Remove now unused function memswap()
2004-11-14 08:11:57 +00:00
tron
84d1041edf
(svn r578) Simplify BringWindowToFront()
2004-11-14 08:11:05 +00:00
darkvater
7a2a973b48
(svn r577) -newgrf: fixed some typos of last commit (airports were looking weird)
2004-11-14 01:50:15 +00:00
darkvater
7930faace9
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
2004-11-14 01:25:05 +00:00
miham
e9ef930155
(svn r575) Daily langfile updates (automatic)
2004-11-14 00:19:48 +00:00
darkvater
1f12dee3a0
(svn r572) -newgrf: Support for custom (newGRF-yielded) refit masks for trains and aircrafts (pasky).
2004-11-13 21:42:35 +00:00
darkvater
0a2f28c2f2
(svn r570) -newgrf: Support for custom aircrafts via GRF files. Planeset seems to work :). Also use aircraft_vehinfo() instead of the old tables (pasky).
2004-11-13 20:37:57 +00:00
tron
e260aa3870
(svn r569) Fix type mismatch
2004-11-13 18:15:03 +00:00
celestar
e31f37d578
(svn r568) -newgrf: Make @wagover bool, simplifying stuff. (pasky)
...
-newgrf: "More debugging and severity levels consolidation. (pasky)
2004-11-13 18:08:45 +00:00
celestar
20e9a8061d
(svn r567) -newgrf: Support for road vehicles customization (seems to work at
...
least with tropicset). (pasky)
2004-11-13 18:01:33 +00:00
miham
dae7b4ae21
(svn r566) Daily langfile updates (automatic)
2004-11-13 17:10:41 +00:00
darkvater
7690093b4c
(svn r565) -newgrf: fixed double work of RoadVehicleInfo[]; added AircraftVehicleInfo[] as well. table/engines.h is now the same as in the _map branch.
2004-11-13 16:28:50 +00:00
tron
b5e1240a8a
(svn r564) Simplify scroll logic and correct one erroneous use of memcpy()
2004-11-13 16:10:25 +00:00
celestar
b8327e0457
(svn r562) newgrf: Merge most of the road vehicle info to a single
...
road_vehicle_info table, like it already is for trains and ships. Needed
for GRF custom override support. (pasky)
2004-11-13 15:15:41 +00:00
celestar
6db750373a
(svn r561) -newgrf: killed some of the magic numbers in the code (pasky)
2004-11-13 12:38:38 +00:00
celestar
04748217d1
(svn r560) -newgrf: General cleanup of the code (pasky & octo)
2004-11-13 12:21:32 +00:00
tron
3df0ff7854
(svn r559) Minor simplification
2004-11-13 11:08:50 +00:00
tron
53116247c3
(svn r558) -Fix: [ 1065247 ] Windows can be placed behind toolbar
...
While here make clamping against the screen border a bit nicer
2004-11-13 10:53:42 +00:00
darkvater
22f627c8e1
(svn r557) -newgrf: Rename all 'superset' tokens to 'group' and some other small renamings (pasky and octo).
2004-11-12 23:59:51 +00:00
darkvater
76341a9173
(svn r556) -newgrf: Some seemingly proper support for loading stages of grf files (octo & pasky).
2004-11-12 23:26:02 +00:00
darkvater
2ab4669251
(svn r555) -newgrf: Preliminary support for action 0xE. Inhibit another GRF file by ID. It won't really work until we get stages support (pasky & octo).
2004-11-12 22:39:00 +00:00
darkvater
27b48faad2
(svn r554) -newgrf: Keep track of GRF files. Remember them all in a linked list, this already enables tests for an already loaded GRF file in SkipIf(). Patch by octo, heavily re-hammered by pasky
2004-11-12 22:28:19 +00:00
darkvater
015cb74dd9
(svn r553) -newgrf: Special routine for loading newgrf files. LoadNewGrfFile() introduced; will get more handy when loading stages will be introduced (octo and pasky).
2004-11-12 21:51:34 +00:00
darkvater
7accdb9003
(svn r552) -newgrf: Include bits forgotten when merging octo's ReplaceSprites support - it would replace even special sprites in the way now. (pasky)
2004-11-12 21:33:18 +00:00
darkvater
2aae43a848
(svn r551) -newgrf: Preliminary support for TTDPatch flags checking (we just pretend that a bunch of things are on and the rest is off and that's it). Patch by octo, small cleanup by pasky.
2004-11-12 19:03:37 +00:00
darkvater
c53cf38ffd
(svn r550) -newgrf: Support for action 0xd (change a parameter (sorta variable for the GRF scripts)). Based on patch by octo, heavy changes by pasky.
2004-11-12 18:57:46 +00:00
darkvater
16f8a7b2d2
(svn r549) -newgrf: Support for action 0xd (change a parameter (sorta variable for the GRF scripts)). Based on patch by octo, heavy changes by pasky.
2004-11-12 18:47:19 +00:00
darkvater
a2869639b2
(svn r548) -newgrf: minor style changes, and application of boolean type
2004-11-12 18:43:12 +00:00
darkvater
fd80b53f39
(svn r547) -newgrf: Enhanced support for action 0x7 and 0x9 (skips). Killer mixture mixed from octo's patch and pasky's old patch (pasky & octo).
2004-11-12 17:27:30 +00:00
darkvater
e7441c39e3
(svn r546) -newgrf: Use GetCustomVehicleIcon() for fetching sprites for vehicle selection dialogs. (Idea by octo, done by pasky).
2004-11-12 17:16:13 +00:00
celestar
acaff32984
(svn r545) -newgrf: repaired indendation (pasky & octo)
2004-11-12 15:36:49 +00:00
celestar
aac4fbc220
(svn r544) -newgrf: codechange for better handling (pasky and octo__)
2004-11-12 15:15:56 +00:00
tron
5d6c0a8220
(svn r543) -Fix: [ 1064742 ] Editor Map-Menu wrong String
...
The fix is a bit ugly, but this is due to limitations in the dropdown menu handling (the strings have to be contiguous)
2004-11-11 23:23:42 +00:00
tron
65058d0d57
(svn r542) -Fix: Display correct rail type in "build railway station" window
...
Thanks, ln--
2004-11-11 23:10:22 +00:00
tron
7a97e54559
(svn r541) Make windows even snappier! ^^
...
Thanks to nzhook, who also proposed the original patch.
2004-11-11 21:20:15 +00:00
tron
95fdf39bca
(svn r540) Tell subversion to ignore some more files
2004-11-11 17:53:11 +00:00
tron
315006a28e
(svn r539) Set svn:eol-style property
2004-11-11 17:17:52 +00:00
tron
872f49ae8a
(svn r538) -Feature: Windows snap at each other
...
This is inspired by [1063636].
2004-11-10 21:14:16 +00:00
tron
603618a75b
(svn r532) Disable date change buttons in scenario editor if date limit is reached.
...
Note: It's a /bit/ ugly, need to find a cleaner way
While I'm here enlarge the start date window to 1920-2000 (was 1950-1975).
2004-11-08 22:21:14 +00:00
bjarni
b78bbf80bf
(svn r531) Makefile: made asserts enabled by default
...
RELEASE disables asserts unless ENABLE_ASSERTS(not in makefile.config) is set
makefile.config version 3
2004-11-08 21:24:48 +00:00
bjarni
72880f2dad
(svn r530) Makefile: added ability to switch asserts on and off
...
Updated makefile.config to versiontag 2 for autoupdating purposes
2004-11-08 21:11:52 +00:00
tron
2cf5b77d0b
(svn r528) Minor fixes in german.txt
2004-11-08 20:44:10 +00:00
tron
37e199cd2b
(svn r526) -Fix: [1035303] bug about lowering tracks built on slopes
...
While here make sure that the failing tile gets a red error marker
2004-11-08 09:11:55 +00:00
bjarni
21b1607fb5
(svn r520) Lang: added empty Russian translation
2004-11-07 14:15:38 +00:00
miham
f1d552c5b6
(svn r519) Daily langfile diff
2004-11-07 08:41:38 +00:00
tron
6909bba290
(svn r518) Merge extmidi.c r441 to trunk:
...
- Whitespace cleanup
- Use execlp() with relative path instead of execl() with absolute path
2004-11-06 23:24:59 +00:00
tron
476dfd9f12
(svn r517) -Fix: [1033947] Wrong mapping between music titles and songs
2004-11-06 23:20:12 +00:00
celestar
9c1aa0b75f
(svn r516) Solved a little bug with the order checker.
2004-11-06 15:13:44 +00:00
darkvater
92d1dd153f
(svn r515) -Fix: [1050993] Incorrect Tooltip in Road Vehicle List. Already fixed in /map branch
2004-11-06 12:02:43 +00:00
tron
0a422b06a5
(svn r514) -Fix: [1053397] Refit Train Window Stays Open
2004-11-06 09:24:28 +00:00
tron
d641175e3c
(svn r513) Merge revisions 402, 416, 417, 478, 479, 511, 512 from map to trunk
...
This includes 2 fixes
-Fix: [1048596] Monorail and Maglev sounds are swapped (r511)
-Add special case to load the jackhammer sound (r478)
The rest are cleanups und enumeration to make merging possible/easier
2004-11-05 23:12:33 +00:00
tron
8348068f5f
(svn r505) Tell svn to ignore some files and remove one stale entry
2004-11-04 18:41:39 +00:00
tron
f2a858c6a5
(svn r504) The Bourne Shell ist spelled 'sh', not 'bash'; even if there is a 'bash', on most systems it's not in /bin
...
Typical Linuxism... /:
2004-11-03 21:50:21 +00:00
tron
f7485d586e
(svn r501) -Fix: Vehicles slow down under bridge if the track is on a foundation
2004-11-03 11:35:29 +00:00
tron
fe1ccdf834
(svn r500) -Fix: Some bridge part isn't displayed transparent in transparent mode
...
-Fix: If bridge has no pillars cursor arrow is displayed in transparent mode
2004-11-03 11:06:21 +00:00
tron
2eb00c0bd3
(svn r499) Merge r498 to trunk:
...
Disabled buttons flicker no more
This solves bug report 991101
2004-11-01 15:08:40 +00:00
miham
f6690500bf
(svn r472) Daily langfile updates -- 79 strings missing
2004-10-26 20:56:51 +00:00
miham
49d0f082f8
(svn r468) Daily langfile updates -- 88 strings missing
2004-10-25 08:37:01 +00:00
miham
9947627df9
(svn r461) Daily langfile updates -- Minor language tweaks
2004-10-20 21:08:39 +00:00
miham
034b0b5aef
(svn r418) Daily langfile updates -- Portuguese language finished
2004-10-10 12:06:19 +00:00
miham
1fd2edf29a
(svn r407) Daily langfile updates (automatic)
2004-10-09 07:12:08 +00:00
miham
88e3ef36a4
(svn r399) Daily langfile updates (automatic)
2004-10-06 21:56:44 +00:00
miham
385da141e6
(svn r396) Daily langfile updates (automatic)
2004-10-06 16:22:57 +00:00
miham
98b60a605f
(svn r384) Daily langfile update -- 102/1 (3007/3) missing S/L
2004-10-05 14:38:15 +00:00
miham
9c3b9fd40d
(svn r360) Daily langfile update -- Added portuguese translation + danish fixes by Bjarni (100+2 / 1)
2004-10-02 19:41:06 +00:00
miham
884fd51b68
(svn r341) Daily langfile update -- 102 strings missing for galician
2004-09-30 22:11:28 +00:00
miham
af3348fe94
(svn r339) Daily langfile update -- 104 strings missing for 2 finished languages
2004-09-30 14:26:35 +00:00
miham
43ca0548da
(svn r334) Daily langfile update -- 104 strings missing for 2 finished languages
2004-09-28 22:02:23 +00:00
dominik
a99ac0d057
(svn r329) Fix: [ 1035066 ] 'Allow goto depot' turned off, no checkpoints in orders
2004-09-27 14:30:17 +00:00
darkvater
edf841fb6f
(svn r328) -Fix: remove some unlogical alloca()s (Tron)
2004-09-27 12:36:59 +00:00
miham
0dbe38fba7
(svn r327) Daily langfile update -- 112 strings missing for 3 finished languages
2004-09-26 21:35:16 +00:00
miham
35c13ef965
(svn r322) Daily langfile update -- 1683 strings missing for 5 languages
2004-09-26 08:01:08 +00:00
truelight
12c91671bf
(svn r321) -Fix: crash when making png screenshot with odd resolution (Tron)
...
-Fix: unable to select other screenshot format in Game Option
2004-09-25 18:30:19 +00:00
truelight
3dc8dcf312
(svn r320) -Fix: some last _current_player fixes
2004-09-25 17:37:32 +00:00
truelight
75a54521e8
(svn r319) -Fix: [ 1029064 ] Building a station acted weird in some rare situations
2004-09-25 13:58:27 +00:00
miham
773737930a
(svn r318) Daily langfile update -- 1895 strings missing for 6 languages
2004-09-25 10:24:11 +00:00
miham
4449917a7c
(svn r317) Daily langfile update -- 1952 strings missing for 9 languages
2004-09-24 07:53:21 +00:00
darkvater
67f385ded8
(svn r316) -Fix: not +7 (Tron)
2004-09-23 21:44:36 +00:00
darkvater
cee5cd6cc7
(svn r315) -Fix: starting with -r option allows all resolutions (including 666x666) (t r o n)
2004-09-23 21:39:55 +00:00
darkvater
36f18e7f40
(svn r314) -Fix: [982611] Pathfinding bug; train likes the roundabout. If train needs servicing it will now look 16 tiles along the track instead of 12 tiles manhattan style (blathijs)
2004-09-23 21:20:38 +00:00
darkvater
198f841c7e
(svn r313) -Feature/Fix: directories in *nix are now sorted alphabetically in ascending order (Tron).
2004-09-23 21:16:23 +00:00
darkvater
f3758d133a
(svn r312) -Fix: [926105] ctrl + d bug. Longest outstanding bug has been fixed \o/ 2004-03-30 (Tron)
...
-Fix: [1030393] some screensizes crashes OTTD. Fix in general bug that only allows resolutions which were multiple of 8 in width and height. Also use closest possible resolution in fullscreen if window size is not a valid resolution (Tron)
2004-09-23 21:14:20 +00:00
bjarni
d72abf6c3e
(svn r311) Added incomplete Icelandic translation (Hinrik)
...
Mac: made track_starter executable by default. Needed for midi player
2004-09-23 20:12:51 +00:00
miham
408a27a64e
(svn r310) Added catalan translation & daily langfile update -- 551 strings missing for 16 languages
2004-09-22 11:16:44 +00:00
miham
db516f667e
(svn r309) Fixed spanish translation
2004-09-22 09:34:59 +00:00
dominik
f7fee73752
(svn r308) Added debug hotkey 'caps lock' for sdl builds as well
2004-09-22 07:40:41 +00:00
darkvater
cd01b3890a
(svn r307) -Fix: Several potential buffer-overflow fixes, and removal of 'magic-numbers' in favour of constants. (Tron)
2004-09-21 21:40:59 +00:00
darkvater
475ef74ab7
(svn r306) -Fix: [985439] un-owned rail. Trains could cross competitor's tracks if there was a road-crossing over it.
2004-09-21 21:28:42 +00:00
bjarni
93d9afca4b
(svn r305) made the shellscripts executable, so the user do not have to do this manually
2004-09-21 21:19:08 +00:00
darkvater
493df26058
(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame.
2004-09-21 20:56:49 +00:00
dominik
0ba58f25a4
(svn r303) Fix: [ 1022227 ] Ships could unload cargo at stations without docks
2004-09-20 19:09:06 +00:00
miham
807da4e722
(svn r302) Added initial spanish translation
2004-09-20 14:49:53 +00:00
dominik
be726e5ec4
(svn r301) Fix: game options (like drive side) are not taken from the scenario when using 'new game' command
2004-09-19 23:05:09 +00:00
dominik
e0d671ab5f
(svn r300) Fix: order checker now correctly detects station with invalid facilities
2004-09-19 21:44:01 +00:00
miham
72bd3bd170
(svn r299) Daily langfile update -- 209 changed finnish strings
2004-09-19 20:57:31 +00:00
dominik
eb445b5189
(svn r298) Fix: Engines from other climates do not appear any more when never_expire_vehicles is enabled
2004-09-19 19:56:40 +00:00
dominik
a38e2d046a
(svn r297) Fix (SDL): Added a confirmation dialog when quitting the game
2004-09-19 18:23:11 +00:00
miham
6cad1071c8
(svn r296) Daily langfile update. -- 519 strings missing for 3 languages
2004-09-19 16:55:09 +00:00
darkvater
e2c1370d60
(svn r295) -Fix: Rewrite and fix of console stuff, including marking (XXX) of areas that require further investigation (Tron)
...
-Note: booby trapped some suspicous assignments (Tron)
2004-09-19 15:24:45 +00:00
darkvater
089a2a7847
(svn r294) -Fix: autorail always builds rail, instead of occasional rail removal (on pressing hotkey after pressing 'bulldozer')
...
-Fix: network fixes (Tron)
-Some textfile changes, mainly URL's
2004-09-18 16:40:06 +00:00
darkvater
b7fd924806
(svn r293) -Feature: Windows now shows (available) revision, release information in title bar
2004-09-18 16:36:14 +00:00
darkvater
c62f670bca
(svn r292) -Fix: [1030275] 'Service at' orders ignored after 2090. After 2090 year is reset to 1. Jan 2090, so most of the time, last service was in the future and no service ensured.
2004-09-18 16:31:31 +00:00
bjarni
d1a88cbbca
(svn r291) Minor fix to english.txt
...
added debian support (blathijs)
improved make install (blathijs)
2004-09-18 16:29:12 +00:00
miham
f5a50c0007
(svn r290) Daily langfile update. -- 519 strings missing for 3 languages
2004-09-17 21:29:24 +00:00
dominik
894bb262ad
(svn r289) Fix: Checkpoints on snow have correct ground now
2004-09-17 20:56:28 +00:00
dominik
ebc18e3957
(svn r288) Fix: new checkpoint graphics now also work for monorail/maglev
2004-09-17 20:49:47 +00:00
dominik
da80dabe6b
(svn r287) Sorry, another mistake
2004-09-17 20:34:51 +00:00
dominik
431363908e
(svn r286) Sorry, little memalloc problem
2004-09-17 20:22:31 +00:00
dominik
7e882e8fa3
(svn r285) Fix: networkc.tmp will be created in user's homedir (Loki|muh)
2004-09-17 20:08:35 +00:00
dominik
9d1bf52ce3
(svn r284) Fix: on opening the saveload dialog the game pauses again in single player games
2004-09-17 17:53:34 +00:00
dominik
345003d49f
(svn r283) New checkpoint graphics (drawn by Eobet and George)
2004-09-17 17:09:00 +00:00
signde
f7eccfc6fe
(svn r282) -Fix: decode params change accidently commited
2004-09-17 16:59:03 +00:00
signde
e049bd9b2b
(svn r281) -Fix: some endian issues fixed in network code
2004-09-17 16:35:56 +00:00
signde
f7cfd47261
(svn r280) -Fix: ^M removement in console.c
2004-09-17 09:51:44 +00:00
signde
7693c58e28
(svn r279) -Feature: [WIN32] Console now allows to paste data from the clipboard [ctrl + v]
2004-09-17 06:06:47 +00:00
miham
78b02129c1
(svn r278) Daily langfile update. -- 546 string(s) missing for 5 languages
2004-09-17 06:02:27 +00:00
signde
0e08a8f61c
(svn r277) -Fix: removed playerseeds again until it is stable
2004-09-16 18:03:29 +00:00
bjarni
5b145f4d7c
(svn r276) Lang: American fixes by Pipian and removed Unfinished from Dutch :D
2004-09-16 17:27:59 +00:00
signde
dae15e81d8
(svn r275) -Fix: Client accidently marked as unready when sending framesync packets. [this caused occasional timeouts]
...
-Codechange: now all debug messages for network games show the frame_counter [better debugging]
2004-09-16 17:02:19 +00:00
bjarni
e63f6efaef
(svn r274) Mac: restored extmusic to be default, which were accidently turned off by a windows music fix
2004-09-16 16:44:36 +00:00
darkvater
11545f1c4d
(svn r273) -Fix: sorry, wrongly fixed
2004-09-16 15:21:24 +00:00
darkvater
1cfc877088
(svn r272) -Fix: industries are once again generated on a new map
2004-09-16 15:15:04 +00:00
dominik
21b905e963
(svn r271) another town name confusion fix
2004-09-16 10:41:56 +00:00
dominik
19533f8992
(svn r270) Fix: [ 1028851 ] automatic and unwanted city renaming
2004-09-16 10:07:52 +00:00
miham
09fcc36c9c
(svn r269) Daily lf upd #1 . -- <1000 strings missing from ? languages
2004-09-16 07:49:59 +00:00
signde
25b5a727e8
(svn r268) -Fix: console-command: script command now stops recording correctly
...
-Fix: network client should not stop sending ready packets anymore [client should not timeout without any reason]
2004-09-16 06:17:50 +00:00
darkvater
cbcf002a91
(svn r267) -Fix: Moved EUR back in its place, savegames should not list Romanian Lei anymore, and 2002 currency is also to EUR again
2004-09-15 22:32:37 +00:00
truelight
a69e422cdd
(svn r266) -Fix: hopefully fixed the desync problem nicely (and reverted the
...
workaround for it)
2004-09-15 18:36:33 +00:00
miham
0346fec1ca
(svn r265) Daily lf upd #1 . -- 1335 strings missing from 7 languages
2004-09-15 18:01:43 +00:00
signde
f15c85d508
(svn r263) -Fix: on_server.scr contained an unneeded ";"
...
-Fix: saving or loading a map doesnt pauses the game anymore
2004-09-15 11:53:01 +00:00
dominik
39f1c6dda3
(svn r262) Fix: [ 1028234 ] Monorail and MagLev infrastructure not available in 1920s any more
2004-09-15 06:51:23 +00:00
signde
9dcf10eb6c
(svn r261) -Workaround: unplayeable network-game on busy maps because of wrong setup of _current_player. This is only a workaround that can cause desyncs too but not that often
2004-09-14 22:51:37 +00:00
dominik
eaeca76e5a
(svn r260) Added updated linux RPM stuff
2004-09-14 20:56:57 +00:00
darkvater
a43bc5f82e
(svn r259) -Fix: Installer version updated to 12. Properly commented now. Thx teeone
2004-09-14 20:35:24 +00:00
miham
937aafd6d2
(svn r258) Daily lf upd #3 . -- 1433 strings missing from 7 languages
2004-09-14 20:25:52 +00:00