From 84f13cfe635d9db4df398670d1e76611905affbc Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 10 Feb 2015 23:39:15 -0500 Subject: [PATCH] fix compiling error on windows --- src/simulation/elements/SING.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/SING.cpp b/src/simulation/elements/SING.cpp index f38d7bfcd..36d986306 100644 --- a/src/simulation/elements/SING.cpp +++ b/src/simulation/elements/SING.cpp @@ -83,7 +83,7 @@ int Element_SING::update(UPDATE_FUNC_ARGS) } } spawncount = std::abs(parts[i].tmp); - spawncount = (spawncount>255) ? 3019 : std::pow((int)(spawncount/8), 2)*M_PI; + spawncount = (spawncount>255) ? 3019 : std::pow((double)(spawncount/8), 2)*M_PI; for (int j = 0;j < spawncount; j++) { switch(rand()%3)