Skip to content

Commit

Permalink
Clumsy mistakes fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Stevens committed Jan 27, 2014
1 parent 228e317 commit 067e786
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions garrysmod/gamemodes/base/gamemode/cl_deathnotice.lua
Expand Up @@ -42,7 +42,7 @@ local function PlayerIDOrNameToString( var )
end


local function RecvPlayerKilledByPlayer( _ )
local function RecvPlayerKilledByPlayer()

local victim = net.ReadEntity();
local inflictor = net.ReadString();
Expand All @@ -57,7 +57,7 @@ end

net.Receive( "PlayerKilledByPlayer", RecvPlayerKilledByPlayer )

local function RecvPlayerKilledSelf( _ )
local function RecvPlayerKilledSelf()

local victim = net.ReadEntity();
if ( !IsValid( victim ) ) then return end
Expand All @@ -68,7 +68,7 @@ end
net.Receive( "PlayerKilledSelf", RecvPlayerKilledSelf )


local function RecvPlayerKilled( _ )
local function RecvPlayerKilled()

local victim = net.ReadEntity();
if ( !IsValid( victim ) ) then return end
Expand All @@ -81,7 +81,7 @@ end

net.Receive( "PlayerKilled", RecvPlayerKilled )

local function RecvPlayerKilledNPC( _ )
local function RecvPlayerKilledNPC()

local victimtype = net.ReadString();
local victim = "#" .. victimtype;
Expand Down Expand Up @@ -117,7 +117,7 @@ end
net.Receive( "PlayerKilledNPC", RecvPlayerKilledNPC )


local function RecvNPCKilledNPC( _ )
local function RecvNPCKilledNPC()

local victim = "#" .. net.ReadString();
local inflictor = net.ReadString();
Expand Down
4 changes: 2 additions & 2 deletions garrysmod/gamemodes/base/gamemode/npc.lua
Expand Up @@ -36,7 +36,7 @@ function GM:OnNPCKilled( ent, attacker, inflictor )
net.WriteString( InflictorClass )
net.WriteEntity( attacker )
net.End()
net.Broadcast()
return
end
Expand All @@ -50,7 +50,7 @@ function GM:OnNPCKilled( ent, attacker, inflictor )
net.WriteString( InflictorClass )
net.WriteString( AttackerClass )
net.End()
net.Broadcast()
end
Expand Down
4 changes: 2 additions & 2 deletions garrysmod/lua/includes/modules/undo.lua
Expand Up @@ -57,7 +57,7 @@ if ( CLIENT ) then
AddUndo
Called from server. Adds a new undo to our UI
-----------------------------------------------------------]]
local function AddUndo( _ )
local function AddUndo()
local k = net.ReadInt(16);
local v = net.ReadString();
Expand All @@ -77,7 +77,7 @@ if ( CLIENT ) then
has been undone or made redundant. We act by updating
out data (We wait until the UI is viewed until updating)
-----------------------------------------------------------]]
local function Undone( _ )
local function Undone()
local key = net.ReadInt(16);
Expand Down

0 comments on commit 067e786

Please sign in to comment.