ludde
b76a0b8158
(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
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.
2005-07-17 12:29:33 +00:00
tron
2469cedd15
(svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill
2005-07-17 11:09:03 +00:00
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.
2005-07-17 10:18:23 +00:00
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
2005-07-17 09:41:28 +00:00
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
2005-07-16 23:47:37 +00:00
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.
2005-07-16 20:58:04 +00:00
miham
01f3b6b6fe
(svn r2593) [Translators] Updated translations to 20050716 (27 lang(s))
2005-07-16 17:46:58 +00:00
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.
2005-07-16 17:12:32 +00:00
ludde
11d9f50115
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
2005-07-16 15:05:52 +00:00
ludde
bd974bb443
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
2005-07-16 14:29:36 +00:00
ludde
8ff1f8c526
(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
f12b3a0c18
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
2005-07-16 12:30:03 +00:00
Darkvater
19cb5e054a
(svn r2587) - Fix: Don't close the save-thread if it wasn't started because of some error or a network-server
2005-07-16 09:55:31 +00:00
Darkvater
85ef06a0b5
(svn r2586) - Fix [Makefile]: add mersenne.c to VS.NET2003 project file
2005-07-15 21:31:09 +00:00
Darkvater
95463428c8
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
2005-07-15 21:28:26 +00:00
Darkvater
c496d92c3e
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
2005-07-15 21:17:38 +00:00
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
2005-07-15 20:29:06 +00:00
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.
2005-07-15 19:51:54 +00:00
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.
2005-07-15 18:43:39 +00:00
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.
2005-07-15 18:30:13 +00:00
ludde
157addf5e9
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
2005-07-15 17:59:55 +00:00
miham
ade7446522
(svn r2578) translation fix
2005-07-15 17:58:31 +00:00
miham
a528102994
(svn r2577) [Translators] Updated translations to 20050715 (26 lang(s))
2005-07-15 17:45:54 +00:00
celestar
ab51051fcf
(svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook
2005-07-15 16:50:39 +00:00
ludde
20e60e5411
(svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1)
2005-07-15 16:29:30 +00:00
ludde
a069876725
(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.
2005-07-15 15:09:52 +00:00
ludde
2fa79c9b4d
(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.
2005-07-15 14:53:44 +00:00
tron
8f71864bef
(svn r2571) Add explicit type Pixel for ... Pixels
2005-07-15 14:16:14 +00:00
ludde
b21ee889fe
(svn r2570) Fix: Removed some code that had no effect.
2005-07-15 12:16:16 +00:00
tron
a9b4e7963b
(svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines
2005-07-15 09:01:23 +00:00
tron
a9aa4dc61b
(svn r2568) Small cleanup in strgen: static, bracing, ...
2005-07-15 07:48:17 +00:00
miham
90e2a41027
(svn r2567) [Translators] Updated translations to 20050714 (2 lang(s))
2005-07-14 17:45:02 +00:00
tron
b4f549f4ee
(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway
2005-07-14 15:10:20 +00:00
ludde
53851d5e77
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
2005-07-14 09:53:52 +00:00
ludde
3e62457107
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".
...
Added a way to bind a C-string to an openttd string which doesn't modify the game state.
2005-07-14 09:43:59 +00:00
tron
1a046ff4c6
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
2005-07-14 06:10:23 +00:00
ludde
be98b1bf7e
(svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now.
2005-07-13 20:41:44 +00:00
ludde
a1ec4aff77
(svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore.
2005-07-13 20:35:52 +00:00
ludde
6013b327f7
(svn r2560) Fix: various minor code changes.
...
Added RandomTile/RandomTileSeed functions to generate a random tile.
Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though)
Changed some frequently used map macros to not compute the values each time.
Silence some warnings on MSVC.
2005-07-13 19:51:31 +00:00
ludde
4b006aa6cf
(svn r2559) Cleaned up new saveload code for the map
2005-07-13 18:46:51 +00:00
tron
8c1d74162f
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
2005-07-13 18:04:01 +00:00
celestar
1a1dde7c8d
(svn r2557) -Add: Added the AUTOBRIEF option to the Doxyfile
2005-07-13 09:51:01 +00:00
Darkvater
4c8e6bbbb3
(svn r2556) -Fix: update newline style of new files to native. Don't forget this when you add a new file! 'svn ps svn:eol-style native <file>'
2005-07-12 21:27:56 +00:00
tron
9c94a0ed6f
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
2005-07-12 21:13:30 +00:00
ludde
ebe3b89b98
(svn r2554) - Fix: [pathfinding] Change to using some helper functions for checking the railtype.
2005-07-12 20:41:17 +00:00
ludde
f523be81d4
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder.
...
- Penalties for red signals and for slopes.
- Increased the search depth to work better with large train networks.
2005-07-12 20:28:19 +00:00
ludde
dc9b51f110
(svn r2552) - Fix: [map] Fix so the code compiles correctly and doesn't crash on MSVC6 in optimization mode.
2005-07-12 19:57:41 +00:00
miham
9a1b3fc181
(svn r2551) [Translations] Added slovenian language (~20% complete)
2005-07-12 19:51:58 +00:00
ludde
b5a30ed0fc
(svn r2550) raise 32767 limit of gamma values, and 16MB limit of RIFF chunks in saveload code.
2005-07-12 19:15:56 +00:00