summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-07-19(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks ↵tron
to peter1138)
2005-07-19(svn r2633) Move spritecache related variable from variables.h to ↵tron
spritecache.[ch]
2005-07-19(svn r2632) Revert accidently commited changetron
2005-07-19(svn r2631) Move screenshot related variables from variables.h to ↵tron
screenshot.[ch]
2005-07-19(svn r2630) Forgot one Pixel (see r2571)tron
2005-07-18(svn r2629) -Codechange: removed stupid comment on top of players.ctruelight
2005-07-18(svn r2628) - Fix: Planting trees does not result in a MapSize() assertion ↵Darkvater
anymore; introduced in r2598
2005-07-17(svn r2627) [Translations] Fixing typos in hungarian langfilemiham
2005-07-17(svn r2626) static, const, misc.tron
2005-07-17(svn r2625) - Fix: [pbs] Store the end of a train's reserved path ↵hackykid
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(svn r2624) - Fix: oops, forgot to change the already in use ↵Darkvater
DrawStringCenteredTruncated() functions.
2005-07-17(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. ↵Darkvater
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(svn r2622) Fix: remove _cargoc.names_p, it was never used.ludde
2005-07-17(svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status. hackykid
2005-07-17(svn r2620) Fix: [language] Fix broken french.txt and polish.txtludde
2005-07-17(svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tronludde
2005-07-17(svn r2618) - Fix: add mersenne.c to VS6 project file (ludde)Darkvater
2005-07-17(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 ↵Darkvater
signed/unsigned warnings
2005-07-17(svn r2616) Don't stop when compiling a language fails, just delete the ↵tron
defective .lng
2005-07-17(svn r2615) [trrnasltwsds] 45253rqwer2miham
2005-07-17(svn r2614) - Fix: Trunctuate function used one less character than it was ↵Darkvater
supposed to. Because of this real width and reported width didn't correspond with eachother.
2005-07-17(svn r2613) - Truncate savegames, and vehicle-texts in their window.Darkvater
- Hardcoded width 5 for saves-path...oops :O
2005-07-17(svn r2612) -Fix: corrected headers for ai_new.htruelight
2005-07-17(svn r2611) - CodeChange: use standardized truncutation with the ↵Darkvater
newsmessage-history window as well
2005-07-17(svn r2610) - Feature: set server map name to the loaded name of the ↵Darkvater
game/scenario. Also truncate where neccessary - Feature: truncate the path of the saveload window
2005-07-17(svn r2609) - Feature: remove extension from savegames/scenarios when ↵Darkvater
browsing the folders.
2005-07-17(svn r2608) - Fix: add strings.h to vs.net2003 project fileDarkvater
2005-07-17(svn r2607) - Feature: add support for truncating strings to a given (pixel) ↵Darkvater
length. Function courtesy of Ludde.
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 variableludde
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 NetworkHandleCommandQueueludde
2005-07-16(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueueludde
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_RANDOMludde
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 fileDarkvater
2005-07-15(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add ↵Darkvater
mersenne to makefile (Luca)