summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick-p.cc
diff options
context:
space:
mode:
authorontoclasm <yokomeshi@gmail.com>2014-07-17 16:32:06 +0100
committerontoclasm <yokomeshi@gmail.com>2014-07-17 16:48:28 +0100
commit50602807d25a4381f9af7b85985fa404a4700a96 (patch)
treeac42e7b162ae425690ed07109071a0cd6d100f73 /crawl-ref/source/tilepick-p.cc
parente2d3cf676d586bd66dc773e8cab7060aba9f62ed (diff)
downloadcrawl-ref-50602807d25a4381f9af7b85985fa404a4700a96.tar.gz
crawl-ref-50602807d25a4381f9af7b85985fa404a4700a96.zip
Add an option to show player as a monster tile
Setting tile_show_player_species replaces the normal doll with the player's race's monster tile.
Diffstat (limited to 'crawl-ref/source/tilepick-p.cc')
-rw-r--r--crawl-ref/source/tilepick-p.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/tilepick-p.cc b/crawl-ref/source/tilepick-p.cc
index 79a9131fd9..cfa125a703 100644
--- a/crawl-ref/source/tilepick-p.cc
+++ b/crawl-ref/source/tilepick-p.cc
@@ -9,6 +9,7 @@
#include "describe.h"
#include "itemname.h"
#include "itemprop.h"
+#include "options.h"
#include "player.h"
#include "tiledef-player.h"
#include "tiledef-unrand.h"
@@ -498,11 +499,15 @@ tileidx_t tileidx_player()
break;
}
// no special tile
- case TRAN_BLADE_HANDS: break;
+ case TRAN_BLADE_HANDS:
case TRAN_APPENDAGE:
case TRAN_NONE:
default:
- break;
+ {
+ if (Options.tile_show_player_species)
+ ch = tileidx_player_mons();
+ break;
+ }
}
// Currently, the flying flag is only used for not drawing the tile in the