From 14bfaca7e0b40811a7e7a3bb5ebe1ac952dbbbb7 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sat, 12 Dec 2009 15:47:21 -0800 Subject: 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 --- crawl-ref/source/player.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') 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) -- cgit v1.2.3-54-g00ecf