[Pkg-wmaker-commits] [wmbubble] 74/207: Fix thing that looks suspiciously like an error in the fixed-point math from the very beginning.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmbubble.
commit 8828e720f63b17fa28576a9ca12274f6051d0116
Author: Robert Jacobs <rnjacobs at mit.edu>
Date: Tue Aug 16 01:01:20 2011 -0700
Fix thing that looks suspiciously like an error in the fixed-point
math from the very beginning.
---
bubblemon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bubblemon.c b/bubblemon.c
index 667520c..bd0efcc 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -705,7 +705,7 @@ void bubblemon_update(int loadPercentage) {
&& ((rand() % 101) <= loadPercentage)) {
/* We don't allow bubbles on the edges 'cause we'd have to clip them */
bubbles[bm.n_bubbles].x = (rand() % (BOX_SIZE-2)) + 1;
- bubbles[bm.n_bubbles].y = MAKEY(BOX_SIZE) - 256;
+ bubbles[bm.n_bubbles].y = MAKEY(BOX_SIZE-1);
bubbles[bm.n_bubbles].dy = 0;
#ifdef DEBUG_DUCK
fprintf (stderr, "new bubble: bubbles[bm.n_bubbles].x = %i\n",
@@ -816,7 +816,7 @@ void bubblemon_update(int loadPercentage) {
bubblebuf_ptr += BOX_SIZE-2;
/* Bottom row */
- if (y < (MAKEY(BOX_SIZE) - 256)) {
+ if (y < MAKEY(BOX_SIZE-1)) {
if (*bubblebuf_ptr < aircolor) {
(*bubblebuf_ptr)++;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git
More information about the Pkg-wmaker-commits
mailing list