miham
85c9e125ea
(svn r2637) [Translations] Updated to 2005-07-18
2005-07-19 16:34:46 +00:00
ludde
868938a64b
(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
08725cd6df
(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
857a3a1ffc
(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138)
2005-07-19 07:20:48 +00:00
tron
87be1312d2
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
2005-07-19 06:54:13 +00:00
tron
6500fd2b91
(svn r2632) Revert accidently commited change
2005-07-19 06:48:12 +00:00
tron
bce6f5c0a5
(svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
2005-07-19 06:47:07 +00:00
tron
3428e4e4b0
(svn r2630) Forgot one Pixel (see r2571)
2005-07-19 06:31:39 +00:00
truelight
f4032b8f9f
(svn r2629) -Codechange: removed stupid comment on top of players.c
2005-07-18 23:33:14 +00:00
Darkvater
c966fc23fb
(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
dc5ee38738
(svn r2627) [Translations] Fixing typos in hungarian langfile
2005-07-17 22:20:04 +00:00
tron
152439b56c
(svn r2626) static, const, misc.
2005-07-17 20:14:58 +00:00
hackykid
552aa1b4dc
(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
09195e0bda
(svn r2624) - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions.
2005-07-17 19:38:40 +00:00
Darkvater
186036229c
(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
b998b9b8e6
(svn r2622) Fix: remove _cargoc.names_p, it was never used.
2005-07-17 18:49:05 +00:00
hackykid
d5b305852f
(svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status.
2005-07-17 18:48:45 +00:00
ludde
7238b015fa
(svn r2620) Fix: [language] Fix broken french.txt and polish.txt
2005-07-17 18:48:05 +00:00
ludde
3eee2b7b7c
(svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tron
2005-07-17 18:36:47 +00:00
Darkvater
baccddb461
(svn r2618) - Fix: add mersenne.c to VS6 project file (ludde)
2005-07-17 18:20:55 +00:00
Darkvater
5261529887
(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings
2005-07-17 18:11:17 +00:00
tron
f3c14486be
(svn r2616) Don't stop when compiling a language fails, just delete the defective .lng
2005-07-17 18:09:23 +00:00
miham
463bf4641d
(svn r2615) [trrnasltwsds] 45253rqwer2
2005-07-17 17:57:57 +00:00
Darkvater
cbad2dad33
(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
3f8ba76b2f
(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
cddc52fb8f
(svn r2612) -Fix: corrected headers for ai_new.h
2005-07-17 16:22:27 +00:00
Darkvater
12507a725a
(svn r2611) - CodeChange: use standardized truncutation with the newsmessage-history window as well
2005-07-17 16:02:17 +00:00
Darkvater
6a91b08cad
(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
cda6efd919
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
2005-07-17 15:58:47 +00:00
Darkvater
eceb9a0abe
(svn r2608) - Fix: add strings.h to vs.net2003 project file
2005-07-17 15:55:26 +00:00
Darkvater
e357c822cc
(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
a28295b394
(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
33a939581b
(svn r2605) Fix [languages] Add ##plural command in all langfiles.
2005-07-17 14:03:33 +00:00
ludde
8257102045
(svn r2604) Fix: removed unused variable
2005-07-17 13:46:42 +00:00
ludde
05dc6ecebc
(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
8f405a42da
(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
9f4e400b86
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
2005-07-17 12:49:00 +00:00
ludde
f868fb0811
(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
d4e0c72867
(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
06a6cc59ea
(svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill
2005-07-17 11:09:03 +00:00
ludde
a419ed0bd4
(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
e7fa78d60b
(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
de19186be3
(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
594dd34e84
(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
cb5fc8f6ff
(svn r2593) [Translators] Updated translations to 20050716 (27 lang(s))
2005-07-16 17:46:58 +00:00
ludde
ec8a15d191
(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
9d6b7f1e9f
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
2005-07-16 15:05:52 +00:00
ludde
7ddd9fe0e3
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
2005-07-16 14:29:36 +00:00
ludde
41d4eed3fb
(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
04e45dac34
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
2005-07-16 12:30:03 +00:00