[quadrapassel] Revert "Allow preview next block with pick difficult block"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Revert "Allow preview next block with pick difficult block"
- Date: Wed, 22 May 2013 21:09:03 +0000 (UTC)
commit d0b9c74674d3ffd74005ddc9a4ac98adc76c6247
Author: Michael Catanzaro <mike catanzaro gmail com>
Date: Wed May 22 16:04:34 2013 -0500
Revert "Allow preview next block with pick difficult block"
This reverts commit e5a2e7abeea48b94a00902e17f27534f5157e7f3.
src/game.vala | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 5ce78ca..31e9eb2 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -311,9 +311,7 @@ public class Game : Object
}
}
- if (pick_difficult_blocks)
- next_shape = pick_difficult_shape ();
- else
+ if (!pick_difficult_blocks)
next_shape = pick_random_shape ();
}
@@ -428,12 +426,13 @@ public class Game : Object
private void add_shape ()
{
- shape = (owned) next_shape;
-
if (pick_difficult_blocks)
- next_shape = pick_difficult_shape ();
+ shape = pick_difficult_shape ();
else
+ {
+ shape = (owned) next_shape;
next_shape = pick_random_shape ();
+ }
foreach (var b in shape.blocks)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]