Tweak offsets a bit so kamikazesnowball doesn't die.
authorMathnerd314 <man.is.allan@gmail.com>
Wed, 3 Mar 2010 08:18:04 +0000 (08:18 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Wed, 3 Mar 2010 08:18:04 +0000 (08:18 +0000)
SVN-Revision: 6530

src/badguy/dispenser.cpp

index 3249856..19ac634 100644 (file)
@@ -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);