summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/cloud.cc2
-rw-r--r--crawl-ref/source/mutation.cc2
-rw-r--r--crawl-ref/source/ouch.cc3
3 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index 907bfbe124..0da8010083 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -42,6 +42,7 @@ static int _actual_spread_rate(cloud_type type, int spread_rate)
}
}
+#ifdef DEBUG
static bool _killer_whose_match(kill_category whose, killer_type killer)
{
switch (whose)
@@ -60,6 +61,7 @@ static bool _killer_whose_match(kill_category whose, killer_type killer)
}
return (false);
}
+#endif
static void _new_cloud( int cloud, cloud_type type, const coord_def& p,
int decay, kill_category whose, killer_type killer,
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index f09120eabb..e984c88972 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -1920,6 +1920,7 @@ static mutation_type _get_random_mutation(bool prefer_good,
return (chosen);
}
+#ifdef DEBUG
static bool _is_random(mutation_type which_mutation)
{
return (which_mutation == RANDOM_MUTATION
@@ -1927,6 +1928,7 @@ static bool _is_random(mutation_type which_mutation)
|| which_mutation == RANDOM_GOOD_MUTATION
|| which_mutation == RANDOM_BAD_MUTATION);
}
+#endif
// Tries to give you the mutation by deleting a conflicting
// one, or clears out conflicting mutations if we should give
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 45a31c189c..27b382fa6c 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -887,7 +887,7 @@ static void _maybe_spawn_jellies(int dam, const char* aux,
}
-
+#ifdef WIZARD
static void _wizard_restore_life()
{
if (you.hp <= 0)
@@ -909,6 +909,7 @@ static void _wizard_restore_life()
you.redraw_intelligence = true;
}
}
+#endif
// death_source should be set to NON_MONSTER for non-monsters. {dlb}
void ouch(int dam, int death_source, kill_method_type death_type,