Commit Graph

2255 Commits

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