tron
513dc78ebc
(svn r2523) Readd a comment which got lost in r2522
20 years ago
tron
a06b2fdc44
(svn r2522) Reorganize sprite load and decompression in order to remove a special case from the sprite blitter, which decompressed certain sprites every time when blitting them
20 years ago
Darkvater
b438b1248c
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
20 years ago
Darkvater
1b2b0d5b79
(svn r2349) - Fix: remove warning from release build when assertions are no longer active
20 years ago
Darkvater
a1143a53f0
(svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The 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.
20 years ago
pasky
7ee6d0fa62
(svn r1941) Report missing NewGRF file as a fatal error.
20 years ago
tron
0d8dcacee2
(svn r1893) If -i was specified respect it
20 years ago
tron
9f4e45d333
(svn r1885) Fix typo in r1884
20 years ago
tron
431447ef87
(svn r1884) Change palette detection algorithm: Use the DOS palette if there are no Windows .grfs but at least one DOS .grf
20 years ago
tron
f7991303e8
(svn r1882) Add a basic check if a non-existent sprite gets accessed.
...
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.
20 years ago
tron
204d08140a
(svn r1867) Include tables/sprites.h only in files which need it
20 years ago
tron
58c46bed40
(svn r1865) Fix some warnings
20 years ago
tron
9c99c7d11a
(svn r1861) Constify Get(Non)Sprite()
20 years ago
tron
f03b8859ed
(svn r1859) Miscellaneous style changes
20 years ago
tron
5c946cdbd8
(svn r1858) Let ReadSprite() handle the subtleties of loading a sprite, not its caller
20 years ago
tron
1b617b28fc
(svn r1857) Rewrite parts of the sprite heap. It's functionally equivalent but should be easier to read and maintain.
20 years ago
tron
33cf096b03
(svn r1856) Make GfxInitSpriteMem() static, because it's only used withing spritecache.c
20 years ago
tron
9031e0369e
(svn r1855) Handle endianness of sprite headers when loading a sprite, not everytime when accessing it
20 years ago
tron
94c75f33bb
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
20 years ago
tron
2a151d9354
(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
20 years ago
tron
092e72d60d
(svn r1852) Start cleaning up sprite handling:
...
- 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)
20 years ago
tron
eed181245d
(svn r1833) byte -> char transition: the rest
20 years ago
tron
f0f85a7ef3
(svn r1803) Move debugging stuff into files of it's own
20 years ago
darkvater
35cb4fbf8c
(svn r1754) - Fix: you can once again load newgrf files with lots of sprites. Index wasn't reset in second run, thus counting them double.
20 years ago
dominik
c8d084a85e
(svn r1702) - Fix: [ 1110407 ] Game does not crash any more when a newgrf file doesn't exist
20 years ago
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
dominik
aaf09ceb26
(svn r1571) Feature: Visually enhanced autorail placing
...
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.
20 years ago
tron
3279a7c9a2
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
20 years ago
darkvater
53bd40ebaf
(svn r1458) -Fix: remove byte *s again for windows.
20 years ago
miham
aacb89ed53
(svn r1455) Fixed spritecache.c to compile
20 years ago
darkvater
52bfa90d5e
(svn r1454) -Fix: small warnings in spritecache.c
20 years ago
dominik
aa261049f4
(svn r1453) Feature: MD5 hash check for TTD files
...
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)
20 years ago
darkvater
4f496b8681
(svn r1369) -Feature(ish): Added sprites for up/down and left/right arrows. Anywhere where there are horizontal scrollers these are now left/right arrows
20 years ago
truelight
d382463f8a
(svn r1343) -Fix: [Graphic] Autorail icon is now correct (Darkvater)
...
-Fix: [Graphic] Added resize icon (tnx tokai)
20 years ago
dominik
52134822b8
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
...
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.
20 years ago
dominik
416e2b67b1
(svn r999) New icons for the network interface, newgrf gui and the tiny euro
20 years ago
tron
e35a0b1c44
(svn r803) Switch to ISO 8859-15
...
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.
20 years ago
pasky
989fd10d06
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
20 years ago
dominik
4612dcdb48
(svn r662) [newgrf] Moved grfspecial.c to newgrf.c/newgrf.h
20 years ago
miham
4fb8338fa6
(svn r651) LoadNewGrfFile() now doesn't care about num_sprites and just loads whatever is
...
available. Fixes George's long vehicles. (pasky)
20 years ago
tron
57c472e093
(svn r624) Merge r377 to trunk:
...
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
20 years ago
tron
249a170ace
(svn r607) -Patch: [ 985102 ] static cleanup
...
Thanks to lvoge
20 years ago
darkvater
4f6fa3b468
(svn r584) -newgrf: Increase chance to get a TTDPatch savegame using custom GRF files loaded (pasky)
20 years ago
darkvater
76341a9173
(svn r556) -newgrf: Some seemingly proper support for loading stages of grf files (octo & pasky).
20 years ago
darkvater
27b48faad2
(svn r554) -newgrf: Keep track of GRF files. Remember them all in a linked list, this already enables tests for an already loaded GRF file in SkipIf(). Patch by octo, heavily re-hammered by pasky
20 years ago
darkvater
015cb74dd9
(svn r553) -newgrf: Special routine for loading newgrf files. LoadNewGrfFile() introduced; will get more handy when loading stages will be introduced (octo and pasky).
20 years ago
darkvater
7accdb9003
(svn r552) -newgrf: Include bits forgotten when merging octo's ReplaceSprites support - it would replace even special sprites in the way now. (pasky)
20 years ago
darkvater
16f8a7b2d2
(svn r549) -newgrf: Support for action 0xd (change a parameter (sorta variable for the GRF scripts)). Based on patch by octo, heavy changes by pasky.
20 years ago
truelight
0a04fe95c9
(svn r185) -Fix: [1016954] Cached_sprites does now work again
20 years ago
darkvater
de18c544cc
(svn r183) -Fix: fix landscape-toolbar crash when newgrf are enabled. Dominik forgot to add +1 to index upon load :)
20 years ago