Bug 436 - Incorrect case of duplicate storing score operations.
Summary: Incorrect case of duplicate storing score operations.
Status: RESOLVED FIXED
Alias: None
Product: Group16_Tetris Fighter
Classification: Unclassified
Component: SidePanel (show other bugs)
Version: V2
Hardware: PC Windows
: --- enhancement
Assignee: Ashley
URL:
Depends on:
Blocks:
 
Reported: 2020-11-22 17:00 HKT by Ashley
Modified: 2020-11-24 22:38 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley 2020-11-22 17:00:04 HKT
Incorrect prompt of duplicate storing score operations will show when the 'store score' button was clicked for the first time after a game ended.

This bug is caused by a lack of setting back the value of boolean 'isStore' to false after it was set to true in the previous game.

We handled this bug by adding the following code:

if(!tetris.isGameOver||tetris.isNewGame())
   isStore=false;
Comment 1 Ashley 2020-11-24 21:59:46 HKT
ohhh