Fixed display of cookie clicks being lower after loading Cookie Monster (Issue #238)

This commit is contained in:
Aktanusa
2019-03-13 22:43:41 -04:00
parent 9b0f416a02
commit d0f5a5594b
2 changed files with 8 additions and 0 deletions

View File

@@ -2675,6 +2675,10 @@ CM.ReplaceNative = function() {
CM.Disp.FixMouseY(CM.Backup.UpdateSpecial);
}
// Assumes newer browsers
l('bigCookie').removeEventListener('click', Game.ClickCookie, false);
l('bigCookie').addEventListener('click', function() { CM.Disp.FixMouseY(Game.ClickCookie); }, false);
// Probably better to load per minigame
CM.Backup.scriptLoaded = Game.scriptLoaded;
Game.scriptLoaded = function(who, script) {