diff options
author | Benjamin Otte <otte@redhat.com> | 2011-10-16 23:46:07 -0700 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-10-16 23:46:07 -0700 |
commit | 5bffe9f2aebdbc3007c826fafcca48ca70439af4 (patch) | |
tree | f99804de8e3ed8a2cd8f783b6aba7e342067ecfb | |
parent | 0425b7ecb7669b705d88911113d973573c8c8de7 (diff) |
sheep: Setting the graphic once should be enough
-rw-r--r-- | games/sheep/sheep-car.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/games/sheep/sheep-car.c b/games/sheep/sheep-car.c index 31a1a61..92738cd 100644 --- a/games/sheep/sheep-car.c +++ b/games/sheep/sheep-car.c @@ -95,7 +95,6 @@ sheep_car_collide (GameActor *car, GameActor *sheep) if (GAME_SPRITE (sheep)->graphic == SHEEP_CAR (car)->stuff->sheep) { GamePlayer *player = SHEEP_CAR (car)->player; g_object_set (sheep, "graphic", SHEEP_CAR (car)->stuff->boom, NULL); - g_object_set (sheep, "graphic", SHEEP_CAR (car)->stuff->boom, NULL); game_player_add_score (player, "lives", -1); if (game_player_get_score (player, "lives") <= 0) game_player_die (player); |