Skip to content

Commit

Permalink
Tweak offsets a bit so kamikazesnowball doesn't die.
Browse files Browse the repository at this point in the history
SVN-Revision: 6530
  • Loading branch information
Mathnerd314 committed Mar 3, 2010
1 parent e46ed7e commit 0a4882b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/badguy/dispenser.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 0a4882b

Please sign in to comment.