Fix crash in chatplus, and bug in ctf_stats
This commit is contained in:
parent
c6397fe5f1
commit
84b81ad810
2 changed files with 1 additions and 3 deletions
|
@ -200,7 +200,7 @@ function chatplus.send(from, msg)
|
||||||
|
|
||||||
-- Send message
|
-- Send message
|
||||||
if res == nil or res == true then
|
if res == nil or res == true then
|
||||||
minetest.chat_send_player(key, "<" .. from .. "> " .. msg)
|
minetest.chat_send_player(to, "<" .. from .. "> " .. msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,8 +25,6 @@ local function calc_scores(players)
|
||||||
local kd = pstat.kills
|
local kd = pstat.kills
|
||||||
if pstat.deaths > 0 then
|
if pstat.deaths > 0 then
|
||||||
kd = kd / pstat.deaths
|
kd = kd / pstat.deaths
|
||||||
elseif kd > 30 then
|
|
||||||
kd = 30
|
|
||||||
end
|
end
|
||||||
--[[local killbonus = 0
|
--[[local killbonus = 0
|
||||||
if pstat.kills > 50 and pstat.kills < 200 then
|
if pstat.kills > 50 and pstat.kills < 200 then
|
||||||
|
|
Loading…
Reference in a new issue