summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-06-16 23:19:49 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-06-16 23:19:49 +0000
commitc1dc50109d7f3883a897b4cf4538e2158268fe9e (patch)
tree45e7bd8efa9b60d5144cef8d320344270cc8ea52
parentbbb9da3f8ce19421e7fe9f12e7401f7d84989cc0 (diff)
downloadrockbox-c1dc50109d7f3883a897b4cf4538e2158268fe9e.tar.gz
rockbox-c1dc50109d7f3883a897b4cf4538e2158268fe9e.zip
Ahem ... fix compilation. I also forgot to mention that puzzle images don't look good atm so if anyone wants to draw nice ones ... feel free to do so.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13645 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/jewels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index 20fb60c808..f91ea384c4 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -1144,7 +1144,7 @@ static unsigned int jewels_initlevel(struct game_context* bj) {
for(i=0; i<BJ_HEIGHT; i++) {
for(j=0; j<BJ_WIDTH; j++) {
- bj->playboard[i][j].type = (rand()%bj->num_jewels)+1;
+ bj->playboard[i][j].type = (rb->rand()%bj->num_jewels)+1;
bj->playboard[i][j].falling = false;
bj->playboard[i][j].delete = false;
}