From: Mathnerd314 Date: Wed, 3 Mar 2010 08:18:04 +0000 (+0000) Subject: Tweak offsets a bit so kamikazesnowball doesn't die. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0a4882b7162ed25835c2c5e398bb80fa12b77129;p=supertux.git Tweak offsets a bit so kamikazesnowball doesn't die. SVN-Revision: 6530 --- 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);