Enlightenment CVS committal Author : davemds Project : e_modules Module : penguins
Dir : e_modules/penguins Modified Files: e_mod_main.c Log Message: Less penguins going to splat =================================================================== RCS file: /cvs/e/e_modules/penguins/e_mod_main.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- e_mod_main.c 8 Nov 2007 16:36:04 -0000 1.6 +++ e_mod_main.c 8 Nov 2007 16:57:04 -0000 1.7 @@ -7,7 +7,7 @@ #define CLIMBER_PROB 4 // 4 Means: one climber every 5 - 1 Means: all climber - !!Don't set to 0 -#define FLOATER_PROB 2 +#define FALLING_PROB 5 #define MAX_FALLER_HEIGHT 300 #define FLYER_PROB 1000 // every n animation cicle @@ -713,38 +713,38 @@ static void _start_falling_at(Penguin *tux, int at_x) { - if (_RAND(FLOATER_PROB)) + if (_RAND(FALLING_PROB)) { - //printf("Start floating...\n"); - tux->action = evas_hash_find(tux->pop->actions, "Floater"); + //printf("Start falling...\n"); + tux->action = evas_hash_find(tux->pop->actions, "Faller"); evas_object_resize(tux->obj, tux->action->w, tux->action->h); if (tux->reverse) { tux->x = (double)(at_x - tux->action->w); - edje_object_signal_emit(tux->obj, "start_floating_left", "epenguins"); + edje_object_signal_emit(tux->obj, "start_falling_left", "epenguins"); } else { tux->x = (double)at_x; - edje_object_signal_emit(tux->obj, "start_floating_right", "epenguins"); + edje_object_signal_emit(tux->obj, "start_falling_right", "epenguins"); } } else { - //printf("Start falling...\n"); - tux->action = evas_hash_find(tux->pop->actions, "Faller"); + //printf("Start floating...\n"); + tux->action = evas_hash_find(tux->pop->actions, "Floater"); evas_object_resize(tux->obj, tux->action->w, tux->action->h); if (tux->reverse) { tux->x = (double)(at_x - tux->action->w); - edje_object_signal_emit(tux->obj, "start_falling_left", "epenguins"); + edje_object_signal_emit(tux->obj, "start_floating_left", "epenguins"); } else { tux->x = (double)at_x; - edje_object_signal_emit(tux->obj, "start_falling_right", "epenguins"); + edje_object_signal_emit(tux->obj, "start_floating_right", "epenguins"); } } tux->faller_h = (int)tux->y; ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs