From ca848d0dc0fcf834899ba595af0af9ab6657890d Mon Sep 17 00:00:00 2001 From: mathnerd314 Date: Wed, 3 Mar 2010 08:18:04 +0000 Subject: [PATCH] Tweak offsets a bit so kamikazesnowball doesn't die. git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6530 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/badguy/dispenser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/badguy/dispenser.cpp b/src/badguy/dispenser.cpp index 32498562d..19ac634e2 100644 --- a/src/badguy/dispenser.cpp +++ b/src/badguy/dispenser.cpp @@ -206,11 +206,11 @@ Dispenser::launch_badguy() Vector spawnpoint; if (type == "dropper") - spawnpoint = Vector(get_pos().x, get_pos().y+32); + spawnpoint = Vector(get_pos().x, get_pos().y+get_bbox().get_height()+8); else if (type == "cannon") - spawnpoint = Vector(get_pos().x + (launchdir == LEFT ? -32 : 32), get_pos().y); + spawnpoint = Vector(get_pos().x + (launchdir == LEFT ? -32 : get_bbox().get_width()+3), get_pos().y); else if (type == "rocketlauncher") - spawnpoint = Vector(get_pos().x + (launchdir == LEFT ? -32 : 32), get_pos().y); + spawnpoint = Vector(get_pos().x + (launchdir == LEFT ? -32 : get_bbox().get_width()+3), get_pos().y); badguy_object = ObjectFactory::instance().create(badguy, spawnpoint, launchdir); -- 2.11.0