From 47b8018228f8d461a1487182ad176bfd41e55e9c Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Thu, 21 Jan 2021 21:39:18 -0500 Subject: Fix animation to be unsync'd --- ur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ur.cpp b/ur.cpp index 5b4faa8..dc61eb3 100644 --- a/ur.cpp +++ b/ur.cpp @@ -108,8 +108,8 @@ render_dice(sf::RenderWindow* window, if (animation_frame_timer->is_completed()) { // iterate over each pair of dice sprites // and show whichever matches the roll - int result = dice_rand.next(); for (int i = 0; i < 8; i += 2) { + int result = dice_rand.next(); (*dice)[i].show = result == 0; (*dice)[i + 1].show = result == 1; } -- cgit v1.2.3-54-g00ecf