summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-12-12 15:47:21 -0800
committerSteven Noonan <steven@uplinklabs.net>2009-12-12 15:49:14 -0800
commit14bfaca7e0b40811a7e7a3bb5ebe1ac952dbbbb7 (patch)
tree5a7e4bdc536437a9bc51d1b856bd1f5107812c15 /crawl-ref/source/player.cc
parent3325e633107071090ed2b1134b7a79e0fd0f84d8 (diff)
downloadcrawl-ref-14bfaca7e0b40811a7e7a3bb5ebe1ac952dbbbb7.tar.gz
crawl-ref-14bfaca7e0b40811a7e7a3bb5ebe1ac952dbbbb7.zip
tiles: only include tiledef-*.h in files where they're needed
This eliminates the annoying full rebuild that happens when the tiledefs are modified. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 3f01f0b354..cc1b2f1fd7 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -68,9 +68,25 @@
#include "view.h"
#include "shout.h"
#include "viewgeom.h"
-#include "tiles.h"
#include "xom.h"
+#ifdef USE_TILE
+#include "tiles.h"
+#include "tiledef-player.h"
+
+dolls_data::dolls_data()
+{
+ parts = new int[TILEP_PART_MAX];
+ memset(parts, 0, TILEP_PART_MAX * sizeof(int));
+}
+
+dolls_data::~dolls_data()
+{
+ delete [] parts;
+ parts = NULL;
+}
+#endif
+
std::string pronoun_you(description_level_type desc)
{
switch (desc)