Bug 452255 - 'Logical associations' game: interrupting a level inherits level progress to new level
Summary: 'Logical associations' game: interrupting a level inherits level progress to ...
Status: RESOLVED FIXED
Alias: None
Product: gcompris
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Jazeix Johnny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-04 08:59 UTC by Øystein Steffensen-Alværvik
Modified: 2022-04-04 10:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Level that was interrupted (180.68 KB, image/jpeg)
2022-04-04 08:59 UTC, Øystein Steffensen-Alværvik
Details
Level that I skipped to after interrupting the previous level (178.89 KB, image/jpeg)
2022-04-04 09:00 UTC, Øystein Steffensen-Alværvik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Øystein Steffensen-Alværvik 2022-04-04 08:59:40 UTC
Created attachment 147951 [details]
Level that was interrupted

SUMMARY
***
In the game 'Logical associations', interrupting a level (i.e. only partially finishing it) and then skipping to a different level causes the level the player skipped to to 'inherit' the progress from the interrupted level. Please see screenshots.
***


STEPS TO REPRODUCE
1. Start the game 'Logical associations'
2. Select 1-3 of the correct fruits (i.e. don't finish the level)
3. Skip to a different level
4. Try to select the correct fruit in the new level
5. Observe that you can't
6. Select all the other fruits until a fruit is displayed on the first line
6. Observe the misplacement

SOFTWARE/OS VERSIONS
Fedora KDE
GCompris 2.3 – flatpak version from Flathub
Comment 1 Øystein Steffensen-Alværvik 2022-04-04 09:00:34 UTC
Created attachment 147952 [details]
Level that I skipped to after interrupting the previous level
Comment 2 Jazeix Johnny 2022-04-04 09:37:35 UTC
Hi,

thank you for the report.
I can reproduce. I'll take a look tonight if nobody beats me. It seems an issue with the index not being correctly reseted.

Cheers
Comment 3 animtim 2022-04-04 10:13:27 UTC
Git commit 61af173d1ed35bc769ca840d78cd6d003b96464d by Timothée Giet.
Committed on 04/04/2022 at 10:10.
Pushed by timotheegiet into branch 'master'.

algorithm, fix choiceCount not reset on level changed manually

move choiceCount reset in setUp function which is always called
when loading new level or sublevel.

M  +2    -1    src/activities/algorithm/algorithm.js

https://invent.kde.org/education/gcompris/commit/61af173d1ed35bc769ca840d78cd6d003b96464d