diff options
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index ce25b0fe7..1951996a2 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -592,7 +592,7 @@ public: float chance = abm->getTriggerChance(); if(chance == 0) 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) aabm.chance = 1; std::set<std::string> contents_s = abm->getTriggerContents(); |