[ create a new paste ] login | about

Link: http://codepad.org/2lx1TrgV    [ raw code | fork ]

Lua, pasted on Sep 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- D:/Data/Dokumente/Administrator's Documents/wiremod/glon-orig.lua	Mo Sep  7 16:53:06 2009
+++ D:/Data/Dokumente/Administrator's Documents/wiremod/glon.lua	Mo Sep  7 16:57:20 2009
@@ -143,6 +143,11 @@
 		return o.r.."\1"..o.g.."\1"..o.b.."\1"..o.a.."\1"
 	end},
 }
+
+for _,tp in ipairs({"NPC","Vehicle","Weapon"}) do
+	encode_types[tp] = encode_types.Entity
+end
+
 function Write(data, rtabs)
 	local t = encode_types[type(data)]
 	if t then


Create a new paste based on this one


Comments: