seed r839 - trunk/examples/same-seed



Author: hortont
Date: Tue Feb  3 15:30:08 2009
New Revision: 839
URL: http://svn.gnome.org/viewvc/seed?rev=839&view=rev

Log:
Fix exception in sameseed.


Modified:
   trunk/examples/same-seed/board.js
   trunk/examples/same-seed/main.js

Modified: trunk/examples/same-seed/board.js
==============================================================================
--- trunk/examples/same-seed/board.js	(original)
+++ trunk/examples/same-seed/board.js	Tue Feb  3 15:30:08 2009
@@ -18,8 +18,8 @@
 			window.window.get_pointer(x, y, null);
 			
 			var picked = stage.get_actor_at_pos(x.value, y.value).get_parent();
-			
-			light_lights_from(picked);
+			if(picked && picked.get_light_x)
+				light_lights_from(picked);
 			
 			return false;
 		}

Modified: trunk/examples/same-seed/main.js
==============================================================================
--- trunk/examples/same-seed/main.js	(original)
+++ trunk/examples/same-seed/main.js	Tue Feb  3 15:30:08 2009
@@ -7,7 +7,7 @@
 var tile_size = 50;
 var offset = tile_size/2;
 
-var max_colors = 4;
+var max_colors = 3;
 var fly_score = true;
 
 Seed.import_namespace("Gtk");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]