X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fcaptainsnowball.cpp;h=d4826413e918bbd600994dada86fd1dd88ef0e92;hb=dfd9453f9b5d71a70095b8abd881a93bc6f47a8f;hp=34b287af2d351f8a55aaf0f6aeb03a0d1bc5bc53;hpb=9ff3b19384bcecfeefe53b6ceabb0951b085ce80;p=supertux.git diff --git a/src/badguy/captainsnowball.cpp b/src/badguy/captainsnowball.cpp index 34b287af2..d4826413e 100644 --- a/src/badguy/captainsnowball.cpp +++ b/src/badguy/captainsnowball.cpp @@ -61,7 +61,8 @@ CaptainSnowball::might_climb(int width, int height) x1 = bbox.p2.x + 1; x2 = bbox.p2.x + width; } - return ((!Sector::current()->is_free_of_statics(Rect(x1, y1a, x2, y2a))) && (Sector::current()->is_free_of_statics(Rect(x1, y1b, x2, y2b)))); + return ((!Sector::current()->is_free_of_statics(Rectf(x1, y1a, x2, y2a))) && + (Sector::current()->is_free_of_statics(Rectf(x1, y1b, x2, y2b)))); } void