Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-07-17 | (svn r2606) -Codechange: renamed ai.c to ai_old.c, and ai.h to ai_new.h to ↵ | truelight | |
make room for a global AI-handler | |||
2005-07-17 | (svn r2605) Fix [languages] Add ##plural command in all langfiles. | ludde | |
2005-07-17 | (svn r2604) Fix: removed unused variable | ludde | |
2005-07-17 | (svn r2603) Fix [multistop] Fix problem with multistop handling, the range ↵ | ludde | |
in my fix was way too high. Also only lock a slot for 5 days instead of 30. | |||
2005-07-17 | (svn r2602) -Codechange: removed unused variable (disable_computer) | truelight | |
-Fix: Changed some stuff to make server-side AIs possible in the far future | |||
2005-07-17 | (svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier. | ludde | |
2005-07-17 | (svn r2600) Fix: [vehicles] Fix problem with vehicle loop not distributing ↵ | ludde | |
the calls evenly over the day. | |||
2005-07-17 | (svn r2599) Fix: Road vehicle multistop handling used NPF even if NPF was ↵ | ludde | |
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 | (svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), ↵ | tron | |
because it was overkill | |||
2005-07-17 | (svn r2597) Feature: [string system] Support cases. | ludde | |
- 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 | (svn r2596) Add macros ROL and ROR to ROtate values Left/Right. Also shorten ↵ | tron | |
the parameter names for GB and SB to increase readability | |||
2005-07-16 | (svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is ↵ | celestar | |
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 | (svn r2594) Fix: [strgen] Misc updates to the string system. | ludde | |
- 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 | (svn r2593) [Translators] Updated translations to 20050716 (27 lang(s)) | miham | |
2005-07-16 | (svn r2592) Feature: [strgen] New way to specify plural forms. | ludde | |
- {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 | (svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue | ludde | |
2005-07-16 | (svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue | ludde | |
2005-07-16 | (svn r2589) Fix: [network] Fixed static variable that wasn't initialized. ↵ | ludde | |
Would stop the sync checking from working in some cases. | |||
2005-07-16 | (svn r2588) Codechange: Remove PLAYER_SEED_RANDOM | ludde | |
2005-07-16 | (svn r2587) - Fix: Don't close the save-thread if it wasn't started because ↵ | Darkvater | |
of some error or a network-server | |||
2005-07-15 | (svn r2586) - Fix [Makefile]: add mersenne.c to VS.NET2003 project file | Darkvater | |
2005-07-15 | (svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add ↵ | Darkvater | |
mersenne to makefile (Luca) | |||
2005-07-15 | (svn r2584) - Fix: Game no longer asserts when you use the remove-road tool ↵ | Darkvater | |
on a town building or industry. | |||
2005-07-15 | (svn r2583) Move OS specific code out of misc.c | ludde | |
Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef | |||
2005-07-15 | (svn r2582) Fix: Prevent generating unrealistically many Oil refineries on ↵ | ludde | |
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 | (svn r2581) Fix: Behave a bit safer if central server sends bogus ↵ | ludde | |
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 | (svn r2580) Change: Added {INDUSTRY} command for printing industry names ↵ | ludde | |
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 | (svn r2579) Change some strgen errors into warnings to prevent build from ↵ | ludde | |
stopping. | |||
2005-07-15 | (svn r2578) translation fix | miham | |
2005-07-15 | (svn r2577) [Translators] Updated translations to 20050715 (26 lang(s)) | miham | |
2005-07-15 | (svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook | celestar | |
2005-07-15 | (svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been ↵ | ludde | |
here since day 1) | |||
2005-07-15 | (svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the ↵ | ludde | |
new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c. | |||
2005-07-15 | (svn r2572) - Codechange: [string] Changed string system so it's not as ↵ | ludde | |
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 | (svn r2571) Add explicit type Pixel for ... Pixels | tron | |
2005-07-15 | (svn r2570) Fix: Removed some code that had no effect. | ludde | |
2005-07-15 | (svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines | tron | |
2005-07-15 | (svn r2568) Small cleanup in strgen: static, bracing, ... | tron | |
2005-07-14 | (svn r2567) [Translators] Updated translations to 20050714 (2 lang(s)) | miham | |
2005-07-14 | (svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway | tron | |
2005-07-14 | (svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they ↵ | ludde | |
are just confusing and just do the same thing as GetParamInt32 | |||
2005-07-14 | (svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is ↵ | ludde | |
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 | (svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the ↵ | tron | |
win32 MIDI player to fail | |||
2005-07-13 | (svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now. | ludde | |
2005-07-13 | (svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore. | ludde | |
2005-07-13 | (svn r2560) Fix: various minor code changes. | ludde | |
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 | (svn r2559) Cleaned up new saveload code for the map | ludde | |
2005-07-13 | (svn r2558) Change the internal map format from 7 arrays to one array of ↵ | tron | |
structs, this doesn't change the saved format for now. It's a stepping stone for further changes. | |||
2005-07-13 | (svn r2557) -Add: Added the AUTOBRIEF option to the Doxyfile | celestar | |
2005-07-12 | (svn r2556) -Fix: update newline style of new files to native. Don't forget ↵ | Darkvater | |
this when you add a new file! 'svn ps svn:eol-style native <file>' |