Commit Graph

3046 Commits

Author SHA1 Message Date
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