diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 06:26:57 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 06:29:52 -0700 |
commit | 73caeb4198e8321a6de37934b1120779469cae89 (patch) | |
tree | b84044a47f45ac9306c1cb33df8f0fef35f3cd30 /crawl-ref/source/effects.cc | |
parent | 48a7ef0bd95493853b8481eccfda76c169d04381 (diff) | |
download | crawl-ref-73caeb4198e8321a6de37934b1120779469cae89.tar.gz crawl-ref-73caeb4198e8321a6de37934b1120779469cae89.zip |
project-wide: fix msvc compile breakage
MSVC is like a chimp with Down's syndrome.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 6c4dc207bc..975cd9b593 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -4196,7 +4196,7 @@ struct greater_second // out which arc the input point pos falls on. static int _arc_decomposition(const coord_def & pos, int n_arcs) { - float theta = atan2(pos.y, pos.x); + float theta = atan2((float)pos.y, (float)pos.x); if (pos.x == 0 && pos.y != 0) theta = pos.y > 0 ? PI / 2 : -PI / 2; |