Bug 499 - Error in isSwappableExist() with prop in Map.java
Summary: Error in isSwappableExist() with prop in Map.java
Status: CONFIRMED
Alias: None
Product: CandyCrush 2020
Classification: Unclassified
Component: Source Code (show other bugs)
Version: 1.0
Hardware: PC Windows
: --- enhancement
Assignee: jli262-c
URL:
Depends on:
Blocks:
 
Reported: 2020-11-29 11:27 HKT by ziruichen6-c
Modified: 2020-11-29 15:05 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ziruichen6-c 2020-11-29 11:27:54 HKT
The bug was found when running the Junit Test. The Map which filled with prop would return false.

Steps to Reproduce:
Run testPropExist() in TestMap.java

Actual Results: testPropExist() in TestMap.java failures.

Expected Results: testPropExist() in TestMap.java pass the Junit Test.
Comment 1 ziruichen6-c 2020-11-29 11:34:23 HKT
The situation with the prop was not considered in isSwapExist(). Generally speaking, the map with prop exists should not be considered as a dead map.

The solution would be adding the condition of props in isSwapExist().
result |= (itemArray[i][j].execute() > 0)