From 3e3dcd88b684f7889dbb6ed1134f29c98fe7e3a8 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Thu, 6 Jul 2006 13:57:57 +0000 Subject: [PATCH] Expanded sleeping Spiky's wakeup range SVN-Revision: 3916 --- src/badguy/sspiky.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/badguy/sspiky.cpp b/src/badguy/sspiky.cpp index 3379c0b94..3827ae26b 100644 --- a/src/badguy/sspiky.cpp +++ b/src/badguy/sspiky.cpp @@ -91,8 +91,8 @@ SSpiky::active_update(float elapsed_time) { bool inReach_left = (pb.p2.x >= mb.p2.x-((dir == LEFT) ? 256 : 0)); bool inReach_right = (pb.p1.x <= mb.p1.x+((dir == RIGHT) ? 256 : 0)); - bool inReach_top = (pb.p2.y >= mb.p2.y); - bool inReach_bottom = (pb.p1.y <= mb.p1.y); + bool inReach_top = (pb.p2.y >= mb.p1.y); + bool inReach_bottom = (pb.p1.y <= mb.p2.y); if (inReach_left && inReach_right && inReach_top && inReach_bottom) { // wake up -- 2.11.0