From ba328d913eab395ca28961988d44436e613aa106 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 10 Jul 2012 09:22:51 +0200 Subject: [PATCH] math.mod is deprecated --- scripts/e3a/frost.lua | 4 ++-- scripts/eressea/adamant.lua | 2 +- scripts/eressea/igjaruk.lua | 2 +- scripts/eressea/tunnels.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/e3a/frost.lua b/scripts/e3a/frost.lua index 31bf9fe6f..f60d557fb 100644 --- a/scripts/e3a/frost.lua +++ b/scripts/e3a/frost.lua @@ -13,14 +13,14 @@ end local function freeze(r, chance) for i, rn in ipairs(r.adj) do -- each region has a chance to freeze - if rn.terrain=="ocean" and (chance>=100 or math.mod(rng_int(), 100)=100 or math.fmod(rng_int(), 100)=100 or math.mod(rng_int(), 100)=100 or math.fmod(rng_int(), 100)