Commit Graph

6273 Commits

Author SHA1 Message Date
bjarni
89b362a622 (svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if a sprite is too big to fit (ships and aircraft only)
-Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks
   This will make less vehicle type specific code and easier to read resizing based on sprite sizes
2007-02-10 13:37:32 +00:00
tron
ced80aadaa (svn r8660) -Fix
-Codechange: Remove _avail_aircraft
Its name is misleading. It is rather _avail_airports, but then only some of them, which leads to inconsistencies when using it.
Further it is unnecessary to store it in savegams.
2007-02-10 08:19:39 +00:00
bjarni
c866f36371 (svn r8658) -Fix r8605: missed an error message renaming from m to mm (objC to objC++) 2007-02-10 00:22:32 +00:00
rubidium
396f905b6e (svn r8651) -Codechange: group the functions related to getting and setting the town index and move one function that is not related to the map array out of town_map.h. 2007-02-09 16:21:03 +00:00
celestar
0cfd58f21a (svn r8648) -Codechange: Renamed os/linux to os/mandrake because that's what is is about. Added another spec file for suse (early version) which will be used to create rpms 2007-02-09 08:58:25 +00:00
truelight
f5ea97e0b3 (svn r8647) -Codechange: add a general way to handle platforms who can only have a limited amount of file-descripters open at any given time.
The Fios keeps track how many times a file is opened, and tries to close up files which aren't used often.
  The first platform using this is PSP. Patch based on the work of Turulo.
2007-02-08 23:46:25 +00:00
miham
8bceacac45 (svn r8645) -Update: WebTranslator2 update to 2007-02-08 22:52:39
french     - 38 changed by Skiper (38)
norwegian_nynorsk - 6 fixed by khaavik (6)
traditional_chinese - 64 changed by thomasau (64)
2007-02-08 21:53:15 +00:00
rubidium
85da85c70a (svn r8642) -Merge: Release changes from the 0.5 branch back to trunk. This ensures an updated changelog, readme, etc. 2007-02-08 17:57:19 +00:00
rubidium
f7c5e770f0 (svn r8637) -Fix: CTRL-clicking on a hangar in the order list segfaulted as hangars are part of a station instead of real depots. 2007-02-08 15:54:36 +00:00
rubidium
39454ab61a (svn r8635) -Fix: draw canal edges under buoys that are in a canal. 2007-02-08 14:04:02 +00:00
rubidium
c9b2b81413 (svn r8634) -Codechange: replace missing sprites with a red question mark. 2007-02-08 14:02:12 +00:00
truelight
54b07056f9 (svn r8633) [PSP] -Fix r8629: mixed psp-config and pspconfig, making ./configure --reconfig to fail 2007-02-08 12:54:23 +00:00
truelight
a07cb5ad97 (svn r8632) [PSP] -Add: added include and lib to CFLAGS / LDFLAGS based on the SDK dir from psp-config
-Fix: disabled pthread for PSP
2007-02-08 12:52:25 +00:00
truelight
bc5d3ef3b0 (svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
  Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
  And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
2007-02-08 12:27:53 +00:00
truelight
7f589f5029 (svn r8629) [PSP] -Add: added psp-config detection in configure for PSP target 2007-02-08 11:21:10 +00:00
truelight
8c6198d03a (svn r8628) [PSP] -Add: added configure support for the PlayStation Portable target
In the coming days/weeks there will be an attempt to port OpenTTD for 
  this target. This is a very small step towards that.
2007-02-08 11:04:39 +00:00
miham
a05beb7487 (svn r8622) -Update: WebTranslator2 update to 2007-02-07 22:44:21
finnish    - 8 fixed by kerba (8)
russian    - 4 fixed, 2 changed by DarkFenX (6)
slovak     - 2 changed by lengyel (2)
spanish    - 7 fixed by eusebio (7)
traditional_chinese - 38 fixed, 27 changed by thomasau (65)
2007-02-07 21:46:25 +00:00
bjarni
d40886903d (svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
  Surprisingly this can be done without changing the savegame format
2007-02-07 19:10:19 +00:00
rubidium
022e11d421 (svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros). 2007-02-07 18:01:26 +00:00
rubidium
61c796b825 (svn r8619) -Fix: store the ownership of a water tile in the buoy tile and set the ownership of the water tile when the buoy is removed. This solves the issue of removing ownership from canal tiles thus making is possible for other players to remove the canal tile. 2007-02-07 17:52:21 +00:00
tron
f4144f1373 (svn r8618) -Fix
Remove redundant assignments. The function call just before already does it
2007-02-07 13:46:28 +00:00
tron
fd4e74efed (svn r8617) -Fix
Fix harmless typo: s/,/;/
2007-02-07 08:36:53 +00:00
miham
d08c913863 (svn r8616) -Update: WebTranslator2 update to 2007-02-06 22:31:04
american   - 6 fixed by WhiteRabbit (6)
brazilian_portuguese - 11 changed by fukumori (11)
croatian   - 29 fixed, 1 changed by tperic (30)
danish     - 2 fixed by MiR (2)
dutch      - 4 fixed by habell (4)
french     - 1 fixed by glx (1)
korean     - 18 changed by leejaeuk5 (4), darkttd (14)
russian    - 4 fixed, 31 changed by DarkFenX (35)
slovak     - 7 fixed by lengyel (7)
traditional_chinese - 2806 fixed by sam0737 (93), cylau0 (412), xbddc (109), thomasau (440), tiberiusteng (1752)
ukrainian  - 4 fixed, 1 deleted, 3 changed by mad (8)
2007-02-06 21:31:55 +00:00
miham
80578ff71a (svn r8615) [Translations] -Prepare: added traditional chinese to project files as well 2007-02-06 21:30:40 +00:00
miham
e60f7db359 (svn r8614) [Translations] -Prepare: prepare committing traditional chinese 2007-02-06 21:26:54 +00:00
KUDr
727409d2e8 (svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build 2007-02-06 19:16:38 +00:00
maedhros
310a299a43 (svn r8612) -Fix (r117) [FS#582]: When the currently selected player in the performance
details window is no longer active, choose the first active player instead of
the first player as that may also be inactive.
2007-02-06 15:50:15 +00:00
celestar
d3dc34c965 (svn r8611) -Fix: Moved the aircraft speed limiting into UpdateAircraftSpeed and enummed some speed limits. This should give a more steady display in the status bar during taxiing 2007-02-06 15:38:23 +00:00
bjarni
f626458af7 (svn r8610) -Codechange/Feature: rewrote the list handling in the autoreplace window
-The user will notice the following changes:
      All vehicle types behaves in the same way
      Adding/removing an engine (new design and so on) can no longer result in the window selecting a new engine
      All valid replacements will be displayed since it looks at refitting options as well (this solves the missing ships with the newships GRF)
      Since you can't replace an engine into itself, the engine selected in the left list will no longer appear in the right list

   -The code changes:
      Instead of looping all engines all the time, each list generates a list like the build windows
        This ensures consistent list generation since only one function can loop all engines
      Unified code for all vehicle types
      It now use the lists to call the drawing code in the build vehicle window
      Works on selected EngineIDs instead of selected index in the list
2007-02-06 11:11:12 +00:00
rubidium
ec301e0f8a (svn r8609) -Fix: a road vehicle that is very close after another (slower) road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel. 2007-02-06 09:29:56 +00:00
rubidium
69d4888c29 (svn r8608) -Fix: you were unable to build roads in the scenario editor when there is no town 0, even though there are other towns. 2007-02-06 09:25:52 +00:00
bjarni
5ebab4089a (svn r8605) -Codechange: [OSX] changed all objective C to objective C++
This will permanently solve the issue where compilation on OSX broke because C++ code was added to some header files

   -Note: (important if you develop mac specific code)
   taken from http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html           
    gdb lacks an integrated C++ with Objective-C parser. This means that gdb won't be able to evaluate expressions that contain both C++ and Objective-C constructs.
    gdb assumes that the language for ".mm" files is C++.
    you can change it to objective C by typing: (gdb) set language objc 
    Mixing C++ and objective C has some limitation (see link for all of them)
2007-02-05 21:16:56 +00:00
rubidium
bec2c60245 (svn r8593) -Fix (FS#564): bridges do not get destroyed when the bridge head gets flooded and there is a vehicle on the bridge. Original patch by KeeperofTheSoul. 2007-02-05 14:00:32 +00:00
miham
628527e999 (svn r8588) -Update: WebTranslator2 update to 2007-02-04 19:36:03
catalan    - 1 fixed by arnaullv (1)
czech      - 3 fixed, 12 changed by Hadez (15)
esperanto  - 2 fixed by LaPingvino (2)
hungarian  - 4 fixed by miham (4)
korean     - 8 fixed by leejaeuk5 (8)
portuguese - 2 fixed, 2 changed by izhirahider (4)
russian    - 11 fixed, 14 changed by DarkFenX (25)
2007-02-04 18:36:43 +00:00
tron
3690fbcc6e (svn r8582) -Fix
Reorder the attributes of some structs to reduce their size
2007-02-04 13:46:21 +00:00
KUDr
3d59cf0573 (svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build) 2007-02-04 11:33:02 +00:00
rubidium
f38eb4bd8f (svn r8575) -Fix (8125): remove unused include 2007-02-04 11:31:24 +00:00
KUDr
3f7d1fd2de (svn r8574) -Fix: Silence VC2003 warning: "compiler limit : terminating debug information emission for enum 'StringIdEnum'" 2007-02-04 11:30:22 +00:00
rubidium
9796411a24 (svn r8573) -Cleanup: obey the comment style in stdafx.h. 2007-02-04 11:20:24 +00:00
rubidium
3675874113 (svn r8572) -Fix: use the C++ version of the Standard C Library headers. This due to the fact that some stl headers will include them anyway and #undef several defines made in stdafx.h.
An example of this is that fopen that we redefine to _wfopen (for Windows Unicode compatability), is reverted to a non-Windows Unicode compatible fopen. This makes it impossible to start openttd with non-ASCII characters in the path or load savegames with non-ASCII characters under Windows.
2007-02-04 11:14:42 +00:00
tron
efea7e8d6d (svn r8570) -Fix
Add a regular constructor and destructor to AirportFTAClass
2007-02-04 10:25:57 +00:00
peter1138
73ce8ea7f4 (svn r8569) -Fix (r8464): revert properly 2007-02-04 05:53:09 +00:00
maedhros
fa22b5f2ae (svn r8567) -Feature: Allow upgrading bridges by building a new bridge over the top. (Based on a patch by gigajum)
- The replacement bridge must be the same transport type, and if it's a rail bridge it must have the same railtype.
  - Town owned bridges can also be upgraded, but only to a bridge with a higher top speed.
2007-02-03 21:55:14 +00:00
tron
ab3c3e09d4 (svn r8566) -Fix
Remove untranslated strings
2007-02-03 21:13:34 +00:00
tron
fbc368a7d3 (svn r8565) -Fix
Fix indentation
2007-02-03 20:15:17 +00:00
tron
7c06ff3962 (svn r8564) -Fix
Remove incorrect empty translations
2007-02-03 20:12:06 +00:00
tron
ac04195805 (svn r8563) -Fix
Replace very old tabs which should be spaces by spaces
2007-02-03 20:11:10 +00:00
miham
d711270ede (svn r8562) -Update: WebTranslator2 update to 2007-02-03 19:51:53
brazilian_portuguese - 1 changed by fukumori (1)
croatian   - 78 fixed, 1 changed by tperic (79)
german     - 15 changed by Neonox (15)
portuguese - 4 fixed by izhirahider (4)
russian    - 10 fixed by DarkFenX (10)
slovenian  - 4 fixed by Necrolyte (4)
2007-02-03 18:56:42 +00:00
tron
f0f86442ad (svn r8559) -Fix
-Codechange: Put the airport movement data into struct AirportFTAClass
2007-02-03 13:03:11 +00:00
maedhros
19c981b19e (svn r8551) -Fix (r7759): Use ${} instead of $() for variables. 2007-02-03 09:54:42 +00:00