r1755 - trunk/data/maps

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jul 11 13:50:03 EDT 2006


Author: div0
Date: 2006-07-11 13:50:03 -0400 (Tue, 11 Jul 2006)
New Revision: 1755

Modified:
   trunk/data/maps/entmerge.rb
Log:
Well, I told you it is broken. func_group has to be kept as is too.

Just for the record: trust me, it is still broken. Didn't test it much... use at your own risk.


Modified: trunk/data/maps/entmerge.rb
===================================================================
--- trunk/data/maps/entmerge.rb	2006-07-11 17:38:52 UTC (rev 1754)
+++ trunk/data/maps/entmerge.rb	2006-07-11 17:50:03 UTC (rev 1755)
@@ -127,12 +127,14 @@
 ent = mapparse(preprocess(entstr))
 
 submodels = []
-lights = []
+unchanged = []
 
 map.each() do |e|
 	case
 		when e['classname'] == 'light'
-			lights << e
+			unchanged << e
+		when e['classname'] == 'func_group'
+			unchanged << e
 		when e[:brushes]
 			submodels << e[:brushes]
 	end
@@ -147,7 +149,7 @@
 end
 
 File.open("#{base}.map", "w") do |fh|
-	mapout(ent + lights) do |l|
+	mapout(ent + unchanged) do |l|
 		fh.puts(l)
 	end
 end




More information about the nexuiz-commits mailing list