diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-28 01:33:20 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-28 01:33:20 +0000 |
commit | 91d2dd8e666a0aa8d77456ff8af2c13cdba4ee4b (patch) | |
tree | 173f362eebfd174e0152b8489f40df1035e79c62 /crawl-ref/source/tilemcache.cc | |
parent | 460910fa3e07893d18f2280ff49031e204a1ad02 (diff) | |
download | crawl-ref-91d2dd8e666a0aa8d77456ff8af2c13cdba4ee4b.tar.gz crawl-ref-91d2dd8e666a0aa8d77456ff8af2c13cdba4ee4b.zip |
* Tweak Snorg's tile to increase the difference to the plain troll.
* Add a new tile each for the flaming corpse and trapdoor spider.
* Add a sticky flame overlay for the player tile.
* Move all unique monsters into dc-mon/unique (minus Adolf).
* Remove comments and commented out monsters from the tile definitions.
* Minor comment fixes and code cleanup.
I'm really starting to get the hang of the tile creation. :)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7665 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilemcache.cc')
-rw-r--r-- | crawl-ref/source/tilemcache.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/crawl-ref/source/tilemcache.cc b/crawl-ref/source/tilemcache.cc index 46cdc3c023..a1f4fca1b8 100644 --- a/crawl-ref/source/tilemcache.cc +++ b/crawl-ref/source/tilemcache.cc @@ -5,7 +5,7 @@ mcache_manager mcache; -// Used internally for streaming +// Used internally for streaming. enum mcache_type { MCACHE_MONSTER, @@ -21,17 +21,13 @@ enum mcache_type static void unmarshallDoll(reader &th, dolls_data &doll) { for (unsigned int i = 0; i < TILEP_PART_MAX; i++) - { doll.parts[i] = unmarshallLong(th); - } } static void marshallDoll(writer &th, const dolls_data &doll) { for (unsigned int i = 0; i < TILEP_PART_MAX; i++) - { marshallLong(th, doll.parts[i]); - } } static void unmarshallDemon(reader &th, demon_data &demon) @@ -661,10 +657,10 @@ mcache_ghost::mcache_ghost(const monsters *mon) for (int p = TILEP_PART_CLOAK; p < TILEP_PART_MAX; p++) { - if (m_doll.parts[p] == TILEP_SHOW_EQUIP) - { - int part_offset = pseudo_rand % tile_player_part_count[p]; - m_doll.parts[p] = tile_player_part_start[p] + part_offset; + if (m_doll.parts[p] == TILEP_SHOW_EQUIP) + { + int part_offset = pseudo_rand % tile_player_part_count[p]; + m_doll.parts[p] = tile_player_part_start[p] + part_offset; } } |