Commit Graph

2333 Commits (732acc8eaddadcb87ec8ee3701bfb861d5ba1579)
 

Author SHA1 Message Date
miham 4b1c520264 (svn r2642) [Translators] Updated translations to 20050719 (0 lang(s)) 19 years ago
ludde 7a553d8439 (svn r2641) Fix: [strings] forgot to increase argv pointer twice for {CARGO} 19 years ago
Darkvater 34253195a2 (svn r2640) - CodeChange: change calling convention to __fastcall as well for vs.net2003 as it was done for vs6. Debug/Release works fine for me, if there are probs let me (+ludde) know. 19 years ago
celestar 448467a9a1 (svn r2639) -Add: Added the vehicle names in table/engines.h so that you know what line represents what vehicle (I hope I didn't mess that up). Added some comments while I'm at it and include the table/ directory in the Doxygen generation 19 years ago
Darkvater 99c17f8ac7 (svn r2638) - Fix: Unable to delete savegames. Deleting TTDLX savegames is still broken as it was always broken, but since they don't even show up; we might as well call it a feature. 19 years ago
miham e3a75901c9 (svn r2637) [Translations] Updated to 2005-07-18 19 years ago
ludde 5862c0a174 (svn r2636) Fix: Switched to using the _fastcall calling convention instead of cdecl. (Please tell me if you get linking problems) 19 years ago
ludde 3e97dda275 (svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra.
- Benchmark shows that NTP is now around 10x faster than NPF.
  - Made IsTunnelTile macro to determine if a tile is a tunnel.
  - Added some useful debugging functions for making tiles red / getting accurate timestamps.
  - Remove old depot finding algorithm.
  - Disable warning for signed/unsigned comparisons.
19 years ago
tron 29f6ada06a (svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138) 19 years ago
tron c1da382e9a (svn r2633) Move spritecache related variable from variables.h to spritecache.[ch] 19 years ago
tron bbc4c5fc34 (svn r2632) Revert accidently commited change 19 years ago
tron 28a6e10a63 (svn r2631) Move screenshot related variables from variables.h to screenshot.[ch] 19 years ago
tron 6b439d6f82 (svn r2630) Forgot one Pixel (see r2571) 19 years ago
truelight dcd97a431b (svn r2629) -Codechange: removed stupid comment on top of players.c 19 years ago
Darkvater 5695330940 (svn r2628) - Fix: Planting trees does not result in a MapSize() assertion anymore; introduced in r2598 19 years ago
miham e52443ebc1 (svn r2627) [Translations] Fixing typos in hungarian langfile 19 years ago
tron 59d4ab3752 (svn r2626) static, const, misc. 19 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.
19 years ago
Darkvater eabc482184 (svn r2624) - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions. 19 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.
19 years ago
ludde 52b42ff508 (svn r2622) Fix: remove _cargoc.names_p, it was never used. 19 years ago
hackykid edbe969d23 (svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status. 19 years ago
ludde df08e10cfa (svn r2620) Fix: [language] Fix broken french.txt and polish.txt 19 years ago
ludde abc9376308 (svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tron 19 years ago
Darkvater 39c9b8a665 (svn r2618) - Fix: add mersenne.c to VS6 project file (ludde) 19 years ago
Darkvater ff2662ebe7 (svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings 19 years ago
tron b9a6c16461 (svn r2616) Don't stop when compiling a language fails, just delete the defective .lng 19 years ago
miham 71277a2283 (svn r2615) [trrnasltwsds] 45253rqwer2 19 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. 19 years ago
Darkvater f8b7b107d8 (svn r2613) - Truncate savegames, and vehicle-texts in their window.
- Hardcoded width 5 for saves-path...oops :O
19 years ago
truelight 99c6944497 (svn r2612) -Fix: corrected headers for ai_new.h 19 years ago
Darkvater 0eef2daf06 (svn r2611) - CodeChange: use standardized truncutation with the newsmessage-history window as well 19 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
19 years ago
Darkvater 80aa8c868b (svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders. 19 years ago
Darkvater d355aa11a5 (svn r2608) - Fix: add strings.h to vs.net2003 project file 19 years ago
Darkvater 7fceed0446 (svn r2607) - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde. 19 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
19 years ago
ludde 1022bf7d93 (svn r2605) Fix [languages] Add ##plural command in all langfiles. 19 years ago
ludde 2fd162b8dd (svn r2604) Fix: removed unused variable 19 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. 19 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
19 years ago
ludde 3ce9fb6bbd (svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier. 19 years ago
ludde b76a0b8158 (svn r2600) Fix: [vehicles] Fix problem with vehicle loop not distributing the calls evenly over the day. 19 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.
19 years ago
tron 2469cedd15 (svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill 19 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.
19 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 19 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
19 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.
19 years ago
miham 01f3b6b6fe (svn r2593) [Translators] Updated translations to 20050716 (27 lang(s)) 19 years ago