miham
463bf4641d
(svn r2615) [trrnasltwsds] 45253rqwer2
19 years ago
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.
19 years ago
Darkvater
3f8ba76b2f
(svn r2613) - Truncate savegames, and vehicle-texts in their window.
...
- Hardcoded width 5 for saves-path...oops :O
19 years ago
truelight
cddc52fb8f
(svn r2612) -Fix: corrected headers for ai_new.h
19 years ago
Darkvater
12507a725a
(svn r2611) - CodeChange: use standardized truncutation with the newsmessage-history window as well
19 years ago
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
19 years ago
Darkvater
cda6efd919
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
19 years ago
Darkvater
eceb9a0abe
(svn r2608) - Fix: add strings.h to vs.net2003 project file
19 years ago
Darkvater
e357c822cc
(svn r2607) - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde.
19 years ago
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
19 years ago
ludde
33a939581b
(svn r2605) Fix [languages] Add ##plural command in all langfiles.
19 years ago
ludde
8257102045
(svn r2604) Fix: removed unused variable
19 years ago
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.
19 years ago
truelight
8f405a42da
(svn r2602) -Codechange: removed unused variable (disable_computer)
...
-Fix: Changed some stuff to make server-side AIs possible in the far future
19 years ago
ludde
9f4e400b86
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
19 years ago
ludde
f868fb0811
(svn r2600) Fix: [vehicles] Fix problem with vehicle loop not distributing the calls evenly over the day.
19 years ago
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.
19 years ago
tron
06a6cc59ea
(svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill
19 years ago
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.
19 years ago
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
19 years ago
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
19 years ago
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.
19 years ago
miham
cb5fc8f6ff
(svn r2593) [Translators] Updated translations to 20050716 (27 lang(s))
19 years ago
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.
19 years ago
ludde
9d6b7f1e9f
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
19 years ago
ludde
7ddd9fe0e3
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
19 years ago
ludde
41d4eed3fb
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
19 years ago
ludde
04e45dac34
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
19 years ago
Darkvater
f043088ec1
(svn r2587) - Fix: Don't close the save-thread if it wasn't started because of some error or a network-server
19 years ago
Darkvater
c2409a2861
(svn r2586) - Fix [Makefile]: add mersenne.c to VS.NET2003 project file
19 years ago
Darkvater
bc11fe03ee
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
19 years ago
Darkvater
4ea2214993
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
19 years ago
ludde
fd0cee7418
(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
19 years ago
ludde
ac4f823b54
(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.
19 years ago
ludde
bb82f5e5d4
(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.
19 years ago
ludde
dc3ca73bd5
(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.
19 years ago
ludde
843670cfdf
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
19 years ago
miham
dffd746fa1
(svn r2578) translation fix
19 years ago
miham
ed99214121
(svn r2577) [Translators] Updated translations to 20050715 (26 lang(s))
19 years ago
celestar
93bf35708d
(svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook
19 years ago
ludde
31fd5b2768
(svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1)
19 years ago
ludde
6246619185
(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system.
...
Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
19 years ago
ludde
275e2f477a
(svn r2572) - Codechange: [string] Changed string system so it's not as dependent on decode_parameters
...
- Feature: [strgen] Allow changing the order of parameters in translated strings.
- Use {1:TOWN} syntax to set the order.
- Codechange: [strgen] Rewrote lots of strgen internals.
19 years ago
tron
462b0d6686
(svn r2571) Add explicit type Pixel for ... Pixels
19 years ago
ludde
ddc939f0ed
(svn r2570) Fix: Removed some code that had no effect.
19 years ago
tron
837c7ac25e
(svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines
19 years ago
tron
c67ddfd327
(svn r2568) Small cleanup in strgen: static, bracing, ...
19 years ago
miham
e39b6ebf7f
(svn r2567) [Translators] Updated translations to 20050714 (2 lang(s))
19 years ago
tron
d364efea27
(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway
19 years ago
ludde
20b7c66f7f
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
19 years ago