reversecount, avoid fish on the first ice block

I have done a simple fix. When the rest of / 16 was equal to zero I incremented the fish position.
I tested and it seems to work.
I think this is not a problem , because when fishindex will be equal to 17,
in the following line
items.fishToReach.x = iceBlocksLayout[fishIndex %
iceBlocksLayout.length][0] * items.background.width / 5 +
(items.background.width / 5 - items.tux.width) / 2
fishIndex % iceBlocksLayout.length will place it in position 1.
I tryed it and it seems to work.






2014-06-09 22:04 GMT+02:00 Bruno Coudoin <notifications@github.com>:

> In src/activities/reversecount/reversecount.js:
>
> > @@ -268,6 +268,7 @@ function calculateNextPlaceFishToReach() {
> >      previousFishIndex = newFishIndex
> >
> >      fishIndex = tuxIceBlockNumber + newFishIndex
> > +    if (fishIndex % iceBlocksLayout.length == 0) fishIndex++
>
> I would do a fishIndex-- to put the fish before the last block. I am not
> sure how it is supported to have a fishIndex > of the number of blocks?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bdoin/GCompris-qt/pull/36/files#r13561462>.
>