Skip to content

Commit

Permalink
Fix crash in chatplus, and bug in ctf_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Dec 31, 2015
1 parent c6397fe commit 84b81ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion mods/chatplus/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions mods/ctf_stats/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84b81ad

Please sign in to comment.