Skip to content

Commit e348605

Browse files
committed
prevent scaling pumpkins in thumbnail previews
1 parent 3d1a2d6 commit e348605

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

game/menu/js/izombieonline.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ function renderThumbnail(thumb, thumbContainer) {
8484
img.style.top = `${plant[2] * 0.15}px`;
8585
img.style.width = `${plant[3] * 0.15}px`;
8686
img.style.height = `${plant[4] * 0.15}px`;
87-
img.style.transform = "scale(1.5)";
8887
img.style.zIndex = plant[5];
88+
if (window[izombiePlantsMap[plant[0]]] !== oPumpkinHead) {
89+
img.style.transform = "scale(1.5)";
90+
}
8991
img.className = "cardboardNoShadow";
9092
thumbContainer.appendChild(img);
9193
});

0 commit comments

Comments
 (0)