Fix crash in chatplus, and bug in ctf_stats

This commit is contained in:
rubenwardy 2015-12-31 21:47:46 +00:00
parent c6397fe5f1
commit 84b81ad810
2 changed files with 1 additions and 3 deletions

View file

@ -200,7 +200,7 @@ function chatplus.send(from, msg)
-- Send message
if res == nil or res == true then
minetest.chat_send_player(key, "<" .. from .. "> " .. msg)
minetest.chat_send_player(to, "<" .. from .. "> " .. msg)
end
end
end

View file

@ -25,8 +25,6 @@ local function calc_scores(players)
local kd = pstat.kills
if pstat.deaths > 0 then
kd = kd / pstat.deaths
elseif kd > 30 then
kd = 30
end
--[[local killbonus = 0
if pstat.kills > 50 and pstat.kills < 200 then