summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transfor.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-29 08:47:39 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-29 08:47:39 +0000
commitb51817cbfd4a52f6d66ed5e7580ad3b0c75ffef2 (patch)
tree104821515eb763049e31194aa56b0e4a87ee180e /crawl-ref/source/transfor.cc
parent04d222f4d73f54788556281eabb2e09aae7ff20d (diff)
downloadcrawl-ref-b51817cbfd4a52f6d66ed5e7580ad3b0c75ffef2.tar.gz
crawl-ref-b51817cbfd4a52f6d66ed5e7580ad3b0c75ffef2.zip
Teeny bit more typesafety.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1392 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r--crawl-ref/source/transfor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index 887b42521b..36f067063c 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -110,7 +110,7 @@ size_type player::transform_size(int psize) const
}
}
-bool transform(int pow, char which_trans)
+bool transform(int pow, transformation_type which_trans)
{
if (you.species == SP_MERFOLK && player_is_swimming()
&& which_trans != TRAN_DRAGON)
@@ -359,6 +359,9 @@ bool transform(int pow, char which_trans)
you.symbol = 'S';
you.colour = RED;
return (true);
+ case TRAN_NONE:
+ case NUM_TRANSFORMATIONS:
+ break;
}
return (false);