diff --git a/1.905/fc_main.js b/1.905/fc_main.js
index 8f948cbe..80d7ecda 100644
--- a/1.905/fc_main.js
+++ b/1.905/fc_main.js
@@ -1385,11 +1385,13 @@ function updateCaches() {
do {
recommendation = nextPurchase(FrozenCookies.recalculateCaches);
FrozenCookies.recalculateCaches = false;
+ FrozenCookies.disabledPopups = true;
currentBank = bestBank(0);
targetBank = bestBank(recommendation.efficiency);
currentCookieCPS = gcPs(cookieValue(currentBank.cost));
currentUpgradeCount = Game.UpgradesInStore.length;
FrozenCookies.safeGainsCalc();
+ FrozenCookies.disabledPopups = false;
if (FrozenCookies.lastCPS != FrozenCookies.calculatedCps) {
FrozenCookies.recalculateCaches = true;
@@ -1457,9 +1459,14 @@ function fcWin(what) {
if (typeof what==='string') {
if (Game.Achievements[what]) {
if (Game.Achievements[what].won==0) {
+ var name=Game.Achievements[what].shortName?Game.Achievements[what].shortName:Game.Achievements[what].name;
Game.Achievements[what].won=1;
if (!FrozenCookies.disabledPopups) {
- logEvent('Achievement', 'Achievement unlocked :
'+Game.Achievements[what].name+'
', true);
+ if (Game.prefs.popups) {
+ Game.Popup('Achievement unlocked :
'+name);
+ } else {
+ Game.Notify('Achievement unlocked','