src/viewport.cpp
changeset 5673 543f471cb12e
parent 5668 36b39f4a9032
child 5733 388bb9dcb79b
--- a/src/viewport.cpp	Sun Jan 14 21:32:13 2007 +0000
+++ b/src/viewport.cpp	Sun Jan 14 21:50:56 2007 +0000
@@ -1293,7 +1293,7 @@
 // If we do, the sprite memory will overflow.
 static void ViewportDrawChk(const ViewPort *vp, int left, int top, int right, int bottom)
 {
-	if (((bottom - top) * (right - left) << vp->zoom) > 180000) {
+	if (((bottom - top) * (right - left) << (2 * vp->zoom)) > 180000) {
 		if ((bottom - top) > (right - left)) {
 			int t = (top + bottom) >> 1;
 			ViewportDrawChk(vp, left, top, right, t);