Anahkiasen / cookie-monster

A rehosted, cleaned up and updated version of the CookieMonster plugin.
31 stars 24 forks source link

Fix flashes on purchase, change variable name #46

Closed Qhorin closed 10 years ago

Qhorin commented 10 years ago

This should fix the screen flashes that occur every time a building/upgrade is purchased. Whenever CM simulates a buy, the CC buyfunction() calls Game.seasonPopup.reset(). This reset causes CM screen flash logic to execute. So I've disabled the reset() function during CM simulateBuy().

I also changed a variable name from 'storeToRebuild' to 'storeToRefresh' to match the variable name change in CC code.

Anahkiasen commented 10 years ago

Thanks!

Qhorin commented 10 years ago

@Anahkiasen Hi, can you push the newest dev build to the dev web server? Thanks!

Anahkiasen commented 10 years ago

Should be good.