Bug 436

Summary: Incorrect case of duplicate storing score operations.
Product: Group16_Tetris Fighter Reporter: Ashley <tecchk.cy>
Component: SidePanelAssignee: Ashley <tecchk.cy>
Status: RESOLVED FIXED    
Severity: enhancement CC: lfeng23-c
Priority: ---    
Version: V2   
Hardware: PC   
OS: Windows   

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