Darkvater
5695330940
(svn r2628) - Fix: Planting trees does not result in a MapSize() assertion anymore; introduced in r2598
20 years ago
miham
e52443ebc1
(svn r2627) [Translations] Fixing typos in hungarian langfile
20 years ago
tron
59d4ab3752
(svn r2626) static, const, misc.
20 years ago
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.
20 years ago
Darkvater
eabc482184
(svn r2624) - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions.
20 years ago
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.
20 years ago
ludde
52b42ff508
(svn r2622) Fix: remove _cargoc.names_p, it was never used.
20 years ago
hackykid
edbe969d23
(svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status.
20 years ago
ludde
df08e10cfa
(svn r2620) Fix: [language] Fix broken french.txt and polish.txt
20 years ago
ludde
abc9376308
(svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tron
20 years ago
Darkvater
39c9b8a665
(svn r2618) - Fix: add mersenne.c to VS6 project file (ludde)
20 years ago
Darkvater
ff2662ebe7
(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings
20 years ago
tron
b9a6c16461
(svn r2616) Don't stop when compiling a language fails, just delete the defective .lng
20 years ago
miham
71277a2283
(svn r2615) [trrnasltwsds] 45253rqwer2
20 years ago
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.
20 years ago
Darkvater
f8b7b107d8
(svn r2613) - Truncate savegames, and vehicle-texts in their window.
...
- Hardcoded width 5 for saves-path...oops :O
20 years ago
truelight
99c6944497
(svn r2612) -Fix: corrected headers for ai_new.h
20 years ago
Darkvater
0eef2daf06
(svn r2611) - CodeChange: use standardized truncutation with the newsmessage-history window as well
20 years ago
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
20 years ago
Darkvater
80aa8c868b
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
20 years ago
Darkvater
d355aa11a5
(svn r2608) - Fix: add strings.h to vs.net2003 project file
20 years ago
Darkvater
7fceed0446
(svn r2607) - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde.
20 years ago
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
20 years ago
ludde
1022bf7d93
(svn r2605) Fix [languages] Add ##plural command in all langfiles.
20 years ago
ludde
2fd162b8dd
(svn r2604) Fix: removed unused variable
20 years ago
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.
20 years ago
truelight
658f9cb03f
(svn r2602) -Codechange: removed unused variable (disable_computer)
...
-Fix: Changed some stuff to make server-side AIs possible in the far future
20 years ago
ludde
3ce9fb6bbd
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
20 years ago
ludde
b76a0b8158
(svn r2600) Fix: [vehicles] Fix problem with vehicle loop not distributing the calls evenly over the day.
20 years ago
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.
20 years ago
tron
2469cedd15
(svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill
20 years ago
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.
20 years ago
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
20 years ago
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
20 years ago
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.
20 years ago
miham
01f3b6b6fe
(svn r2593) [Translators] Updated translations to 20050716 (27 lang(s))
20 years ago
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.
20 years ago
ludde
11d9f50115
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
20 years ago
ludde
bd974bb443
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
20 years ago
ludde
8ff1f8c526
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
20 years ago
ludde
f12b3a0c18
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
20 years ago
Darkvater
19cb5e054a
(svn r2587) - Fix: Don't close the save-thread if it wasn't started because of some error or a network-server
20 years ago
Darkvater
85ef06a0b5
(svn r2586) - Fix [Makefile]: add mersenne.c to VS.NET2003 project file
20 years ago
Darkvater
95463428c8
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
20 years ago
Darkvater
c496d92c3e
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
20 years ago
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
20 years ago
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.
20 years ago
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.
20 years ago
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.
20 years ago
ludde
157addf5e9
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
20 years ago