gnome-games r8703 - trunk/gnometris
- From: jclinton svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8703 - trunk/gnometris
- Date: Wed, 11 Feb 2009 03:42:53 +0000 (UTC)
Author: jclinton
Date: Wed Feb 11 03:42:53 2009
New Revision: 8703
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8703&view=rev
Log:
Make moving on the top of existing block data more resilient.
Modified:
trunk/gnometris/blockops.cpp
Modified: trunk/gnometris/blockops.cpp
==============================================================================
--- trunk/gnometris/blockops.cpp (original)
+++ trunk/gnometris/blockops.cpp Wed Feb 11 03:42:53 2009
@@ -106,17 +106,10 @@
b.what = EMPTY;
color = b.color;
b.color = 0;
-/* if (actor) {
- int cur_x, cur_y = 0;
- g_object_get (G_OBJECT (actor), "x", &cur_x, "y", &cur_y, NULL);
- clutter_actor_raise_top (actor);
- clutter_effect_fade (explode_tmpl, actor, 0, NULL, NULL);
- clutter_effect_move (explode_tmpl, actor,
- cur_x + g_random_int_range(f->cell_width * -5, f->cell_width * 5),
- cur_y + g_random_int_range(f->cell_height * -5, f->cell_height * 5),
- NULL, NULL);
+ if (actor) {
+ //this shouldn't happen
destroy_actors = g_list_append (destroy_actors, actor);
- }*/
+ }
if (b.actor) {
const ClutterKnot knot_line[] = {{b.x, b.y}, {x, y}};
fall_path = clutter_behaviour_path_new (fall_alpha, knot_line, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]