mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Silly MSVC doesn't know how to handle type conversions for parameters of pow(). Help it.
This commit is contained in:
parent
a91eb36277
commit
fe64f2b673
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ public:
|
||||||
float chance = abm->getTriggerChance();
|
float chance = abm->getTriggerChance();
|
||||||
if(chance == 0)
|
if(chance == 0)
|
||||||
chance = 1;
|
chance = 1;
|
||||||
aabm.chance = 1.0 / pow(1.0 / chance, intervals);
|
aabm.chance = 1.0 / pow((float)1.0/chance, (float)intervals);
|
||||||
if(aabm.chance == 0)
|
if(aabm.chance == 0)
|
||||||
aabm.chance = 1;
|
aabm.chance = 1;
|
||||||
std::set<std::string> contents_s = abm->getTriggerContents();
|
std::set<std::string> contents_s = abm->getTriggerContents();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue