Skip to content
This repository
Browse code

Some minor cleanups

  • Loading branch information...
commit 70b93cdd5abd46868446a101bc8220711d863a60 1 parent 40d210e
authored August 29, 2012
15  lua/entities/gmod_wire_expression2/core/string.lua
@@ -361,21 +361,6 @@ e2function string string:replaceRE(string pattern, string new)
361 361
 	end
362 362
 end
363 363
 
364  
-local specialchars = {
365  
-	["%"] = true,
366  
-	["^"] = true,
367  
-	["$"] = true,
368  
-	["("] = true,
369  
-	[")"] = true,
370  
-	["."] = true,
371  
-	["["] = true,
372  
-	["]"] = true,
373  
-	["*"] = true,
374  
-	["+"] = true,
375  
-	["-"] = true,
376  
-	["?"] = true
377  
-}
378  
-
379 364
 __e2setcost(5)
380 365
 
381 366
 --- Splits the string into an array, along the boundaries formed by the string <pattern>. See also [[string.Explode]]
4  lua/weapons/gmod_tool/stools/wire_debugger.lua
@@ -57,7 +57,7 @@ function TOOL:RightClick(trace)
57 57
 		end
58 58
 	end
59 59
 	if not next(Components[ply_idx]) then
60  
-		umsg.Start("WireDbgLineCount", ply)
  60
+		umsg.Start("WireDbgLineCount", self:GetOwner())
61 61
 			umsg.Short(0)
62 62
 		umsg.End()
63 63
 		Components[ply_idx] = nil
@@ -138,7 +138,7 @@ end
138 138
 
139 139
 function TOOL:Reload(trace)
140 140
 	if (CLIENT) then return end
141  
-	umsg.Start("WireDbgLineCount", ply)
  141
+	umsg.Start("WireDbgLineCount", self:GetOwner())
142 142
 		umsg.Short(0)
143 143
 	umsg.End()
144 144
 	Components[self:GetOwner()] = nil

0 notes on commit 70b93cd

Please sign in to comment.
Something went wrong with that request. Please try again.