summaryrefslogtreecommitdiff
path: root/spritecache.c
AgeCommit message (Collapse)Author
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-05-18(svn r2349) - Fix: remove warning from release build when assertions are no ↵Darkvater
longer active
2005-04-24(svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The ↵Darkvater
DOS grf file trgi.grf has 6 less sprites than the windows one. This results in some segfaults for certain sprites. Fixed it by added a dummy grf file consisting ofr 6 sprites and loaded when using DOS gfx at the appropiate place.
2005-03-06(svn r1941) Report missing NewGRF file as a fatal error.pasky
2005-02-20(svn r1893) If -i was specified respect ittron
2005-02-18(svn r1885) Fix typo in r1884tron
2005-02-18(svn r1884) Change palette detection algorithm: Use the DOS palette if there ↵tron
are no Windows .grfs but at least one DOS .grf
2005-02-17(svn r1882) Add a basic check if a non-existent sprite gets accessed.tron
Now ottd bails out with an error message instead of segfaulting. This is far from perfect, some checks after loading a savegame should be added.
2005-02-13(svn r1867) Include tables/sprites.h only in files which need ittron
2005-02-13(svn r1865) Fix some warningstron
2005-02-11(svn r1861) Constify Get(Non)Sprite()tron
2005-02-11(svn r1859) Miscellaneous style changestron
2005-02-11(svn r1858) Let ReadSprite() handle the subtleties of loading a sprite, not ↵tron
its caller
2005-02-11(svn r1857) Rewrite parts of the sprite heap. It's functionally equivalent ↵tron
but should be easier to read and maintain.
2005-02-10(svn r1856) Make GfxInitSpriteMem() static, because it's only used withing ↵tron
spritecache.c
2005-02-10(svn r1855) Handle endianness of sprite headers when loading a sprite, not ↵tron
everytime when accessing it
2005-02-10(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites ↵tron
(returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
2005-02-10(svn r1853) Move spritecache function declarations into a header of their ↵tron
own and use SpriteID as parameter type where appropriate
2005-02-08(svn r1852) Start cleaning up sprite handling:tron
- Complement the sprite header struct with a variable sized array for the sprite data and rename it to Sprite. - Use the correct type Sprite* instead of casting all the time (this causes some "assignment from incompatible pointer type" warnings, nothing serious, will be resolved soon)
2005-02-06(svn r1833) byte -> char transition: the resttron
2005-02-05(svn r1803) Move debugging stuff into files of it's owntron
2005-01-31(svn r1754) - Fix: you can once again load newgrf files with lots of ↵darkvater
sprites. Index wasn't reset in second run, thus counting them double.
2005-01-28(svn r1702) - Fix: [ 1110407 ] Game does not crash any more when a newgrf ↵dominik
file doesn't exist
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-19(svn r1571) Feature: Visually enhanced autorail placingdominik
When using the autorail tool, the rail pieces which are going to be build are highlighted. If a piece is shown in red, this indicates that the slope/rail combination is impossible. It does not tell you if the rail line construction might not be possible because of other obstacles, e.g. houses or water.
2005-01-15(svn r1520) Trim 134 (!) lines with trailing whitespace ):tron
2005-01-10(svn r1458) -Fix: remove byte *s again for windows.darkvater
2005-01-10(svn r1455) Fixed spritecache.c to compilemiham
2005-01-10(svn r1454) -Fix: small warnings in spritecache.cdarkvater
2005-01-10(svn r1453) Feature: MD5 hash check for TTD filesdominik
The original TTD files are now checked with a MD5 sum to determine which version of the grf files is used and to warn about possible file corruptions. (Thanks to ledow for the original patch)
2005-01-04(svn r1369) -Feature(ish): Added sprites for up/down and left/right arrows. ↵darkvater
Anywhere where there are horizontal scrollers these are now left/right arrows
2005-01-03(svn r1343) -Fix: [Graphic] Autorail icon is now correct (Darkvater)truelight
-Fix: [Graphic] Added resize icon (tnx tokai)
2004-12-12(svn r1038) Feature: OpenTTD runs with the grf files of the DOS versiondominik
Please read the Readme for further information. There are some minor graphical glitches when you use the DOS files. E.g. the autorail button is a bit screwed up.
2004-12-09(svn r999) New icons for the network interface, newgrf gui and the tiny eurodominik
2004-11-24(svn r803) Switch to ISO 8859-15tron
It has proper support for the euro sign and includes letters which are needed by the Latvian translation (and perhaps others), though the letter sprites are missing.
2004-11-19(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.pasky
2004-11-17(svn r662) [newgrf] Moved grfspecial.c to newgrf.c/newgrf.hdominik
2004-11-17(svn r651) LoadNewGrfFile() now doesn't care about num_sprites and just ↵miham
loads whatever is available. Fixes George's long vehicles. (pasky)
2004-11-15(svn r624) Merge r377 to trunk:tron
Remove the memmove special case for MSVC According to the MSDN it was just plain wrong and memmove was directly used in some places anyway
2004-11-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-11-14(svn r584) -newgrf: Increase chance to get a TTDPatch savegame using custom ↵darkvater
GRF files loaded (pasky)
2004-11-12(svn r556) -newgrf: Some seemingly proper support for loading stages of grf ↵darkvater
files (octo & pasky).
2004-11-12(svn r554) -newgrf: Keep track of GRF files. Remember them all in a linked ↵darkvater
list, this already enables tests for an already loaded GRF file in SkipIf(). Patch by octo, heavily re-hammered by pasky
2004-11-12(svn r553) -newgrf: Special routine for loading newgrf files. ↵darkvater
LoadNewGrfFile() introduced; will get more handy when loading stages will be introduced (octo and pasky).
2004-11-12(svn r552) -newgrf: Include bits forgotten when merging octo's ↵darkvater
ReplaceSprites support - it would replace even special sprites in the way now. (pasky)
2004-11-12(svn r549) -newgrf: Support for action 0xd (change a parameter (sorta ↵darkvater
variable for the GRF scripts)). Based on patch by octo, heavy changes by pasky.
2004-09-08(svn r185) -Fix: [1016954] Cached_sprites does now work againtruelight
2004-09-08(svn r183) -Fix: fix landscape-toolbar crash when newgrf are enabled. ↵darkvater
Dominik forgot to add +1 to index upon load :)
2004-08-27(svn r144) Whoops, wrong variabledominik
2004-08-27(svn r143) Fix: newgrfs are working againdominik