fix compiling error on windows

This commit is contained in:
jacob1 2015-02-10 23:39:15 -05:00
parent 62040154d9
commit 84f13cfe63

View File

@ -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)