Anahkiasen/cookie-monster — pull request #46 by Qhorin (2014-04-22 01:22:35+00:00)
Title: Fix flashes on purchase, change variable name

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.