ochadenas / cpudefense

A tower defense game for Android based on a microprocessor theme
MIT License
130 stars 8 forks source link

Going to main menu and then resuming causes mems to "fill up" #167

Closed Mortis03 closed 1 week ago

Mortis03 commented 4 months ago

Started with v1.38. I am on stage 400+. Not sure if it does these issues on lower stages.

It also give extra money.

When you return to main menu and then resume game, mem chip slots fill up. When you tap to free a slot, it stays filled. Eventually if you tap enough, the slots will empty. Its almost like it "forgets" they have been tapped before.

ochadenas commented 4 months ago

You're right. If going back to the main menu, the chip forgets that it is in its cool down phase, and the number within the chip again occupies the slot. That is probably a side effect of the fix for issue #120.

Will try to change this.

ochadenas commented 1 week ago

Found that bug, finally. Fixed in 1.47.

In fact, it was the other way round: Not the MEM chip forgot the attackers inside it, but the attackers weren't aware of being cleared. And when you resume the game, they insisted on being inside that chip.

This may also have caused other strange effects. Thanks for reporting!