+// $Id$
+//
+// SuperTux
+// Copyright (C) 2005 Matthias Braun <matze@braunis.de>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+// 02111-1307, USA.
+
#include <config.h>
#include "dispenser.h"
else if (badguy == "mriceblock")
Sector::current()->add_object(new MrIceBlock(get_pos().x, get_pos().y+32, dir));
else if (badguy == "mrrocket") {
- int offset = (dir == LEFT ? -32 : 32);
- Sector::current()->add_object(new MrRocket(get_pos().x+offset, get_pos().y, dir));}
+ Sector::current()->add_object(new MrRocket(get_pos().x+(dir == LEFT ? -32 : 32), get_pos().y, dir));}
else if (badguy == "poisonivy")
Sector::current()->add_object(new PoisonIvy(get_pos().x, get_pos().y+32, dir));
else if (badguy == "random")